diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java index 7e2b9651bbdb..9922eb878b82 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java @@ -27,7 +27,8 @@ * and actions. * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * You can save your agent for backup or versioning by exporting the agent by * using the [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved * agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent] method. @@ -307,7 +308,8 @@ public static AgentsFutureStub newFutureStub( * and actions. * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * You can save your agent for backup or versioning by exporting the agent by * using the [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved * agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent] method. @@ -459,7 +461,8 @@ public void restoreAgent(com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest * and actions. * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * You can save your agent for backup or versioning by exporting the agent by * using the [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved * agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent] method. @@ -584,7 +587,8 @@ public void restoreAgent(com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest * and actions. * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * You can save your agent for backup or versioning by exporting the agent by * using the [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved * agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent] method. @@ -703,7 +707,8 @@ public com.google.longrunning.Operation restoreAgent(com.google.cloud.dialogflow * and actions. * You can create an agent using both Dialogflow Standard Edition and * Dialogflow Enterprise Edition. For details, see - * [Dialogflow Editions](/dialogflow-enterprise/docs/editions). + * [Dialogflow + * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). * You can save your agent for backup or versioning by exporting the agent by * using the [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved * agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent] method. diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java new file mode 100644 index 000000000000..f06a0009c560 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java @@ -0,0 +1,605 @@ +package com.google.cloud.dialogflow.v2beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Manages documents of a knowledge base. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/dialogflow/v2beta1/document.proto") +public final class DocumentsGrpc { + + private DocumentsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Documents"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListDocumentsMethod()} instead. + public static final io.grpc.MethodDescriptor
+ * Manages documents of a knowledge base. + *+ */ + public static abstract class DocumentsImplBase implements io.grpc.BindableService { + + /** + *
+ * Returns the list of all documents of the knowledge base. + *+ */ + public void listDocuments(com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the specified document. + *+ */ + public void getDocument(com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void createDocument(com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified document. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void deleteDocument(com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Manages documents of a knowledge base. + *+ */ + public static final class DocumentsStub extends io.grpc.stub.AbstractStub
+ * Returns the list of all documents of the knowledge base. + *+ */ + public void listDocuments(com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the specified document. + *+ */ + public void getDocument(com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void createDocument(com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified document. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void deleteDocument(com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Manages documents of a knowledge base. + *+ */ + public static final class DocumentsBlockingStub extends io.grpc.stub.AbstractStub
+ * Returns the list of all documents of the knowledge base. + *+ */ + public com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse listDocuments(com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest request) { + return blockingUnaryCall( + getChannel(), getListDocumentsMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Retrieves the specified document. + *+ */ + public com.google.cloud.dialogflow.v2beta1.Document getDocument(com.google.cloud.dialogflow.v2beta1.GetDocumentRequest request) { + return blockingUnaryCall( + getChannel(), getGetDocumentMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates a new document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.longrunning.Operation createDocument(com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest request) { + return blockingUnaryCall( + getChannel(), getCreateDocumentMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Deletes the specified document. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.longrunning.Operation deleteDocument(com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteDocumentMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+ * Manages documents of a knowledge base. + *+ */ + public static final class DocumentsFutureStub extends io.grpc.stub.AbstractStub
+ * Returns the list of all documents of the knowledge base. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves the specified document. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes the specified document. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Manages knowledge bases. + * Allows users to setup and maintain knowledge bases with their knowledge data. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/dialogflow/v2beta1/knowledge_base.proto") +public final class KnowledgeBasesGrpc { + + private KnowledgeBasesGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.KnowledgeBases"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListKnowledgeBasesMethod()} instead. + public static final io.grpc.MethodDescriptor
+ * Manages knowledge bases. + * Allows users to setup and maintain knowledge bases with their knowledge data. + *+ */ + public static abstract class KnowledgeBasesImplBase implements io.grpc.BindableService { + + /** + *
+ * Returns the list of all knowledge bases of the specified agent. + *+ */ + public void listKnowledgeBases(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the specified knowledge base. + *+ */ + public void getKnowledgeBase(com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Creates a knowledge base. + *+ */ + public void createKnowledgeBase(com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified knowledge base. + *+ */ + public void deleteKnowledgeBase(com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Manages knowledge bases. + * Allows users to setup and maintain knowledge bases with their knowledge data. + *+ */ + public static final class KnowledgeBasesStub extends io.grpc.stub.AbstractStub
+ * Returns the list of all knowledge bases of the specified agent. + *+ */ + public void listKnowledgeBases(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves the specified knowledge base. + *+ */ + public void getKnowledgeBase(com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Creates a knowledge base. + *+ */ + public void createKnowledgeBase(com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Deletes the specified knowledge base. + *+ */ + public void deleteKnowledgeBase(com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Manages knowledge bases. + * Allows users to setup and maintain knowledge bases with their knowledge data. + *+ */ + public static final class KnowledgeBasesBlockingStub extends io.grpc.stub.AbstractStub
+ * Returns the list of all knowledge bases of the specified agent. + *+ */ + public com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse listKnowledgeBases(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) { + return blockingUnaryCall( + getChannel(), getListKnowledgeBasesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Retrieves the specified knowledge base. + *+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase(com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) { + return blockingUnaryCall( + getChannel(), getGetKnowledgeBaseMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates a knowledge base. + *+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase createKnowledgeBase(com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) { + return blockingUnaryCall( + getChannel(), getCreateKnowledgeBaseMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Deletes the specified knowledge base. + *+ */ + public com.google.protobuf.Empty deleteKnowledgeBase(com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteKnowledgeBaseMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+ * Manages knowledge bases. + * Allows users to setup and maintain knowledge bases with their knowledge data. + *+ */ + public static final class KnowledgeBasesFutureStub extends io.grpc.stub.AbstractStub
+ * Returns the list of all knowledge bases of the specified agent. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves the specified knowledge base. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a knowledge base. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes the specified knowledge base. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
* Creates a task and adds it to a queue. * Tasks cannot be updated after creation; there is no UpdateTask command. - * * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget), - * the maximum task size is 100KB. - * * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this - * the maximum task size is 1MB. + * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is + * 100KB. + * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. **/ public void createTask(com.google.cloud.tasks.v2beta2.CreateTaskRequest request, @@ -1330,7 +1333,7 @@ public void getQueue(com.google.cloud.tasks.v2beta2.GetQueueRequest request, * WARNING: Using this method may have unintended side effects if you are * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. * Read - * [Overview of Queue Management and queue.yaml](/tasks/docs/queue-yaml) + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) * before using this method. * */ @@ -1351,7 +1354,7 @@ public void createQueue(com.google.cloud.tasks.v2beta2.CreateQueueRequest reques * WARNING: Using this method may have unintended side effects if you are * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. * Read - * [Overview of Queue Management and queue.yaml](/tasks/docs/queue-yaml) + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) * before using this method. * */ @@ -1370,7 +1373,7 @@ public void updateQueue(com.google.cloud.tasks.v2beta2.UpdateQueueRequest reques * WARNING: Using this method may have unintended side effects if you are * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. * Read - * [Overview of Queue Management and queue.yaml](/tasks/docs/queue-yaml) + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) * before using this method. * */ @@ -1421,7 +1424,7 @@ public void pauseQueue(com.google.cloud.tasks.v2beta2.PauseQueueRequest request, * WARNING: Resuming many high-QPS queues at the same time can * lead to target overloading. If you are resuming high-QPS * queues, follow the 500/50/5 pattern described in - * [Managing Cloud Tasks Scaling Risks](/tasks/docs/manage-cloud-task-scaling). + * [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). * */ public void resumeQueue(com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, @@ -1435,8 +1438,9 @@ public void resumeQueue(com.google.cloud.tasks.v2beta2.ResumeQueueRequest reques * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. * Returns an empty policy if the resource exists and does not have a policy * set. - * Authorization requires the following [Google IAM](/iam) permission on the - * specified resource parent: + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: * * `cloudtasks.queues.getIamPolicy` * */ @@ -1452,8 +1456,9 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, * policy. * Note: The Cloud Console does not check queue-level IAM permissions yet. * Project-level permissions are required to use the Cloud Console. - * Authorization requires the following [Google IAM](/iam) permission on the - * specified resource parent: + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: * * `cloudtasks.queues.setIamPolicy` * */ @@ -1486,6 +1491,8 @@ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest reque * due to performance considerations; * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the * subset of information which is returned. + * The tasks may be returned in any order. The ordering may change at any + * time. * */ public void listTasks(com.google.cloud.tasks.v2beta2.ListTasksRequest request, @@ -1509,10 +1516,9 @@ public void getTask(com.google.cloud.tasks.v2beta2.GetTaskRequest request, *
* Creates a task and adds it to a queue. * Tasks cannot be updated after creation; there is no UpdateTask command. - * * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget), - * the maximum task size is 100KB. - * * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this - * the maximum task size is 1MB. + * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is + * 100KB. + * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. **/ public void createTask(com.google.cloud.tasks.v2beta2.CreateTaskRequest request, @@ -1698,7 +1704,7 @@ public com.google.cloud.tasks.v2beta2.Queue getQueue(com.google.cloud.tasks.v2be * WARNING: Using this method may have unintended side effects if you are * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. * Read - * [Overview of Queue Management and queue.yaml](/tasks/docs/queue-yaml) + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) * before using this method. * */ @@ -1718,7 +1724,7 @@ public com.google.cloud.tasks.v2beta2.Queue createQueue(com.google.cloud.tasks.v * WARNING: Using this method may have unintended side effects if you are * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. * Read - * [Overview of Queue Management and queue.yaml](/tasks/docs/queue-yaml) + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) * before using this method. * */ @@ -1736,7 +1742,7 @@ public com.google.cloud.tasks.v2beta2.Queue updateQueue(com.google.cloud.tasks.v * WARNING: Using this method may have unintended side effects if you are * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. * Read - * [Overview of Queue Management and queue.yaml](/tasks/docs/queue-yaml) + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) * before using this method. * */ @@ -1784,7 +1790,7 @@ public com.google.cloud.tasks.v2beta2.Queue pauseQueue(com.google.cloud.tasks.v2 * WARNING: Resuming many high-QPS queues at the same time can * lead to target overloading. If you are resuming high-QPS * queues, follow the 500/50/5 pattern described in - * [Managing Cloud Tasks Scaling Risks](/tasks/docs/manage-cloud-task-scaling). + * [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). * */ public com.google.cloud.tasks.v2beta2.Queue resumeQueue(com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) { @@ -1797,8 +1803,9 @@ public com.google.cloud.tasks.v2beta2.Queue resumeQueue(com.google.cloud.tasks.v * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. * Returns an empty policy if the resource exists and does not have a policy * set. - * Authorization requires the following [Google IAM](/iam) permission on the - * specified resource parent: + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: * * `cloudtasks.queues.getIamPolicy` * */ @@ -1813,8 +1820,9 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * policy. * Note: The Cloud Console does not check queue-level IAM permissions yet. * Project-level permissions are required to use the Cloud Console. - * Authorization requires the following [Google IAM](/iam) permission on the - * specified resource parent: + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: * * `cloudtasks.queues.setIamPolicy` * */ @@ -1845,6 +1853,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.googl * due to performance considerations; * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the * subset of information which is returned. + * The tasks may be returned in any order. The ordering may change at any + * time. * */ public com.google.cloud.tasks.v2beta2.ListTasksResponse listTasks(com.google.cloud.tasks.v2beta2.ListTasksRequest request) { @@ -1866,10 +1876,9 @@ public com.google.cloud.tasks.v2beta2.Task getTask(com.google.cloud.tasks.v2beta *
* Creates a task and adds it to a queue. * Tasks cannot be updated after creation; there is no UpdateTask command. - * * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget), - * the maximum task size is 100KB. - * * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this - * the maximum task size is 1MB. + * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is + * 100KB. + * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. **/ public com.google.cloud.tasks.v2beta2.Task createTask(com.google.cloud.tasks.v2beta2.CreateTaskRequest request) { @@ -2050,7 +2059,7 @@ public com.google.common.util.concurrent.ListenableFuture
* Audio encoding of the audio content sent in the conversational query request. - * Refer to the [Cloud Speech API documentation](/speech/docs/basics) for more + * Refer to the + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for more * details. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java index 29e9a3ddd6bb..1a0958ab041e 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java @@ -109,12 +109,10 @@ private Context( *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -136,12 +134,10 @@ public java.lang.String getName() { *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -555,12 +551,10 @@ public Builder mergeFrom( *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -582,12 +576,10 @@ public java.lang.String getName() { *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -610,12 +602,10 @@ public java.lang.String getName() { *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -635,12 +625,10 @@ public Builder setName( *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -656,12 +644,10 @@ public Builder clearName() { *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java index dd5e125ef57b..8b8d3f81bab3 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java @@ -11,12 +11,10 @@ public interface ContextOrBuilder extends *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** @@ -27,12 +25,10 @@ public interface ContextOrBuilder extends *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, - * or - * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. The Context ID is - * always converted to lowercase. If <Environment ID> is not specified, we - * assume default 'draft' environment. If <User ID> is not specified, we + * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User + * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is + * always converted to lowercase. If `Environment ID` is not specified, we + * assume default 'draft' environment. If `User ID` is not specified, we * assume default '-' user. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java index f4c27d58fe82..cf10f26805f8 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java @@ -104,10 +104,9 @@ private CreateContextRequest( * Required. The session to create a context for. * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>`. Note: Environments and users are under - * construction and will be available soon. If <Environment ID> is not - * specified, we assume default 'draft' environment. If <User ID> is not - * specified, we assume default '-' user. + * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume + * default 'draft' environment. If `User ID` is not specified, we assume + * default '-' user. * * *
string parent = 1;
@@ -129,10 +128,9 @@ public java.lang.String getParent() {
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -507,10 +505,9 @@ public Builder mergeFrom(
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -532,10 +529,9 @@ public java.lang.String getParent() {
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -558,10 +554,9 @@ public java.lang.String getParent() {
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -581,10 +576,9 @@ public Builder setParent(
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -600,10 +594,9 @@ public Builder clearParent() {
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java
index a5d761c87554..7f95e815db8e 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java
@@ -12,10 +12,9 @@ public interface CreateContextRequestOrBuilder extends
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -26,10 +25,9 @@ public interface CreateContextRequestOrBuilder extends
* Required. The session to create a context for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java
new file mode 100644
index 000000000000..b7b41e330147
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java
@@ -0,0 +1,788 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/document.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateDocumentRequest} + */ +public final class CreateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CreateDocumentRequest) + CreateDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateDocumentRequest.newBuilder() to construct. + private CreateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private CreateDocumentRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDocumentRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2beta1.Document.Builder subBuilder = null; + if (document_ != null) { + subBuilder = document_.toBuilder(); + } + document_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(document_); + document_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest.class, com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+ * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DOCUMENT_FIELD_NUMBER = 2;
+ private com.google.cloud.dialogflow.v2beta1.Document document_;
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public boolean hasDocument() {
+ return document_ != null;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document getDocument() {
+ return document_ == null ? com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance() : document_;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentOrBuilder() {
+ return getDocument();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (document_ != null) {
+ output.writeMessage(2, getDocument());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (document_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getDocument());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest other = (com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest) obj;
+
+ boolean result = true;
+ result = result && getParent()
+ .equals(other.getParent());
+ result = result && (hasDocument() == other.hasDocument());
+ if (hasDocument()) {
+ result = result && getDocument()
+ .equals(other.getDocument());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasDocument()) {
+ hash = (37 * hash) + DOCUMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getDocument().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.Document document_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Document, com.google.cloud.dialogflow.v2beta1.Document.Builder, com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder> documentBuilder_;
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public boolean hasDocument() {
+ return documentBuilder_ != null || document_ != null;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document getDocument() {
+ if (documentBuilder_ == null) {
+ return document_ == null ? com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance() : document_;
+ } else {
+ return documentBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public Builder setDocument(com.google.cloud.dialogflow.v2beta1.Document value) {
+ if (documentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ document_ = value;
+ onChanged();
+ } else {
+ documentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public Builder setDocument(
+ com.google.cloud.dialogflow.v2beta1.Document.Builder builderForValue) {
+ if (documentBuilder_ == null) {
+ document_ = builderForValue.build();
+ onChanged();
+ } else {
+ documentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public Builder mergeDocument(com.google.cloud.dialogflow.v2beta1.Document value) {
+ if (documentBuilder_ == null) {
+ if (document_ != null) {
+ document_ =
+ com.google.cloud.dialogflow.v2beta1.Document.newBuilder(document_).mergeFrom(value).buildPartial();
+ } else {
+ document_ = value;
+ }
+ onChanged();
+ } else {
+ documentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public Builder clearDocument() {
+ if (documentBuilder_ == null) {
+ document_ = null;
+ onChanged();
+ } else {
+ document_ = null;
+ documentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document.Builder getDocumentBuilder() {
+
+ onChanged();
+ return getDocumentFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentOrBuilder() {
+ if (documentBuilder_ != null) {
+ return documentBuilder_.getMessageOrBuilder();
+ } else {
+ return document_ == null ?
+ com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance() : document_;
+ }
+ }
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Document, com.google.cloud.dialogflow.v2beta1.Document.Builder, com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder>
+ getDocumentFieldBuilder() {
+ if (documentBuilder_ == null) {
+ documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Document, com.google.cloud.dialogflow.v2beta1.Document.Builder, com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder>(
+ getDocument(),
+ getParentForChildren(),
+ isClean());
+ document_ = null;
+ }
+ return documentBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CreateDocumentRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CreateDocumentRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ * + * Required. The knoweldge base to create a document for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString
+ getParentBytes();
+
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ boolean hasDocument();
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.Document getDocument();
+ /**
+ * + * Required. The document to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.Document document = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java
new file mode 100644
index 000000000000..7e808f72bd37
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java
@@ -0,0 +1,788 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest} + */ +public final class CreateKnowledgeBaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest) + CreateKnowledgeBaseRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateKnowledgeBaseRequest.newBuilder() to construct. + private CreateKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private CreateKnowledgeBaseRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateKnowledgeBaseRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder subBuilder = null; + if (knowledgeBase_ != null) { + subBuilder = knowledgeBase_.toBuilder(); + } + knowledgeBase_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.KnowledgeBase.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(knowledgeBase_); + knowledgeBase_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+ * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KNOWLEDGE_BASE_FIELD_NUMBER = 2;
+ private com.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledgeBase_;
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public boolean hasKnowledgeBase() {
+ return knowledgeBase_ != null;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase() {
+ return knowledgeBase_ == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance() : knowledgeBase_;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder() {
+ return getKnowledgeBase();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (knowledgeBase_ != null) {
+ output.writeMessage(2, getKnowledgeBase());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (knowledgeBase_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getKnowledgeBase());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest other = (com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest) obj;
+
+ boolean result = true;
+ result = result && getParent()
+ .equals(other.getParent());
+ result = result && (hasKnowledgeBase() == other.hasKnowledgeBase());
+ if (hasKnowledgeBase()) {
+ result = result && getKnowledgeBase()
+ .equals(other.getKnowledgeBase());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasKnowledgeBase()) {
+ hash = (37 * hash) + KNOWLEDGE_BASE_FIELD_NUMBER;
+ hash = (53 * hash) + getKnowledgeBase().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledgeBase_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder> knowledgeBaseBuilder_;
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public boolean hasKnowledgeBase() {
+ return knowledgeBaseBuilder_ != null || knowledgeBase_ != null;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase() {
+ if (knowledgeBaseBuilder_ == null) {
+ return knowledgeBase_ == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance() : knowledgeBase_;
+ } else {
+ return knowledgeBaseBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public Builder setKnowledgeBase(com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) {
+ if (knowledgeBaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ knowledgeBase_ = value;
+ onChanged();
+ } else {
+ knowledgeBaseBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public Builder setKnowledgeBase(
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder builderForValue) {
+ if (knowledgeBaseBuilder_ == null) {
+ knowledgeBase_ = builderForValue.build();
+ onChanged();
+ } else {
+ knowledgeBaseBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public Builder mergeKnowledgeBase(com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) {
+ if (knowledgeBaseBuilder_ == null) {
+ if (knowledgeBase_ != null) {
+ knowledgeBase_ =
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase.newBuilder(knowledgeBase_).mergeFrom(value).buildPartial();
+ } else {
+ knowledgeBase_ = value;
+ }
+ onChanged();
+ } else {
+ knowledgeBaseBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public Builder clearKnowledgeBase() {
+ if (knowledgeBaseBuilder_ == null) {
+ knowledgeBase_ = null;
+ onChanged();
+ } else {
+ knowledgeBase_ = null;
+ knowledgeBaseBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder getKnowledgeBaseBuilder() {
+
+ onChanged();
+ return getKnowledgeBaseFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder() {
+ if (knowledgeBaseBuilder_ != null) {
+ return knowledgeBaseBuilder_.getMessageOrBuilder();
+ } else {
+ return knowledgeBase_ == null ?
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance() : knowledgeBase_;
+ }
+ }
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>
+ getKnowledgeBaseFieldBuilder() {
+ if (knowledgeBaseBuilder_ == null) {
+ knowledgeBaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>(
+ getKnowledgeBase(),
+ getParentForChildren(),
+ isClean());
+ knowledgeBase_ = null;
+ }
+ return knowledgeBaseBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ * + * Required. The agent to create a knowledge base for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString
+ getParentBytes();
+
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ boolean hasKnowledgeBase();
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase();
+ /**
+ * + * Required. The knowledge base to create. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java
index 15fda3ce50ac..8933716d2e85 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java
@@ -104,10 +104,9 @@ private CreateSessionEntityTypeRequest(
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -129,10 +128,9 @@ public java.lang.String getParent() {
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -507,10 +505,9 @@ public Builder mergeFrom(
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -532,10 +529,9 @@ public java.lang.String getParent() {
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -558,10 +554,9 @@ public java.lang.String getParent() {
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -581,10 +576,9 @@ public Builder setParent(
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -600,10 +594,9 @@ public Builder clearParent() {
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java
index 2fde3b161a3d..d6b7179a60b6 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java
@@ -12,10 +12,9 @@ public interface CreateSessionEntityTypeRequestOrBuilder extends
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -26,10 +25,9 @@ public interface CreateSessionEntityTypeRequestOrBuilder extends
* Required. The session to create a session entity type for.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
- * sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java
index 6ce8fbd1307b..38855fe35501 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java
@@ -91,10 +91,8 @@ private DeleteAllContextsRequest(
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -116,10 +114,8 @@ public java.lang.String getParent() {
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -431,10 +427,8 @@ public Builder mergeFrom(
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -456,10 +450,8 @@ public java.lang.String getParent() {
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -482,10 +474,8 @@ public java.lang.String getParent() {
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -505,10 +495,8 @@ public Builder setParent(
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -524,10 +512,8 @@ public Builder clearParent() {
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java
index 9f996c6438d8..0a8b865da119 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java
@@ -12,10 +12,8 @@ public interface DeleteAllContextsRequestOrBuilder extends
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -26,10 +24,8 @@ public interface DeleteAllContextsRequestOrBuilder extends
* Required. The name of the session to delete all contexts from. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
* ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
- * ID>`. Note: Environments and users are under construction and will be
- * available soon. If <Environment ID> is not specified we assume default
- * 'draft' environment. If <User ID> is not specified, we assume default
- * '-' user.
+ * ID>`. If `Environment ID` is not specified we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java
index 9466fba3eeaf..a2a01e85acf6 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java
@@ -91,11 +91,9 @@ private DeleteContextRequest(
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -117,11 +115,9 @@ public java.lang.String getName() {
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -433,11 +429,9 @@ public Builder mergeFrom(
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -459,11 +453,9 @@ public java.lang.String getName() {
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -486,11 +478,9 @@ public java.lang.String getName() {
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -510,11 +500,9 @@ public Builder setName(
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -530,11 +518,9 @@ public Builder clearName() {
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java
index d3b95001c78d..1cd07a7c6e23 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java
@@ -12,11 +12,9 @@ public interface DeleteContextRequestOrBuilder extends
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -27,11 +25,9 @@ public interface DeleteContextRequestOrBuilder extends
* Required. The name of the context to delete. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default
- * '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java
new file mode 100644
index 000000000000..c5f04c28d677
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java
@@ -0,0 +1,566 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/document.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteDocumentRequest} + */ +public final class DeleteDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.DeleteDocumentRequest) + DeleteDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteDocumentRequest.newBuilder() to construct. + private DeleteDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DeleteDocumentRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteDocumentRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest.class, com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest other = (com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.DeleteDocumentRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.DeleteDocumentRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * The name of the document to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java
new file mode 100644
index 000000000000..14d12df8813c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java
@@ -0,0 +1,638 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest} + */ +public final class DeleteKnowledgeBaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest) + DeleteKnowledgeBaseRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteKnowledgeBaseRequest.newBuilder() to construct. + private DeleteKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DeleteKnowledgeBaseRequest() { + name_ = ""; + force_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteKnowledgeBaseRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + + force_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORCE_FIELD_NUMBER = 2;
+ private boolean force_;
+ /**
+ * + * Optional. Force deletes the knowledge base. When set to true, any documents + * in the knowledge base are also deleted. + *+ * + *
bool force = 2;
+ */
+ public boolean getForce() {
+ return force_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (force_ != false) {
+ output.writeBool(2, force_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (force_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, force_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest other = (com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && (getForce()
+ == other.getForce());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + FORCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getForce());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean force_ ;
+ /**
+ * + * Optional. Force deletes the knowledge base. When set to true, any documents + * in the knowledge base are also deleted. + *+ * + *
bool force = 2;
+ */
+ public boolean getForce() {
+ return force_;
+ }
+ /**
+ * + * Optional. Force deletes the knowledge base. When set to true, any documents + * in the knowledge base are also deleted. + *+ * + *
bool force = 2;
+ */
+ public Builder setForce(boolean value) {
+
+ force_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Force deletes the knowledge base. When set to true, any documents + * in the knowledge base are also deleted. + *+ * + *
bool force = 2;
+ */
+ public Builder clearForce() {
+
+ force_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * Required. The name of the knowledge base to delete. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * Optional. Force deletes the knowledge base. When set to true, any documents + * in the knowledge base are also deleted. + *+ * + *
bool force = 2;
+ */
+ boolean getForce();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java
index 950d954c7d97..d157943f4d9a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java
@@ -92,10 +92,8 @@ private DeleteSessionEntityTypeRequest(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -118,10 +116,8 @@ public java.lang.String getName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -434,10 +430,8 @@ public Builder mergeFrom(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -460,10 +454,8 @@ public java.lang.String getName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -487,10 +479,8 @@ public java.lang.String getName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -511,10 +501,8 @@ public Builder setName(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -531,10 +519,8 @@ public Builder clearName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java
index 788e8d9237fd..9389fd135cf8 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java
@@ -13,10 +13,8 @@ public interface DeleteSessionEntityTypeRequestOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -28,10 +26,8 @@ public interface DeleteSessionEntityTypeRequestOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java
index f636e93b5e83..6240c5bfa6b5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java
@@ -87,6 +87,19 @@ private DetectIntentRequest(
break;
}
+ case 34: {
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder subBuilder = null;
+ if (outputAudioConfig_ != null) {
+ subBuilder = outputAudioConfig_.toBuilder();
+ }
+ outputAudioConfig_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(outputAudioConfig_);
+ outputAudioConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
case 42: {
inputAudio_ = input.readBytes();
@@ -123,13 +136,12 @@ private DetectIntentRequest(
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -151,13 +163,12 @@ public java.lang.String getSession() {
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -254,6 +265,45 @@ public com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder getQueryInputOrBu
return getQueryInput();
}
+ public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4;
+ private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_;
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfig_ != null;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
public static final int INPUT_AUDIO_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString inputAudio_;
/**
@@ -290,6 +340,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (queryInput_ != null) {
output.writeMessage(3, getQueryInput());
}
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(4, getOutputAudioConfig());
+ }
if (!inputAudio_.isEmpty()) {
output.writeBytes(5, inputAudio_);
}
@@ -312,6 +365,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQueryInput());
}
+ if (outputAudioConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getOutputAudioConfig());
+ }
if (!inputAudio_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, inputAudio_);
@@ -344,6 +401,11 @@ public boolean equals(final java.lang.Object obj) {
result = result && getQueryInput()
.equals(other.getQueryInput());
}
+ result = result && (hasOutputAudioConfig() == other.hasOutputAudioConfig());
+ if (hasOutputAudioConfig()) {
+ result = result && getOutputAudioConfig()
+ .equals(other.getOutputAudioConfig());
+ }
result = result && getInputAudio()
.equals(other.getInputAudio());
result = result && unknownFields.equals(other.unknownFields);
@@ -367,6 +429,10 @@ public int hashCode() {
hash = (37 * hash) + QUERY_INPUT_FIELD_NUMBER;
hash = (53 * hash) + getQueryInput().hashCode();
}
+ if (hasOutputAudioConfig()) {
+ hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputAudioConfig().hashCode();
+ }
hash = (37 * hash) + INPUT_AUDIO_FIELD_NUMBER;
hash = (53 * hash) + getInputAudio().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
@@ -516,6 +582,12 @@ public Builder clear() {
queryInput_ = null;
queryInputBuilder_ = null;
}
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
inputAudio_ = com.google.protobuf.ByteString.EMPTY;
return this;
@@ -551,6 +623,11 @@ public com.google.cloud.dialogflow.v2beta1.DetectIntentRequest buildPartial() {
} else {
result.queryInput_ = queryInputBuilder_.build();
}
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
result.inputAudio_ = inputAudio_;
onBuilt();
return result;
@@ -603,6 +680,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.DetectIntentRequest
if (other.hasQueryInput()) {
mergeQueryInput(other.getQueryInput());
}
+ if (other.hasOutputAudioConfig()) {
+ mergeOutputAudioConfig(other.getOutputAudioConfig());
+ }
if (other.getInputAudio() != com.google.protobuf.ByteString.EMPTY) {
setInputAudio(other.getInputAudio());
}
@@ -639,13 +719,12 @@ public Builder mergeFrom(
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -667,13 +746,12 @@ public java.lang.String getSession() {
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -696,13 +774,12 @@ public java.lang.String getSession() {
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -722,13 +799,12 @@ public Builder setSession(
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -744,13 +820,12 @@ public Builder clearSession() {
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -1109,6 +1184,177 @@ public com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder getQueryInputOrBu
return queryInputBuilder_;
}
+ private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder> outputAudioConfigBuilder_;
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ } else {
+ return outputAudioConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputAudioConfig_ = value;
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder builderForValue) {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.newBuilder(outputAudioConfig_).mergeFrom(value).buildPartial();
+ } else {
+ outputAudioConfig_ = value;
+ }
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder clearOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ onChanged();
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() {
+
+ onChanged();
+ return getOutputAudioConfigFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null ?
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ }
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>(
+ getOutputAudioConfig(),
+ getParentForChildren(),
+ isClean());
+ outputAudioConfig_ = null;
+ }
+ return outputAudioConfigBuilder_;
+ }
+
private com.google.protobuf.ByteString inputAudio_ = com.google.protobuf.ByteString.EMPTY;
/**
* diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java index 6899930ce1fb..e7fde814428b 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java @@ -12,13 +12,12 @@ public interface DetectIntentRequestOrBuilder extends * Required. The name of the session this query is sent to. Format: * `projects/<Project ID>/agent/sessions/<Session ID>`, or * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>`. Note: Environments and users are under - * construction and will be available soon. If <Environment ID> is not - * specified, we assume default 'draft' environment. If <User ID> is not - * specified, we are using "-". It’s up to the API caller to choose an - * appropriate <Session ID>. and <User Id>. They can be a random numbers or - * some type of user and session identifiers (preferably hashed). The length - * of the <Session ID> and <User ID> must not exceed 36 characters. + * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume + * default 'draft' environment. If `User ID` is not specified, we are using + * "-". It’s up to the API caller to choose an appropriate `Session ID` and + * `User Id`. They can be a random numbers or some type of user and session + * identifiers (preferably hashed). The length of the `Session ID` and + * `User ID` must not exceed 36 characters. ** *
string session = 1;
@@ -29,13 +28,12 @@ public interface DetectIntentRequestOrBuilder extends
* Required. The name of the session this query is sent to. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -105,6 +103,37 @@ public interface DetectIntentRequestOrBuilder extends
*/
com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder getQueryInputOrBuilder();
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ boolean hasOutputAudioConfig();
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig();
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 4;
+ */
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
+
/**
* * Optional. The natural language speech audio to be processed. This field diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java index aebd7db66179..892c5aa99501 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java @@ -21,6 +21,8 @@ private DetectIntentResponse(com.google.protobuf.GeneratedMessageV3.Builder> b } private DetectIntentResponse() { responseId_ = ""; + alternativeQueryResults_ = java.util.Collections.emptyList(); + outputAudio_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -84,6 +86,33 @@ private DetectIntentResponse( webhookStatus_ = subBuilder.buildPartial(); } + break; + } + case 34: { + + outputAudio_ = input.readBytes(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + alternativeQueryResults_ = new java.util.ArrayList* *(); + mutable_bitField0_ |= 0x00000004; + } + alternativeQueryResults_.add( + input.readMessage(com.google.cloud.dialogflow.v2beta1.QueryResult.parser(), extensionRegistry)); + break; + } + case 50: { + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder subBuilder = null; + if (outputAudioConfig_ != null) { + subBuilder = outputAudioConfig_.toBuilder(); + } + outputAudioConfig_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputAudioConfig_); + outputAudioConfig_ = subBuilder.buildPartial(); + } + break; } } @@ -94,6 +123,9 @@ private DetectIntentResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + alternativeQueryResults_ = java.util.Collections.unmodifiableList(alternativeQueryResults_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -110,6 +142,7 @@ private DetectIntentResponse( com.google.cloud.dialogflow.v2beta1.DetectIntentResponse.class, com.google.cloud.dialogflow.v2beta1.DetectIntentResponse.Builder.class); } + private int bitField0_; public static final int RESPONSE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object responseId_; /** @@ -158,7 +191,8 @@ public java.lang.String getResponseId() { private com.google.cloud.dialogflow.v2beta1.QueryResult queryResult_; /** * - * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -168,7 +202,8 @@ public boolean hasQueryResult() { } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -178,7 +213,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult() { } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -187,6 +223,91 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr return getQueryResult(); } + public static final int ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER = 5; + private java.util.ListalternativeQueryResults_; + /** + * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public java.util.ListgetAlternativeQueryResultsList() { + return alternativeQueryResults_; + } + /** + * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> + getAlternativeQueryResultsOrBuilderList() { + return alternativeQueryResults_; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public int getAlternativeQueryResultsCount() { + return alternativeQueryResults_.size(); + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index) { + return alternativeQueryResults_.get(index); + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder( + int index) { + return alternativeQueryResults_.get(index); + } + public static final int WEBHOOK_STATUS_FIELD_NUMBER = 3; private com.google.rpc.Status webhookStatus_; /** @@ -223,6 +344,58 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() { return getWebhookStatus(); } + public static final int OUTPUT_AUDIO_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString outputAudio_; + /** + *+ * The audio data bytes encoded as specified in the request. + *+ * + *bytes output_audio = 4;
+ */ + public com.google.protobuf.ByteString getOutputAudio() { + return outputAudio_; + } + + public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_; + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public boolean hasOutputAudioConfig() { + return outputAudioConfig_ != null; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() { + return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { + return getOutputAudioConfig(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,6 +417,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (webhookStatus_ != null) { output.writeMessage(3, getWebhookStatus()); } + if (!outputAudio_.isEmpty()) { + output.writeBytes(4, outputAudio_); + } + for (int i = 0; i < alternativeQueryResults_.size(); i++) { + output.writeMessage(5, alternativeQueryResults_.get(i)); + } + if (outputAudioConfig_ != null) { + output.writeMessage(6, getOutputAudioConfig()); + } unknownFields.writeTo(output); } @@ -263,6 +445,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWebhookStatus()); } + if (!outputAudio_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, outputAudio_); + } + for (int i = 0; i < alternativeQueryResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, alternativeQueryResults_.get(i)); + } + if (outputAudioConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOutputAudioConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -286,11 +480,20 @@ public boolean equals(final java.lang.Object obj) { result = result && getQueryResult() .equals(other.getQueryResult()); } + result = result && getAlternativeQueryResultsList() + .equals(other.getAlternativeQueryResultsList()); result = result && (hasWebhookStatus() == other.hasWebhookStatus()); if (hasWebhookStatus()) { result = result && getWebhookStatus() .equals(other.getWebhookStatus()); } + result = result && getOutputAudio() + .equals(other.getOutputAudio()); + result = result && (hasOutputAudioConfig() == other.hasOutputAudioConfig()); + if (hasOutputAudioConfig()) { + result = result && getOutputAudioConfig() + .equals(other.getOutputAudioConfig()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -308,10 +511,20 @@ public int hashCode() { hash = (37 * hash) + QUERY_RESULT_FIELD_NUMBER; hash = (53 * hash) + getQueryResult().hashCode(); } + if (getAlternativeQueryResultsCount() > 0) { + hash = (37 * hash) + ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAlternativeQueryResultsList().hashCode(); + } if (hasWebhookStatus()) { hash = (37 * hash) + WEBHOOK_STATUS_FIELD_NUMBER; hash = (53 * hash) + getWebhookStatus().hashCode(); } + hash = (37 * hash) + OUTPUT_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getOutputAudio().hashCode(); + if (hasOutputAudioConfig()) { + hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputAudioConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -441,6 +654,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getAlternativeQueryResultsFieldBuilder(); } } public Builder clear() { @@ -453,12 +667,26 @@ public Builder clear() { queryResult_ = null; queryResultBuilder_ = null; } + if (alternativeQueryResultsBuilder_ == null) { + alternativeQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + alternativeQueryResultsBuilder_.clear(); + } if (webhookStatusBuilder_ == null) { webhookStatus_ = null; } else { webhookStatus_ = null; webhookStatusBuilder_ = null; } + outputAudio_ = com.google.protobuf.ByteString.EMPTY; + + if (outputAudioConfigBuilder_ == null) { + outputAudioConfig_ = null; + } else { + outputAudioConfig_ = null; + outputAudioConfigBuilder_ = null; + } return this; } @@ -481,17 +709,35 @@ public com.google.cloud.dialogflow.v2beta1.DetectIntentResponse build() { public com.google.cloud.dialogflow.v2beta1.DetectIntentResponse buildPartial() { com.google.cloud.dialogflow.v2beta1.DetectIntentResponse result = new com.google.cloud.dialogflow.v2beta1.DetectIntentResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.responseId_ = responseId_; if (queryResultBuilder_ == null) { result.queryResult_ = queryResult_; } else { result.queryResult_ = queryResultBuilder_.build(); } + if (alternativeQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + alternativeQueryResults_ = java.util.Collections.unmodifiableList(alternativeQueryResults_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.alternativeQueryResults_ = alternativeQueryResults_; + } else { + result.alternativeQueryResults_ = alternativeQueryResultsBuilder_.build(); + } if (webhookStatusBuilder_ == null) { result.webhookStatus_ = webhookStatus_; } else { result.webhookStatus_ = webhookStatusBuilder_.build(); } + result.outputAudio_ = outputAudio_; + if (outputAudioConfigBuilder_ == null) { + result.outputAudioConfig_ = outputAudioConfig_; + } else { + result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -540,9 +786,41 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.DetectIntentRespons if (other.hasQueryResult()) { mergeQueryResult(other.getQueryResult()); } + if (alternativeQueryResultsBuilder_ == null) { + if (!other.alternativeQueryResults_.isEmpty()) { + if (alternativeQueryResults_.isEmpty()) { + alternativeQueryResults_ = other.alternativeQueryResults_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.addAll(other.alternativeQueryResults_); + } + onChanged(); + } + } else { + if (!other.alternativeQueryResults_.isEmpty()) { + if (alternativeQueryResultsBuilder_.isEmpty()) { + alternativeQueryResultsBuilder_.dispose(); + alternativeQueryResultsBuilder_ = null; + alternativeQueryResults_ = other.alternativeQueryResults_; + bitField0_ = (bitField0_ & ~0x00000004); + alternativeQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAlternativeQueryResultsFieldBuilder() : null; + } else { + alternativeQueryResultsBuilder_.addAllMessages(other.alternativeQueryResults_); + } + } + } if (other.hasWebhookStatus()) { mergeWebhookStatus(other.getWebhookStatus()); } + if (other.getOutputAudio() != com.google.protobuf.ByteString.EMPTY) { + setOutputAudio(other.getOutputAudio()); + } + if (other.hasOutputAudioConfig()) { + mergeOutputAudioConfig(other.getOutputAudioConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -569,6 +847,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object responseId_ = ""; /** @@ -669,7 +948,8 @@ public Builder setResponseIdBytes( com.google.cloud.dialogflow.v2beta1.QueryResult, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> queryResultBuilder_; /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -679,7 +959,8 @@ public boolean hasQueryResult() { } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -693,7 +974,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult() { } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -713,7 +995,8 @@ public Builder setQueryResult(com.google.cloud.dialogflow.v2beta1.QueryResult va } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -731,7 +1014,8 @@ public Builder setQueryResult( } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -753,7 +1037,8 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.v2beta1.QueryResult } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -771,7 +1056,8 @@ public Builder clearQueryResult() { } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -783,7 +1069,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getQueryResultBui } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -798,7 +1085,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr } /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -817,6 +1105,426 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr return queryResultBuilder_; } + private java.util.ListalternativeQueryResults_ = + java.util.Collections.emptyList(); + private void ensureAlternativeQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + alternativeQueryResults_ = new java.util.ArrayList (alternativeQueryResults_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryResult, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> alternativeQueryResultsBuilder_; + + /** + * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public java.util.ListgetAlternativeQueryResultsList() { + if (alternativeQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(alternativeQueryResults_); + } else { + return alternativeQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public int getAlternativeQueryResultsCount() { + if (alternativeQueryResultsBuilder_ == null) { + return alternativeQueryResults_.size(); + } else { + return alternativeQueryResultsBuilder_.getCount(); + } + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index) { + if (alternativeQueryResultsBuilder_ == null) { + return alternativeQueryResults_.get(index); + } else { + return alternativeQueryResultsBuilder_.getMessage(index); + } + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder setAlternativeQueryResults( + int index, com.google.cloud.dialogflow.v2beta1.QueryResult value) { + if (alternativeQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.set(index, value); + onChanged(); + } else { + alternativeQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder setAlternativeQueryResults( + int index, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) { + if (alternativeQueryResultsBuilder_ == null) { + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + alternativeQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder addAlternativeQueryResults(com.google.cloud.dialogflow.v2beta1.QueryResult value) { + if (alternativeQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.add(value); + onChanged(); + } else { + alternativeQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder addAlternativeQueryResults( + int index, com.google.cloud.dialogflow.v2beta1.QueryResult value) { + if (alternativeQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.add(index, value); + onChanged(); + } else { + alternativeQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder addAlternativeQueryResults( + com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) { + if (alternativeQueryResultsBuilder_ == null) { + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + alternativeQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder addAlternativeQueryResults( + int index, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) { + if (alternativeQueryResultsBuilder_ == null) { + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + alternativeQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder addAllAlternativeQueryResults( + java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.QueryResult> values) { + if (alternativeQueryResultsBuilder_ == null) { + ensureAlternativeQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alternativeQueryResults_); + onChanged(); + } else { + alternativeQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder clearAlternativeQueryResults() { + if (alternativeQueryResultsBuilder_ == null) { + alternativeQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + alternativeQueryResultsBuilder_.clear(); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public Builder removeAlternativeQueryResults(int index) { + if (alternativeQueryResultsBuilder_ == null) { + ensureAlternativeQueryResultsIsMutable(); + alternativeQueryResults_.remove(index); + onChanged(); + } else { + alternativeQueryResultsBuilder_.remove(index); + } + return this; + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getAlternativeQueryResultsBuilder( + int index) { + return getAlternativeQueryResultsFieldBuilder().getBuilder(index); + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder( + int index) { + if (alternativeQueryResultsBuilder_ == null) { + return alternativeQueryResults_.get(index); } else { + return alternativeQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> + getAlternativeQueryResultsOrBuilderList() { + if (alternativeQueryResultsBuilder_ != null) { + return alternativeQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alternativeQueryResults_); + } + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQueryResultsBuilder() { + return getAlternativeQueryResultsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance()); + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQueryResultsBuilder( + int index) { + return getAlternativeQueryResultsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance()); + } + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + public java.util.List+ getAlternativeQueryResultsBuilderList() { + return getAlternativeQueryResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryResult, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> + getAlternativeQueryResultsFieldBuilder() { + if (alternativeQueryResultsBuilder_ == null) { + alternativeQueryResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.QueryResult, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>( + alternativeQueryResults_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + alternativeQueryResults_ = null; + } + return alternativeQueryResultsBuilder_; + } + private com.google.rpc.Status webhookStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> webhookStatusBuilder_; @@ -978,6 +1686,218 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() { } return webhookStatusBuilder_; } + + private com.google.protobuf.ByteString outputAudio_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * The audio data bytes encoded as specified in the request. + *+ * + *bytes output_audio = 4;
+ */ + public com.google.protobuf.ByteString getOutputAudio() { + return outputAudio_; + } + /** + *+ * The audio data bytes encoded as specified in the request. + *+ * + *bytes output_audio = 4;
+ */ + public Builder setOutputAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + outputAudio_ = value; + onChanged(); + return this; + } + /** + *+ * The audio data bytes encoded as specified in the request. + *+ * + *bytes output_audio = 4;
+ */ + public Builder clearOutputAudio() { + + outputAudio_ = getDefaultInstance().getOutputAudio(); + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder> outputAudioConfigBuilder_; + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public boolean hasOutputAudioConfig() { + return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() { + if (outputAudioConfigBuilder_ == null) { + return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; + } else { + return outputAudioConfigBuilder_.getMessage(); + } + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) { + if (outputAudioConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputAudioConfig_ = value; + onChanged(); + } else { + outputAudioConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public Builder setOutputAudioConfig( + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder builderForValue) { + if (outputAudioConfigBuilder_ == null) { + outputAudioConfig_ = builderForValue.build(); + onChanged(); + } else { + outputAudioConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) { + if (outputAudioConfigBuilder_ == null) { + if (outputAudioConfig_ != null) { + outputAudioConfig_ = + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.newBuilder(outputAudioConfig_).mergeFrom(value).buildPartial(); + } else { + outputAudioConfig_ = value; + } + onChanged(); + } else { + outputAudioConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public Builder clearOutputAudioConfig() { + if (outputAudioConfigBuilder_ == null) { + outputAudioConfig_ = null; + onChanged(); + } else { + outputAudioConfig_ = null; + outputAudioConfigBuilder_ = null; + } + + return this; + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { + + onChanged(); + return getOutputAudioConfigFieldBuilder().getBuilder(); + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { + if (outputAudioConfigBuilder_ != null) { + return outputAudioConfigBuilder_.getMessageOrBuilder(); + } else { + return outputAudioConfig_ == null ? + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; + } + } + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder> + getOutputAudioConfigFieldBuilder() { + if (outputAudioConfigBuilder_ == null) { + outputAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>( + getOutputAudioConfig(), + getParentForChildren(), + isClean()); + outputAudioConfig_ = null; + } + return outputAudioConfigBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java index d925b995b77a..3a1f4c75d797 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java @@ -29,7 +29,8 @@ public interface DetectIntentResponseOrBuilder extends /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -37,7 +38,8 @@ public interface DetectIntentResponseOrBuilder extends boolean hasQueryResult(); /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
@@ -45,13 +47,88 @@ public interface DetectIntentResponseOrBuilder extends com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult(); /** *- * The results of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *.google.cloud.dialogflow.v2beta1.QueryResult query_result = 2;
*/ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOrBuilder(); + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + java.util.List+ getAlternativeQueryResultsList(); + /** + * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index); + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + int getAlternativeQueryResultsCount(); + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> + getAlternativeQueryResultsOrBuilderList(); + /** + *+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */ + com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder( + int index); + /** ** Specifies the status of the webhook request. `webhook_status` @@ -79,4 +156,44 @@ public interface DetectIntentResponseOrBuilder extends ** *.google.rpc.Status webhook_status = 3;
*/ com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder(); + + /** + *+ * The audio data bytes encoded as specified in the request. + *+ * + *bytes output_audio = 4;
+ */ + com.google.protobuf.ByteString getOutputAudio(); + + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + boolean hasOutputAudioConfig(); + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig(); + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java new file mode 100644 index 000000000000..75ce493068fa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java @@ -0,0 +1,1823 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + *+ * A document resource. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Document} + */ +public final class Document extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Document) + DocumentOrBuilder { +private static final long serialVersionUID = 0L; + // Use Document.newBuilder() to construct. + private Document(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Document() { + name_ = ""; + displayName_ = ""; + mimeType_ = ""; + knowledgeTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Document( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mimeType_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + knowledgeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + knowledgeTypes_.add(rawValue); + break; + } + case 34: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + knowledgeTypes_ = new java.util.ArrayList (); + mutable_bitField0_ |= 0x00000008; + } + knowledgeTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 5; + source_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 6; + source_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + knowledgeTypes_ = java.util.Collections.unmodifiableList(knowledgeTypes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_Document_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Document.class, com.google.cloud.dialogflow.v2beta1.Document.Builder.class); + } + + /** + * + * The knowledge type of document content. + *+ * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.Document.KnowledgeType} + */ + public enum KnowledgeType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *+ * The type is unspecified or arbitrary. + *+ * + *KNOWLEDGE_TYPE_UNSPECIFIED = 0;
+ */ + KNOWLEDGE_TYPE_UNSPECIFIED(0), + /** + *+ * The document content contains question and answer pairs as either HTML or + * CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats + * may fail to be parsed. + * CSV must have questions in the first column and answers in the second, + * with no header. Because of this explicit format, they are always parsed + * accurately. + *+ * + *FAQ = 1;
+ */ + FAQ(1), + /** + *+ * Documents for which unstructured text is extracted and used for + * question answering. + *+ * + *EXTRACTIVE_QA = 2;
+ */ + EXTRACTIVE_QA(2), + UNRECOGNIZED(-1), + ; + + /** + *+ * The type is unspecified or arbitrary. + *+ * + *KNOWLEDGE_TYPE_UNSPECIFIED = 0;
+ */ + public static final int KNOWLEDGE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *+ * The document content contains question and answer pairs as either HTML or + * CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats + * may fail to be parsed. + * CSV must have questions in the first column and answers in the second, + * with no header. Because of this explicit format, they are always parsed + * accurately. + *+ * + *FAQ = 1;
+ */ + public static final int FAQ_VALUE = 1; + /** + *+ * Documents for which unstructured text is extracted and used for + * question answering. + *+ * + *EXTRACTIVE_QA = 2;
+ */ + public static final int EXTRACTIVE_QA_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KnowledgeType valueOf(int value) { + return forNumber(value); + } + + public static KnowledgeType forNumber(int value) { + switch (value) { + case 0: return KNOWLEDGE_TYPE_UNSPECIFIED; + case 1: return FAQ; + case 2: return EXTRACTIVE_QA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap+ internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + KnowledgeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public KnowledgeType findValueByNumber(int number) { + return KnowledgeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Document.getDescriptor().getEnumTypes().get(0); + } + + private static final KnowledgeType[] VALUES = values(); + + public static KnowledgeType 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 KnowledgeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Document.KnowledgeType) + } + + private int bitField0_; + private int sourceCase_ = 0; + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite { + CONTENT_URI(5), + CONTENT(6), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 5: return CONTENT_URI; + case 6: return CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *+ * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIME_TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object mimeType_; + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public com.google.protobuf.ByteString + getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KNOWLEDGE_TYPES_FIELD_NUMBER = 4; + private java.util.ListknowledgeTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType> knowledgeTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType>() { + public com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType convert(java.lang.Integer from) { + com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType result = com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType.valueOf(from); + return result == null ? com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType.UNRECOGNIZED : result; + } + }; + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public java.util.ListgetKnowledgeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType>(knowledgeTypes_, knowledgeTypes_converter_); + } + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public int getKnowledgeTypesCount() { + return knowledgeTypes_.size(); + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType getKnowledgeTypes(int index) { + return knowledgeTypes_converter_.convert(knowledgeTypes_.get(index)); + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public java.util.List+ getKnowledgeTypesValueList() { + return knowledgeTypes_; + } + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public int getKnowledgeTypesValue(int index) { + return knowledgeTypes_.get(index); + } + private int knowledgeTypesMemoizedSerializedSize; + + public static final int CONTENT_URI_FIELD_NUMBER = 5; + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public java.lang.String getContentUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 5) { + source_ = s; + } + return s; + } + } + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public com.google.protobuf.ByteString + getContentUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 5) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 6; + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public java.lang.String getContent() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 6) { + source_ = s; + } + return s; + } + } + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 6) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getMimeTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_); + } + if (getKnowledgeTypesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(knowledgeTypesMemoizedSerializedSize); + } + for (int i = 0; i < knowledgeTypes_.size(); i++) { + output.writeEnumNoTag(knowledgeTypes_.get(i)); + } + if (sourceCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, source_); + } + if (sourceCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, source_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getMimeTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_); + } + { + int dataSize = 0; + for (int i = 0; i < knowledgeTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(knowledgeTypes_.get(i)); + } + size += dataSize; + if (!getKnowledgeTypesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }knowledgeTypesMemoizedSerializedSize = dataSize; + } + if (sourceCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, source_); + } + if (sourceCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, source_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Document)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Document other = (com.google.cloud.dialogflow.v2beta1.Document) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getDisplayName() + .equals(other.getDisplayName()); + result = result && getMimeType() + .equals(other.getMimeType()); + result = result && knowledgeTypes_.equals(other.knowledgeTypes_); + result = result && getSourceCase().equals( + other.getSourceCase()); + if (!result) return false; + switch (sourceCase_) { + case 5: + result = result && getContentUri() + .equals(other.getContentUri()); + break; + case 6: + result = result && getContent() + .equals(other.getContent()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + if (getKnowledgeTypesCount() > 0) { + hash = (37 * hash) + KNOWLEDGE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + knowledgeTypes_.hashCode(); + } + switch (sourceCase_) { + case 5: + hash = (37 * hash) + CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getContentUri().hashCode(); + break; + case 6: + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Document parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Document prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * A document resource. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Document} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Document) + com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_Document_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Document.class, com.google.cloud.dialogflow.v2beta1.Document.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Document.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + mimeType_ = ""; + + knowledgeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + sourceCase_ = 0; + source_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.Document getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.Document build() { + com.google.cloud.dialogflow.v2beta1.Document result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.Document buildPartial() { + com.google.cloud.dialogflow.v2beta1.Document result = new com.google.cloud.dialogflow.v2beta1.Document(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.displayName_ = displayName_; + result.mimeType_ = mimeType_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + knowledgeTypes_ = java.util.Collections.unmodifiableList(knowledgeTypes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.knowledgeTypes_ = knowledgeTypes_; + if (sourceCase_ == 5) { + result.source_ = source_; + } + if (sourceCase_ == 6) { + result.source_ = source_; + } + result.bitField0_ = to_bitField0_; + result.sourceCase_ = sourceCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Document) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Document)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Document other) { + if (other == com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + onChanged(); + } + if (!other.knowledgeTypes_.isEmpty()) { + if (knowledgeTypes_.isEmpty()) { + knowledgeTypes_ = other.knowledgeTypes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureKnowledgeTypesIsMutable(); + knowledgeTypes_.addAll(other.knowledgeTypes_); + } + onChanged(); + } + switch (other.getSourceCase()) { + case CONTENT_URI: { + sourceCase_ = 5; + source_ = other.source_; + onChanged(); + break; + } + case CONTENT: { + sourceCase_ = 6; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.Document parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.Document) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *+ * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *+ * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public com.google.protobuf.ByteString + getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public Builder setMimeType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mimeType_ = value; + onChanged(); + return this; + } + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public Builder clearMimeType() { + + mimeType_ = getDefaultInstance().getMimeType(); + onChanged(); + return this; + } + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mimeType_ = value; + onChanged(); + return this; + } + + private java.util.ListknowledgeTypes_ = + java.util.Collections.emptyList(); + private void ensureKnowledgeTypesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + knowledgeTypes_ = new java.util.ArrayList (knowledgeTypes_); + bitField0_ |= 0x00000008; + } + } + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public java.util.ListgetKnowledgeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType>(knowledgeTypes_, knowledgeTypes_converter_); + } + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public int getKnowledgeTypesCount() { + return knowledgeTypes_.size(); + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType getKnowledgeTypes(int index) { + return knowledgeTypes_converter_.convert(knowledgeTypes_.get(index)); + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder setKnowledgeTypes( + int index, com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKnowledgeTypesIsMutable(); + knowledgeTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder addKnowledgeTypes(com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKnowledgeTypesIsMutable(); + knowledgeTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder addAllKnowledgeTypes( + java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType> values) { + ensureKnowledgeTypesIsMutable(); + for (com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType value : values) { + knowledgeTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder clearKnowledgeTypes() { + knowledgeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public java.util.List+ getKnowledgeTypesValueList() { + return java.util.Collections.unmodifiableList(knowledgeTypes_); + } + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public int getKnowledgeTypesValue(int index) { + return knowledgeTypes_.get(index); + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder setKnowledgeTypesValue( + int index, int value) { + ensureKnowledgeTypesIsMutable(); + knowledgeTypes_.set(index, value); + onChanged(); + return this; + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder addKnowledgeTypesValue(int value) { + ensureKnowledgeTypesIsMutable(); + knowledgeTypes_.add(value); + onChanged(); + return this; + } + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + public Builder addAllKnowledgeTypesValue( + java.lang.Iterablevalues) { + ensureKnowledgeTypesIsMutable(); + for (int value : values) { + knowledgeTypes_.add(value); + } + onChanged(); + return this; + } + + /** + * + * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public java.lang.String getContentUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 5) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public com.google.protobuf.ByteString + getContentUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 5) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public Builder setContentUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 5; + source_ = value; + onChanged(); + return this; + } + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public Builder clearContentUri() { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + public Builder setContentUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 5; + source_ = value; + onChanged(); + return this; + } + + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public java.lang.String getContent() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 6) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public com.google.protobuf.ByteString + getContentBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 6) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public Builder setContent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 6; + source_ = value; + onChanged(); + return this; + } + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public Builder clearContent() { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + public Builder setContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 6; + source_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Document) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Document) + private static final com.google.cloud.dialogflow.v2beta1.Document DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Document(); + } + + public static com.google.cloud.dialogflow.v2beta1.Document getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Document(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.Document getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java new file mode 100644 index 000000000000..d79c23c3d736 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.dialogflow.v2beta1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class DocumentName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String knowledgeBase; + private final String document; + + public String getProject() { + return project; + } + + public String getKnowledgeBase() { + return knowledgeBase; + } + + public String getDocument() { + return document; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private DocumentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + knowledgeBase = Preconditions.checkNotNull(builder.getKnowledgeBase()); + document = Preconditions.checkNotNull(builder.getDocument()); + } + + public static DocumentName of(String project, String knowledgeBase, String document) { + return newBuilder() + .setProject(project) + .setKnowledgeBase(knowledgeBase) + .setDocument(document) + .build(); + } + + public static String format(String project, String knowledgeBase, String document) { + return newBuilder() + .setProject(project) + .setKnowledgeBase(knowledgeBase) + .setDocument(document) + .build() + .toString(); + } + + public static DocumentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "DocumentName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("knowledge_base"), matchMap.get("document")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList (values.size()); + for (DocumentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("knowledgeBase", knowledgeBase); + fieldMapBuilder.put("document", document); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "knowledge_base", knowledgeBase, "document", document); + } + + /** Builder for DocumentName. */ + public static class Builder { + + private String project; + private String knowledgeBase; + private String document; + + public String getProject() { + return project; + } + + public String getKnowledgeBase() { + return knowledgeBase; + } + + public String getDocument() { + return document; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setKnowledgeBase(String knowledgeBase) { + this.knowledgeBase = knowledgeBase; + return this; + } + + public Builder setDocument(String document) { + this.document = document; + return this; + } + + private Builder() { + } + + private Builder(DocumentName documentName) { + project = documentName.project; + knowledgeBase = documentName.knowledgeBase; + document = documentName.document; + } + + public DocumentName build() { + return new DocumentName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof DocumentName) { + DocumentName that = (DocumentName) o; + return (this.project.equals(that.project)) + && (this.knowledgeBase.equals(that.knowledgeBase)) + && (this.document.equals(that.document)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= knowledgeBase.hashCode(); + h *= 1000003; + h ^= document.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java new file mode 100644 index 000000000000..e59042b40a38 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java @@ -0,0 +1,165 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface DocumentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Document) + com.google.protobuf.MessageOrBuilder { + + /** + * + * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + java.lang.String getName(); + /** + *+ * The document resource name. + * The name must be empty when creating a document. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string name = 1;
+ */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + java.lang.String getDisplayName(); + /** + *+ * Required. The display name of the document. The name must be 1024 bytes or + * less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + java.lang.String getMimeType(); + /** + *+ * Required. The MIME type of this document. + *+ * + *string mime_type = 3;
+ */ + com.google.protobuf.ByteString + getMimeTypeBytes(); + + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + java.util.ListgetKnowledgeTypesList(); + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + int getKnowledgeTypesCount(); + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType getKnowledgeTypes(int index); + /** + *+ * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + java.util.List+ getKnowledgeTypesValueList(); + /** + * + * Required. The knowledge type of document content. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
+ */ + int getKnowledgeTypesValue(int index); + + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + java.lang.String getContentUri(); + /** + *+ * The URI where the file content is located. + * For documents stored in Google Cloud Storage, these URIs must have + * the form `gs://<bucket-name>/<object-name>`. + * NOTE: External URLs must correspond to public webpages, i.e., they must + * be indexed by Google Search. In particular, URLs for showing documents in + * Google Cloud Storage (i.e. the URL in your browser) are not supported. + * Instead use the `gs://` format URI described above. + *+ * + *string content_uri = 5;
+ */ + com.google.protobuf.ByteString + getContentUriBytes(); + + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + java.lang.String getContent(); + /** + *+ * The raw content of the document. This field is only permitted for + * EXTRACTIVE_QA and FAQ knowledge types. + *+ * + *string content = 6;
+ */ + com.google.protobuf.ByteString + getContentBytes(); + + public com.google.cloud.dialogflow.v2beta1.Document.SourceCase getSourceCase(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java new file mode 100644 index 000000000000..658d5d224af1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +public final class DocumentProto { + private DocumentProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/dialogflow/v2beta1/docume" + + "nt.proto\022\037google.cloud.dialogflow.v2beta" + + "1\032\034google/api/annotations.proto\032#google/" + + "longrunning/operations.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\"\224\002\n\010Document\022\014\n\004name\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\022\021\n\tmime_type\030\003 \001(\t\022" + + "P\n\017knowledge_types\030\004 \003(\01627.google.cloud." + + "dialogflow.v2beta1.Document.KnowledgeTyp" + + "e\022\025\n\013content_uri\030\005 \001(\tH\000\022\021\n\007content\030\006 \001(" + + "\tH\000\"K\n\rKnowledgeType\022\036\n\032KNOWLEDGE_TYPE_U" + + "NSPECIFIED\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002" + + "B\010\n\006source\"M\n\024ListDocumentsRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"n\n\025ListDocumentsResponse\022<\n\tdo" + + "cuments\030\001 \003(\0132).google.cloud.dialogflow." + + "v2beta1.Document\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\"\n\022GetDocumentRequest\022\014\n\004name\030\001 \001(\t\"d\n" + + "\025CreateDocumentRequest\022\016\n\006parent\030\001 \001(\t\022;" + + "\n\010document\030\002 \001(\0132).google.cloud.dialogfl" + + "ow.v2beta1.Document\"%\n\025DeleteDocumentReq" + + "uest\022\014\n\004name\030\001 \001(\t\"\262\001\n\032KnowledgeOperatio" + + "nMetadata\022P\n\005state\030\001 \001(\0162A.google.cloud." + + "dialogflow.v2beta1.KnowledgeOperationMet" + + "adata.State\"B\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\0032" + + "\361\007\n\tDocuments\022\201\002\n\rListDocuments\0225.google" + + ".cloud.dialogflow.v2beta1.ListDocumentsR" + + "equest\0326.google.cloud.dialogflow.v2beta1" + + ".ListDocumentsResponse\"\200\001\202\323\344\223\002z\0227/v2beta" + + "1/{parent=projects/*/knowledgeBases/*}/d" + + "ocumentsZ?\022=/v2beta1/{parent=projects/*/" + + "agent/knowledgeBases/*}/documents\022\360\001\n\013Ge" + + "tDocument\0223.google.cloud.dialogflow.v2be" + + "ta1.GetDocumentRequest\032).google.cloud.di" + + "alogflow.v2beta1.Document\"\200\001\202\323\344\223\002z\0227/v2b" + + "eta1/{name=projects/*/knowledgeBases/*/d" + + "ocuments/*}Z?\022=/v2beta1/{name=projects/*" + + "/agent/knowledgeBases/*/documents/*}\022\377\001\n" + + "\016CreateDocument\0226.google.cloud.dialogflo" + + "w.v2beta1.CreateDocumentRequest\032\035.google" + + ".longrunning.Operation\"\225\001\202\323\344\223\002\216\001\"7/v2bet" + + "a1/{parent=projects/*/knowledgeBases/*}/" + + "documents:\010documentZI\"=/v2beta1/{parent=" + + "projects/*/agent/knowledgeBases/*}/docum" + + "ents:\010document\022\352\001\n\016DeleteDocument\0226.goog" + + "le.cloud.dialogflow.v2beta1.DeleteDocume" + + "ntRequest\032\035.google.longrunning.Operation" + + "\"\200\001\202\323\344\223\002z*7/v2beta1/{name=projects/*/kno" + + "wledgeBases/*/documents/*}Z?*=/v2beta1/{" + + "name=projects/*/agent/knowledgeBases/*/d" + + "ocuments/*}B\253\001\n#com.google.cloud.dialogf" + + "low.v2beta1B\rDocumentProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/dialog" + + "flow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google" + + ".Cloud.Dialogflow.V2beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, assigner); + internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_Document_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MimeType", "KnowledgeTypes", "ContentUri", "Content", "Source", }); + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsResponse_descriptor, + new java.lang.String[] { "Documents", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CreateDocumentRequest_descriptor, + new java.lang.String[] { "Parent", "Document", }); + internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor, + new java.lang.String[] { "State", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java index c64aedd7411e..440dcbc34f12 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java @@ -139,9 +139,11 @@ public java.lang.String getParent() { private volatile java.lang.Object agentUri_; /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -160,9 +162,11 @@ public java.lang.String getAgentUri() { } /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -582,9 +586,11 @@ public Builder setParentBytes( private java.lang.Object agentUri_ = ""; /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -603,9 +609,11 @@ public java.lang.String getAgentUri() { } /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -625,9 +633,11 @@ public java.lang.String getAgentUri() { } /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -644,9 +654,11 @@ public Builder setAgentUri( } /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -659,9 +671,11 @@ public Builder clearAgentUri() { } /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java index 1686c0410f17..5bb18e766a6d 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java @@ -29,9 +29,11 @@ public interface ExportAgentRequestOrBuilder extends /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
@@ -39,9 +41,11 @@ public interface ExportAgentRequestOrBuilder extends java.lang.String getAgentUri(); /** *- * Optional. The Google Cloud Storage URI to export the agent to. - * Note: The URI must start with - * "gs://". If left unspecified, the serialized agent is returned inline. + * Optional. The + * [Google Cloud Storage](https://cloud.google.com/storage/docs/) + * URI to export the agent to. + * The format of this URI must be `gs://<bucket-name>/<object-name>`. + * If left unspecified, the serialized agent is returned inline. ** *string agent_uri = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java index 906ab3ae0c1d..28f56bdb1128 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java @@ -184,16 +184,17 @@ public java.lang.String getAgentUri() { ** The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode > <agent zip file> + * | base64 --decode > <agent zip file></pre> ** *bytes agent_content = 2;
@@ -665,16 +666,17 @@ public Builder setAgentUriBytes( ** The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode > <agent zip file> + * | base64 --decode > <agent zip file></pre> ** *bytes agent_content = 2;
@@ -689,16 +691,17 @@ public com.google.protobuf.ByteString getAgentContent() { ** The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode > <agent zip file> + * | base64 --decode > <agent zip file></pre> ** *bytes agent_content = 2;
@@ -716,16 +719,17 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) { ** The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode > <agent zip file> + * | base64 --decode > <agent zip file></pre> ** *bytes agent_content = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java index abd1525c5bcf..e3c9fd60e031 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java @@ -31,16 +31,17 @@ public interface ExportAgentResponseOrBuilder extends ** The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode > <agent zip file> + * | base64 --decode > <agent zip file></pre> ** *bytes agent_content = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java index c2e1a8d5b9b3..8dc2b27b971a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java @@ -91,10 +91,9 @@ private GetContextRequest( * Required. The name of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>` * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. If <Environment - * ID> is not specified, we assume default 'draft' environment. If <User ID> - * is not specified, we assume default '-' user. + * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is + * not specified, we assume default 'draft' environment. If `User ID` is not + * specified, we assume default '-' user. *string name = 1;
@@ -116,10 +115,9 @@ public java.lang.String getName() { * Required. The name of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>` * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and - * users are under construction and will be available soon. If <Environment - * ID> is not specified, we assume default 'draft' environment. If <User ID> - * is not specified, we assume default '-' user. + * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is + * not specified, we assume default 'draft' environment. If `User ID` is not + * specified, we assume default '-' user. *
string name = 1;
@@ -431,10 +429,9 @@ public Builder mergeFrom(
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -456,10 +453,9 @@ public java.lang.String getName() {
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -482,10 +478,9 @@ public java.lang.String getName() {
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -505,10 +500,9 @@ public Builder setName(
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -524,10 +518,9 @@ public Builder clearName() {
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java
index 2449b229550e..9d98ab2faf53 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java
@@ -12,10 +12,9 @@ public interface GetContextRequestOrBuilder extends
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
@@ -26,10 +25,9 @@ public interface GetContextRequestOrBuilder extends
* Required. The name of the context. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
* or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
- * users are under construction and will be available soon. If <Environment
- * ID> is not specified, we assume default 'draft' environment. If <User ID>
- * is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
+ * not specified, we assume default 'draft' environment. If `User ID` is not
+ * specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java
new file mode 100644
index 000000000000..285745eb2e98
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java
@@ -0,0 +1,566 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/document.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetDocumentRequest} + */ +public final class GetDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GetDocumentRequest) + GetDocumentRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetDocumentRequest.newBuilder() to construct. + private GetDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GetDocumentRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDocumentRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_GetDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetDocumentRequest.class, com.google.cloud.dialogflow.v2beta1.GetDocumentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.GetDocumentRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.GetDocumentRequest other = (com.google.cloud.dialogflow.v2beta1.GetDocumentRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.GetDocumentRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetDocumentRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GetDocumentRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GetDocumentRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.GetDocumentRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GetDocumentRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.GetDocumentRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * Required. The name of the document to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java
new file mode 100644
index 000000000000..392b4cedde35
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java
@@ -0,0 +1,559 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [KnowledgeBase.GetDocument][]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest} + */ +public final class GetKnowledgeBaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest) + GetKnowledgeBaseRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetKnowledgeBaseRequest.newBuilder() to construct. + private GetKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GetKnowledgeBaseRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetKnowledgeBaseRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest other = (com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [KnowledgeBase.GetDocument][]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * Required. The name of the knowledge base to retrieve. + * Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java
index 16831c4c6e7d..e6b2116c413a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java
@@ -91,11 +91,9 @@ private GetSessionEntityTypeRequest(
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -117,11 +115,9 @@ public java.lang.String getName() {
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -433,11 +429,9 @@ public Builder mergeFrom(
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -459,11 +453,9 @@ public java.lang.String getName() {
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -486,11 +478,9 @@ public java.lang.String getName() {
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -510,11 +500,9 @@ public Builder setName(
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -530,11 +518,9 @@ public Builder clearName() {
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java
index e1c45cfb6b50..0c002854f981 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java
@@ -12,11 +12,9 @@ public interface GetSessionEntityTypeRequestOrBuilder extends
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -27,11 +25,9 @@ public interface GetSessionEntityTypeRequestOrBuilder extends
* Required. The name of the session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
- * ID>/users/<User ID>/sessions/<Session ID>/
- * entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users re under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java
index 07cc3290000b..087ddf97455b 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java
@@ -235,16 +235,17 @@ public java.lang.String getAgentUri() {
* * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
@@ -827,16 +828,17 @@ public Builder setAgentUriBytes(
* * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
@@ -851,16 +853,17 @@ public com.google.protobuf.ByteString getAgentContent() {
* * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
@@ -878,16 +881,17 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) {
* * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java
index 7e2aba1221fb..3f344b3c3fab 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java
@@ -51,16 +51,17 @@ public interface ImportAgentRequestOrBuilder extends
* * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java
index bd2d2f6d32a5..16368cb9eb48 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java
@@ -24,6 +24,7 @@ private InputAudioConfig() {
sampleRateHertz_ = 0;
languageCode_ = "";
phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ model_ = "";
}
@java.lang.Override
@@ -83,6 +84,12 @@ private InputAudioConfig(
phraseHints_.add(s);
break;
}
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ model_ = s;
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -140,8 +147,10 @@ public com.google.cloud.dialogflow.v2beta1.AudioEncoding getAudioEncoding() {
/**
* * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. ** *
int32 sample_rate_hertz = 2;
@@ -206,7 +215,9 @@ public java.lang.String getLanguageCode() {
* * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -220,7 +231,9 @@ public java.lang.String getLanguageCode() { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -233,7 +246,9 @@ public int getPhraseHintsCount() { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -246,7 +261,9 @@ public java.lang.String getPhraseHints(int index) { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -257,6 +274,68 @@ public java.lang.String getPhraseHints(int index) { return phraseHints_.getByteString(index); } + public static final int MODEL_FIELD_NUMBER = 7; + private volatile java.lang.Object model_; + /** + *
+ * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -281,6 +360,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < phraseHints_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phraseHints_.getRaw(i));
}
+ if (!getModelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, model_);
+ }
unknownFields.writeTo(output);
}
@@ -308,6 +390,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getPhraseHintsList().size();
}
+ if (!getModelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, model_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -331,6 +416,8 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getLanguageCode());
result = result && getPhraseHintsList()
.equals(other.getPhraseHintsList());
+ result = result && getModel()
+ .equals(other.getModel());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@@ -352,6 +439,8 @@ public int hashCode() {
hash = (37 * hash) + PHRASE_HINTS_FIELD_NUMBER;
hash = (53 * hash) + getPhraseHintsList().hashCode();
}
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -493,6 +582,8 @@ public Builder clear() {
phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
+ model_ = "";
+
return this;
}
@@ -525,6 +616,7 @@ public com.google.cloud.dialogflow.v2beta1.InputAudioConfig buildPartial() {
bitField0_ = (bitField0_ & ~0x00000008);
}
result.phraseHints_ = phraseHints_;
+ result.model_ = model_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -587,6 +679,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.InputAudioConfig ot
}
onChanged();
}
+ if (!other.getModel().isEmpty()) {
+ model_ = other.model_;
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -683,8 +779,10 @@ public Builder clearAudioEncoding() {
/**
* * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. ** *
int32 sample_rate_hertz = 2;
@@ -695,8 +793,10 @@ public int getSampleRateHertz() {
/**
* * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. ** *
int32 sample_rate_hertz = 2;
@@ -710,8 +810,10 @@ public Builder setSampleRateHertz(int value) {
/**
* * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. ** *
int32 sample_rate_hertz = 2;
@@ -843,7 +945,9 @@ private void ensurePhraseHintsIsMutable() {
* * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -857,7 +961,9 @@ private void ensurePhraseHintsIsMutable() { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -870,7 +976,9 @@ public int getPhraseHintsCount() { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -883,7 +991,9 @@ public java.lang.String getPhraseHints(int index) { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -897,7 +1007,9 @@ public java.lang.String getPhraseHints(int index) { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -917,7 +1029,9 @@ public Builder setPhraseHints( *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -937,7 +1051,9 @@ public Builder addPhraseHints( *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -955,7 +1071,9 @@ public Builder addAllPhraseHints( *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -971,7 +1089,9 @@ public Builder clearPhraseHints() { *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -988,6 +1108,145 @@ public Builder addPhraseHintsBytes( onChanged(); return this; } + + private java.lang.Object model_ = ""; + /** + *
+ * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public Builder clearModel() {
+
+ model_ = getDefaultInstance().getModel();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java
index 373035e8912a..a7c04ff0ea6c 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java
@@ -27,8 +27,10 @@ public interface InputAudioConfigOrBuilder extends
/**
* * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. ** *
int32 sample_rate_hertz = 2;
@@ -65,7 +67,9 @@ public interface InputAudioConfigOrBuilder extends
* * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -77,7 +81,9 @@ public interface InputAudioConfigOrBuilder extends *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -88,7 +94,9 @@ public interface InputAudioConfigOrBuilder extends *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -99,7 +107,9 @@ public interface InputAudioConfigOrBuilder extends *
* Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. - * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) * for more details. ** @@ -107,4 +117,42 @@ public interface InputAudioConfigOrBuilder extends */ com.google.protobuf.ByteString getPhraseHintsBytes(int index); + + /** + *
+ * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ java.lang.String getModel();
+ /**
+ * + * Optional. Which Speech model to select for the given request. Select the + * model best suited to your domain to get best results. If a model is not + * explicitly specified, then we auto-select a model based on the parameters + * in the InputAudioConfig. + * If enhanced speech model is enabled for the agent and an enhanced + * version of the specified model for the language does not exist, then the + * speech is recognized using the standard version of the specified model. + * Refer to + * [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + * for more details. + *+ * + *
string model = 7;
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java
index e7577670ec1c..11b27b564047 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java
@@ -29,6 +29,7 @@ private Intent() {
isFallback_ = false;
mlEnabled_ = false;
mlDisabled_ = false;
+ endInteraction_ = false;
inputContextNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
trainingPhrases_ = java.util.Collections.emptyList();
@@ -109,26 +110,26 @@ private Intent(
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
+ if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
inputContextNames_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000080;
+ mutable_bitField0_ |= 0x00000100;
}
inputContextNames_.add(s);
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
+ if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
events_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000100;
+ mutable_bitField0_ |= 0x00000200;
}
events_.add(s);
break;
}
case 74: {
- if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
+ if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
trainingPhrases_ = new java.util.ArrayList+ * Plays audio from a file in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ */
+ boolean hasTelephonyPlayAudio();
+ /**
+ * + * Plays audio from a file in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getTelephonyPlayAudio();
+ /**
+ * + * Plays audio from a file in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder getTelephonyPlayAudioOrBuilder();
+
+ /**
+ * + * Synthesizes speech in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ */
+ boolean hasTelephonySynthesizeSpeech();
+ /**
+ * + * Synthesizes speech in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech getTelephonySynthesizeSpeech();
+ /**
+ * + * Synthesizes speech in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder getTelephonySynthesizeSpeechOrBuilder();
+
+ /**
+ * + * Transfers the call in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ */
+ boolean hasTelephonyTransferCall();
+ /**
+ * + * Transfers the call in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall getTelephonyTransferCall();
+ /**
+ * + * Transfers the call in Telephony Gateway. + *+ * + *
.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ */
+ com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder getTelephonyTransferCallOrBuilder();
+
/**
* * Optional. The platform that this message is intended for. @@ -5247,6 +5328,48 @@ private Message( messageCase_ = 12; break; } + case 106: { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder subBuilder = null; + if (messageCase_ == 13) { + subBuilder = ((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_).toBuilder(); + } + message_ = + input.readMessage(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 13; + break; + } + case 114: { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder subBuilder = null; + if (messageCase_ == 14) { + subBuilder = ((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_).toBuilder(); + } + message_ = + input.readMessage(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 14; + break; + } + case 122: { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder subBuilder = null; + if (messageCase_ == 15) { + subBuilder = ((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_).toBuilder(); + } + message_ = + input.readMessage(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 15; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5412,6 +5535,14 @@ public enum Platform ** - *ACTIONS_ON_GOOGLE = 8;
*/ ACTIONS_ON_GOOGLE(8), + /** + *+ * Telephony Gateway. + *+ * + *TELEPHONY = 10;
+ */ + TELEPHONY(10), UNRECOGNIZED(-1), ; @@ -5547,6 +5678,14 @@ public enum Platform *ACTIONS_ON_GOOGLE = 8;
*/ public static final int ACTIONS_ON_GOOGLE_VALUE = 8; + /** + *+ * Telephony Gateway. + *+ * + *TELEPHONY = 10;
+ */ + public static final int TELEPHONY_VALUE = 10; public final int getNumber() { @@ -5576,6 +5715,7 @@ public static Platform forNumber(int value) { case 6: return LINE; case 7: return VIBER; case 8: return ACTIONS_ON_GOOGLE; + case 10: return TELEPHONY; default: return null; } } @@ -6307,8 +6447,8 @@ public interface ImageOrBuilder extends /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6316,8 +6456,8 @@ public interface ImageOrBuilder extends java.lang.String getAccessibilityText(); /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6459,8 +6599,8 @@ public java.lang.String getImageUri() { private volatile java.lang.Object accessibilityText_; /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6479,8 +6619,8 @@ public java.lang.String getAccessibilityText() { } /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6895,8 +7035,8 @@ public Builder setImageUriBytes( private java.lang.Object accessibilityText_ = ""; /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6915,8 +7055,8 @@ public java.lang.String getAccessibilityText() { } /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6936,8 +7076,8 @@ public java.lang.String getAccessibilityText() { } /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6954,8 +7094,8 @@ public Builder setAccessibilityText( } /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -6968,8 +7108,8 @@ public Builder clearAccessibilityText() { } /** *- * Optional. A text description of the image to be used for accessibility, - * e.g., screen readers. + * A text description of the image to be used for accessibility, + * e.g., screen readers. Required if image_uri is set for CarouselSelect. ** *string accessibility_text = 2;
@@ -22375,768 +22515,3062 @@ public com.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo getDefa } - private int messageCase_ = 0; - private java.lang.Object message_; - public enum MessageCase - implements com.google.protobuf.Internal.EnumLite { - TEXT(1), - IMAGE(2), - QUICK_REPLIES(3), - CARD(4), - PAYLOAD(5), - SIMPLE_RESPONSES(7), - BASIC_CARD(8), - SUGGESTIONS(9), - LINK_OUT_SUGGESTION(10), - LIST_SELECT(11), - CAROUSEL_SELECT(12), - MESSAGE_NOT_SET(0); - private final int value; - private MessageCase(int value) { - this.value = value; - } + public interface TelephonyPlayAudioOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) + com.google.protobuf.MessageOrBuilder { + /** - * @deprecated Use {@link #forNumber(int)} instead. + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
*/ - @java.lang.Deprecated - public static MessageCase valueOf(int value) { - return forNumber(value); - } - - public static MessageCase forNumber(int value) { - switch (value) { - case 1: return TEXT; - case 2: return IMAGE; - case 3: return QUICK_REPLIES; - case 4: return CARD; - case 5: return PAYLOAD; - case 7: return SIMPLE_RESPONSES; - case 8: return BASIC_CARD; - case 9: return SUGGESTIONS; - case 10: return LINK_OUT_SUGGESTION; - case 11: return LIST_SELECT; - case 12: return CAROUSEL_SELECT; - case 0: return MESSAGE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public MessageCase - getMessageCase() { - return MessageCase.forNumber( - messageCase_); - } - - public static final int TEXT_FIELD_NUMBER = 1; - /** - *- * Returns a text response. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
- */ - public boolean hasText() { - return messageCase_ == 1; + java.lang.String getAudioUri(); + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + com.google.protobuf.ByteString + getAudioUriBytes(); } /** *- * Returns a text response. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio} */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + public static final class TelephonyPlayAudio extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) + TelephonyPlayAudioOrBuilder { + private static final long serialVersionUID = 0L; + // Use TelephonyPlayAudio.newBuilder() to construct. + private TelephonyPlayAudio(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); - } - /** - *- * Returns a text response. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + private TelephonyPlayAudio() { + audioUri_ = ""; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); - } - public static final int IMAGE_FIELD_NUMBER = 2; - /** - *- * Displays an image. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
- */ - public boolean hasImage() { - return messageCase_ == 2; - } - /** - *- * Displays an image. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { - if (messageCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); - } - /** - *- * Displays an image. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { - if (messageCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); - } - - public static final int QUICK_REPLIES_FIELD_NUMBER = 3; - /** - *- * Displays quick replies. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
- */ - public boolean hasQuickReplies() { - return messageCase_ == 3; - } - /** - *- * Displays quick replies. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() { - if (messageCase_ == 3) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + private TelephonyPlayAudio( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + audioUri_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); - } - /** - *- * Displays quick replies. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder() { - if (messageCase_ == 3) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); - } - public static final int CARD_FIELD_NUMBER = 4; - /** - *- * Displays a card. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
- */ - public boolean hasCard() { - return messageCase_ == 4; - } - /** - *- * Displays a card. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() { - if (messageCase_ == 4) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); - } - /** - *- * Displays a card. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() { - if (messageCase_ == 4) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder.class); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); - } - public static final int PAYLOAD_FIELD_NUMBER = 5; - /** - *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. - *- * - *.google.protobuf.Struct payload = 5;
- */ - public boolean hasPayload() { - return messageCase_ == 5; - } - /** - *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. - *- * - *.google.protobuf.Struct payload = 5;
- */ - public com.google.protobuf.Struct getPayload() { - if (messageCase_ == 5) { - return (com.google.protobuf.Struct) message_; + public static final int AUDIO_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object audioUri_; + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public java.lang.String getAudioUri() { + java.lang.Object ref = audioUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audioUri_ = s; + return s; + } } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. - *- * - *.google.protobuf.Struct payload = 5;
- */ - public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - if (messageCase_ == 5) { - return (com.google.protobuf.Struct) message_; + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public com.google.protobuf.ByteString + getAudioUriBytes() { + java.lang.Object ref = audioUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audioUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - return com.google.protobuf.Struct.getDefaultInstance(); - } - public static final int SIMPLE_RESPONSES_FIELD_NUMBER = 7; - /** - *- * Returns a voice or text-only response for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
- */ - public boolean hasSimpleResponses() { - return messageCase_ == 7; - } - /** - *- * Returns a voice or text-only response for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() { - if (messageCase_ == 7) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); - } - /** - *- * Returns a voice or text-only response for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder() { - if (messageCase_ == 7) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAudioUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioUri_); + } + unknownFields.writeTo(output); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); - } - public static final int BASIC_CARD_FIELD_NUMBER = 8; - /** - *- * Displays a basic card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
- */ - public boolean hasBasicCard() { - return messageCase_ == 8; - } - /** - *- * Displays a basic card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() { - if (messageCase_ == 8) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAudioUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); - } - /** - *- * Displays a basic card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder() { - if (messageCase_ == 8) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); - } - public static final int SUGGESTIONS_FIELD_NUMBER = 9; - /** - *- * Displays suggestion chips for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
- */ - public boolean hasSuggestions() { - return messageCase_ == 9; - } - /** - *- * Displays suggestion chips for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() { - if (messageCase_ == 9) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); - } - /** - *- * Displays suggestion chips for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder() { - if (messageCase_ == 9) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio other = (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) obj; - public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10; - /** - *- * Displays a link out suggestion chip for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
- */ - public boolean hasLinkOutSuggestion() { - return messageCase_ == 10; - } - /** - *- * Displays a link out suggestion chip for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion getLinkOutSuggestion() { - if (messageCase_ == 10) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); - } - /** - *- * Displays a link out suggestion chip for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder() { - if (messageCase_ == 10) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; + boolean result = true; + result = result && getAudioUri() + .equals(other.getAudioUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); - } - public static final int LIST_SELECT_FIELD_NUMBER = 11; - /** - *- * Displays a list card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
- */ - public boolean hasListSelect() { - return messageCase_ == 11; - } - /** - *- * Displays a list card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() { - if (messageCase_ == 11) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); - } - /** - *- * Displays a list card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder getListSelectOrBuilder() { - if (messageCase_ == 11) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUDIO_URI_FIELD_NUMBER; + hash = (53 * hash) + getAudioUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); - } - public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12; - /** - *- * Displays a carousel card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
- */ - public boolean hasCarouselSelect() { - return messageCase_ == 12; - } - /** - *- * Displays a carousel card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() { - if (messageCase_ == 12) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); - } - /** - *- * Displays a carousel card for Actions on Google. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder() { - if (messageCase_ == 12) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); - } - - public static final int PLATFORM_FIELD_NUMBER = 6; - private int platform_; - /** - *- * Optional. The platform that this message is intended for. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
- */ - public int getPlatformValue() { - return platform_; - } - /** - *- * Optional. The platform that this message is intended for. - *- * - *.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
- */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform() { - com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result = com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.valueOf(platform_); - return result == null ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (messageCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (messageCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (messageCase_ == 3) { - output.writeMessage(3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (messageCase_ == 4) { - output.writeMessage(4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (messageCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Struct) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - if (platform_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED.getNumber()) { - output.writeEnum(6, platform_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - if (messageCase_ == 7) { - output.writeMessage(7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - if (messageCase_ == 8) { - output.writeMessage(8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_); - } - if (messageCase_ == 9) { - output.writeMessage(9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_); - } - if (messageCase_ == 10) { - output.writeMessage(10, (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - if (messageCase_ == 11) { - output.writeMessage(11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - if (messageCase_ == 12) { - output.writeMessage(12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_); + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (messageCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_); - } - if (messageCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_); - } - if (messageCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_); - } - if (messageCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_); - } - if (messageCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Struct) message_); - } - if (platform_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, platform_); - } - if (messageCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_); - } - if (messageCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_); - } - if (messageCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_); - } - if (messageCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (messageCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_); + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (messageCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message)) { - return super.equals(obj); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - com.google.cloud.dialogflow.v2beta1.Intent.Message other = (com.google.cloud.dialogflow.v2beta1.Intent.Message) obj; + /** + *+ * Plays audio from a file in Telephony Gateway. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor; + } - boolean result = true; - result = result && platform_ == other.platform_; - result = result && getMessageCase().equals( - other.getMessageCase()); - if (!result) return false; - switch (messageCase_) { - case 1: - result = result && getText() - .equals(other.getText()); - break; - case 2: - result = result && getImage() - .equals(other.getImage()); - break; - case 3: - result = result && getQuickReplies() - .equals(other.getQuickReplies()); - break; - case 4: - result = result && getCard() - .equals(other.getCard()); - break; - case 5: - result = result && getPayload() - .equals(other.getPayload()); - break; - case 7: - result = result && getSimpleResponses() - .equals(other.getSimpleResponses()); - break; - case 8: - result = result && getBasicCard() - .equals(other.getBasicCard()); - break; - case 9: - result = result && getSuggestions() - .equals(other.getSuggestions()); - break; - case 10: - result = result && getLinkOutSuggestion() - .equals(other.getLinkOutSuggestion()); - break; - case 11: - result = result && getListSelect() - .equals(other.getListSelect()); - break; - case 12: - result = result && getCarouselSelect() - .equals(other.getCarouselSelect()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + platform_; - switch (messageCase_) { - case 1: - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - break; - case 2: - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - break; - case 3: - hash = (37 * hash) + QUICK_REPLIES_FIELD_NUMBER; - hash = (53 * hash) + getQuickReplies().hashCode(); - break; - case 4: - hash = (37 * hash) + CARD_FIELD_NUMBER; - hash = (53 * hash) + getCard().hashCode(); - break; - case 5: - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - break; - case 7: - hash = (37 * hash) + SIMPLE_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getSimpleResponses().hashCode(); - break; - case 8: - hash = (37 * hash) + BASIC_CARD_FIELD_NUMBER; - hash = (53 * hash) + getBasicCard().hashCode(); - break; - case 9: - hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER; - hash = (53 * hash) + getSuggestions().hashCode(); - break; - case 10: - hash = (37 * hash) + LINK_OUT_SUGGESTION_FIELD_NUMBER; - hash = (53 * hash) + getLinkOutSuggestion().hashCode(); - break; - case 11: - hash = (37 * hash) + LIST_SELECT_FIELD_NUMBER; - hash = (53 * hash) + getListSelect().hashCode(); - break; - case 12: - hash = (37 * hash) + CAROUSEL_SELECT_FIELD_NUMBER; - hash = (53 * hash) + getCarouselSelect().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + audioUri_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio result = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio(this); + result.audioUri_ = audioUri_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio other) { + if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance()) return this; + if (!other.getAudioUri().isEmpty()) { + audioUri_ = other.audioUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object audioUri_ = ""; + /** + * + * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public java.lang.String getAudioUri() { + java.lang.Object ref = audioUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audioUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public com.google.protobuf.ByteString + getAudioUriBytes() { + java.lang.Object ref = audioUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audioUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public Builder setAudioUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + audioUri_ = value; + onChanged(); + return this; + } + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public Builder clearAudioUri() { + + audioUri_ = getDefaultInstance().getAudioUri(); + onChanged(); + return this; + } + /** + *+ * Required. URI to a Google Cloud Storage object containing the audio to + * play, e.g., "gs://bucket/object". The object must contain a single + * channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. + * This object must be readable by the `service-<Project + * Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account + * where <Project Number> is the number of the Telephony Gateway project + * (usually the same as the Dialogflow agent project). If the Google Cloud + * Storage bucket is in the Telephony Gateway project, this permission is + * added by default when enabling the Dialogflow V2 API. + * For audio from other sources, consider using the + * `TelephonySynthesizeSpeech` message with SSML. + *+ * + *string audio_uri = 1;
+ */ + public Builder setAudioUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + audioUri_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public TelephonyPlayAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TelephonyPlayAudio(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TelephonySynthesizeSpeechOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) + com.google.protobuf.MessageOrBuilder { + + /** + * + * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + java.lang.String getText(); + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + com.google.protobuf.ByteString + getTextBytes(); + + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + java.lang.String getSsml(); + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + com.google.protobuf.ByteString + getSsmlBytes(); + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.SourceCase getSourceCase(); + } + /** + *+ * Synthesizes speech and plays back the synthesized audio to the caller in + * Telephony Gateway. + * Telephony Gateway takes the synthesizer settings from + * `DetectIntentResponse.output_audio_config` which can either be set + * at request-level or can come from the agent-level synthesizer config. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech} + */ + public static final class TelephonySynthesizeSpeech extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) + TelephonySynthesizeSpeechOrBuilder { + private static final long serialVersionUID = 0L; + // Use TelephonySynthesizeSpeech.newBuilder() to construct. + private TelephonySynthesizeSpeech(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private TelephonySynthesizeSpeech() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TelephonySynthesizeSpeech( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite { + TEXT(1), + SSML(2), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: return TEXT; + case 2: return SSML; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } + } + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSML_FIELD_NUMBER = 2; + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public java.lang.String getSsml() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public com.google.protobuf.ByteString + getSsmlBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sourceCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech other = (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) obj; + + boolean result = true; + result = result && getSourceCase().equals( + other.getSourceCase()); + if (!result) return false; + switch (sourceCase_) { + case 1: + result = result && getText() + .equals(other.getText()); + break; + case 2: + result = result && getSsml() + .equals(other.getSsml()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + SSML_FIELD_NUMBER; + hash = (53 * hash) + getSsml().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Synthesizes speech and plays back the synthesized audio to the caller in + * Telephony Gateway. + * Telephony Gateway takes the synthesizer settings from + * `DetectIntentResponse.output_audio_config` which can either be set + * at request-level or can come from the agent-level synthesizer config. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + sourceCase_ = 0; + source_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech result = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech(this); + if (sourceCase_ == 1) { + result.source_ = source_; + } + if (sourceCase_ == 2) { + result.source_ = source_; + } + result.sourceCase_ = sourceCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech other) { + if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case TEXT: { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case SSML: { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + + /** + * + * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public Builder setText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public Builder clearText() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + *+ * The raw text to be synthesized. + *+ * + *string text = 1;
+ */ + public Builder setTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public java.lang.String getSsml() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public com.google.protobuf.ByteString + getSsmlBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public Builder setSsml( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public Builder clearSsml() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + *+ * The SSML to be synthesized. For more information, see + * [SSML](https://developers.google.com/actions/reference/ssml). + *+ * + *string ssml = 2;
+ */ + public Builder setSsmlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public TelephonySynthesizeSpeech parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TelephonySynthesizeSpeech(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TelephonyTransferCallOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + java.lang.String getPhoneNumber(); + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + com.google.protobuf.ByteString + getPhoneNumberBytes(); + } + /** + *+ * Transfers the call in Telephony Gateway. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall} + */ + public static final class TelephonyTransferCall extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) + TelephonyTransferCallOrBuilder { + private static final long serialVersionUID = 0L; + // Use TelephonyTransferCall.newBuilder() to construct. + private TelephonyTransferCall(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private TelephonyTransferCall() { + phoneNumber_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TelephonyTransferCall( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneNumber_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder.class); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + private volatile java.lang.Object phoneNumber_; + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } + } + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPhoneNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPhoneNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall other = (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) obj; + + boolean result = true; + result = result && getPhoneNumber() + .equals(other.getPhoneNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Transfers the call in Telephony Gateway. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + phoneNumber_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall result = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall(this); + result.phoneNumber_ = phoneNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall other) { + if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance()) return this; + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object phoneNumber_ = ""; + /** + * + * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phoneNumber_ = value; + onChanged(); + return this; + } + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public Builder clearPhoneNumber() { + + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + onChanged(); + return this; + } + /** + *+ * Required. The phone number to transfer the call to + * in [E.164 format](https://en.wikipedia.org/wiki/E.164). + * We currently only allow transferring to US numbers (+1xxxyyyzzzz). + *+ * + *string phone_number = 1;
+ */ + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneNumber_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public TelephonyTransferCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TelephonyTransferCall(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int messageCase_ = 0; + private java.lang.Object message_; + public enum MessageCase + implements com.google.protobuf.Internal.EnumLite { + TEXT(1), + IMAGE(2), + QUICK_REPLIES(3), + CARD(4), + PAYLOAD(5), + SIMPLE_RESPONSES(7), + BASIC_CARD(8), + SUGGESTIONS(9), + LINK_OUT_SUGGESTION(10), + LIST_SELECT(11), + CAROUSEL_SELECT(12), + TELEPHONY_PLAY_AUDIO(13), + TELEPHONY_SYNTHESIZE_SPEECH(14), + TELEPHONY_TRANSFER_CALL(15), + MESSAGE_NOT_SET(0); + private final int value; + private MessageCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: return TEXT; + case 2: return IMAGE; + case 3: return QUICK_REPLIES; + case 4: return CARD; + case 5: return PAYLOAD; + case 7: return SIMPLE_RESPONSES; + case 8: return BASIC_CARD; + case 9: return SUGGESTIONS; + case 10: return LINK_OUT_SUGGESTION; + case 11: return LIST_SELECT; + case 12: return CAROUSEL_SELECT; + case 13: return TELEPHONY_PLAY_AUDIO; + case 14: return TELEPHONY_SYNTHESIZE_SPEECH; + case 15: return TELEPHONY_TRANSFER_CALL; + case 0: return MESSAGE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + * + * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public boolean hasText() { + return messageCase_ == 1; + } + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + } + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + } + + public static final int IMAGE_FIELD_NUMBER = 2; + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public boolean hasImage() { + return messageCase_ == 2; + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + if (messageCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { + if (messageCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + + public static final int QUICK_REPLIES_FIELD_NUMBER = 3; + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public boolean hasQuickReplies() { + return messageCase_ == 3; + } + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder() { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } + + public static final int CARD_FIELD_NUMBER = 4; + /** + *+ * Displays a card. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ */ + public boolean hasCard() { + return messageCase_ == 4; + } + /** + *+ * Displays a card. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + } + /** + *+ * Displays a card. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + } + + public static final int PAYLOAD_FIELD_NUMBER = 5; + /** + *+ * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. + *+ * + *.google.protobuf.Struct payload = 5;
+ */ + public boolean hasPayload() { + return messageCase_ == 5; + } + /** + *+ * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. + *+ * + *.google.protobuf.Struct payload = 5;
+ */ + public com.google.protobuf.Struct getPayload() { + if (messageCase_ == 5) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + *+ * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. + *+ * + *.google.protobuf.Struct payload = 5;
+ */ + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (messageCase_ == 5) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int SIMPLE_RESPONSES_FIELD_NUMBER = 7; + /** + *+ * Returns a voice or text-only response for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ */ + public boolean hasSimpleResponses() { + return messageCase_ == 7; + } + /** + *+ * Returns a voice or text-only response for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() { + if (messageCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); + } + /** + *+ * Returns a voice or text-only response for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder() { + if (messageCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); + } + + public static final int BASIC_CARD_FIELD_NUMBER = 8; + /** + *+ * Displays a basic card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ */ + public boolean hasBasicCard() { + return messageCase_ == 8; + } + /** + *+ * Displays a basic card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() { + if (messageCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); + } + /** + *+ * Displays a basic card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder() { + if (messageCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); + } + + public static final int SUGGESTIONS_FIELD_NUMBER = 9; + /** + *+ * Displays suggestion chips for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */ + public boolean hasSuggestions() { + return messageCase_ == 9; + } + /** + *+ * Displays suggestion chips for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() { + if (messageCase_ == 9) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); + } + /** + *+ * Displays suggestion chips for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder() { + if (messageCase_ == 9) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); + } + + public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER = 10; + /** + *+ * Displays a link out suggestion chip for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ */ + public boolean hasLinkOutSuggestion() { + return messageCase_ == 10; + } + /** + *+ * Displays a link out suggestion chip for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion getLinkOutSuggestion() { + if (messageCase_ == 10) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); + } + /** + *+ * Displays a link out suggestion chip for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder() { + if (messageCase_ == 10) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); + } + + public static final int LIST_SELECT_FIELD_NUMBER = 11; + /** + *+ * Displays a list card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ */ + public boolean hasListSelect() { + return messageCase_ == 11; + } + /** + *+ * Displays a list card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() { + if (messageCase_ == 11) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); + } + /** + *+ * Displays a list card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder getListSelectOrBuilder() { + if (messageCase_ == 11) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); + } + + public static final int CAROUSEL_SELECT_FIELD_NUMBER = 12; + /** + *+ * Displays a carousel card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ */ + public boolean hasCarouselSelect() { + return messageCase_ == 12; + } + /** + *+ * Displays a carousel card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() { + if (messageCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); + } + /** + *+ * Displays a carousel card for Actions on Google. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder() { + if (messageCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); + } + + public static final int TELEPHONY_PLAY_AUDIO_FIELD_NUMBER = 13; + /** + *+ * Plays audio from a file in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ */ + public boolean hasTelephonyPlayAudio() { + return messageCase_ == 13; + } + /** + *+ * Plays audio from a file in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getTelephonyPlayAudio() { + if (messageCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); + } + /** + *+ * Plays audio from a file in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder getTelephonyPlayAudioOrBuilder() { + if (messageCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); + } + + public static final int TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER = 14; + /** + *+ * Synthesizes speech in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ */ + public boolean hasTelephonySynthesizeSpeech() { + return messageCase_ == 14; + } + /** + *+ * Synthesizes speech in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech getTelephonySynthesizeSpeech() { + if (messageCase_ == 14) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); + } + /** + *+ * Synthesizes speech in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder getTelephonySynthesizeSpeechOrBuilder() { + if (messageCase_ == 14) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); + } + + public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 15; + /** + *+ * Transfers the call in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ */ + public boolean hasTelephonyTransferCall() { + return messageCase_ == 15; + } + /** + *+ * Transfers the call in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall getTelephonyTransferCall() { + if (messageCase_ == 15) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); + } + /** + *+ * Transfers the call in Telephony Gateway. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder getTelephonyTransferCallOrBuilder() { + if (messageCase_ == 15) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); + } + + public static final int PLATFORM_FIELD_NUMBER = 6; + private int platform_; + /** + *+ * Optional. The platform that this message is intended for. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
+ */ + public int getPlatformValue() { + return platform_; + } + /** + *+ * Optional. The platform that this message is intended for. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getPlatform() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform result = com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.valueOf(platform_); + return result == null ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (messageCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_); + } + if (messageCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_); + } + if (messageCase_ == 3) { + output.writeMessage(3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_); + } + if (messageCase_ == 4) { + output.writeMessage(4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_); + } + if (messageCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Struct) message_); + } + if (platform_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED.getNumber()) { + output.writeEnum(6, platform_); + } + if (messageCase_ == 7) { + output.writeMessage(7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_); + } + if (messageCase_ == 8) { + output.writeMessage(8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_); + } + if (messageCase_ == 9) { + output.writeMessage(9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_); + } + if (messageCase_ == 10) { + output.writeMessage(10, (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_); + } + if (messageCase_ == 11) { + output.writeMessage(11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_); + } + if (messageCase_ == 12) { + output.writeMessage(12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_); + } + if (messageCase_ == 13) { + output.writeMessage(13, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_); + } + if (messageCase_ == 14) { + output.writeMessage(14, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_); + } + if (messageCase_ == 15) { + output.writeMessage(15, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (messageCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_); + } + if (messageCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_); + } + if (messageCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_); + } + if (messageCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_); + } + if (messageCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.protobuf.Struct) message_); + } + if (platform_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform.PLATFORM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, platform_); + } + if (messageCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_); + } + if (messageCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_); + } + if (messageCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_); + } + if (messageCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_); + } + if (messageCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_); + } + if (messageCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_); + } + if (messageCase_ == 13) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_); + } + if (messageCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_); + } + if (messageCase_ == 15) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message other = (com.google.cloud.dialogflow.v2beta1.Intent.Message) obj; + + boolean result = true; + result = result && platform_ == other.platform_; + result = result && getMessageCase().equals( + other.getMessageCase()); + if (!result) return false; + switch (messageCase_) { + case 1: + result = result && getText() + .equals(other.getText()); + break; + case 2: + result = result && getImage() + .equals(other.getImage()); + break; + case 3: + result = result && getQuickReplies() + .equals(other.getQuickReplies()); + break; + case 4: + result = result && getCard() + .equals(other.getCard()); + break; + case 5: + result = result && getPayload() + .equals(other.getPayload()); + break; + case 7: + result = result && getSimpleResponses() + .equals(other.getSimpleResponses()); + break; + case 8: + result = result && getBasicCard() + .equals(other.getBasicCard()); + break; + case 9: + result = result && getSuggestions() + .equals(other.getSuggestions()); + break; + case 10: + result = result && getLinkOutSuggestion() + .equals(other.getLinkOutSuggestion()); + break; + case 11: + result = result && getListSelect() + .equals(other.getListSelect()); + break; + case 12: + result = result && getCarouselSelect() + .equals(other.getCarouselSelect()); + break; + case 13: + result = result && getTelephonyPlayAudio() + .equals(other.getTelephonyPlayAudio()); + break; + case 14: + result = result && getTelephonySynthesizeSpeech() + .equals(other.getTelephonySynthesizeSpeech()); + break; + case 15: + result = result && getTelephonyTransferCall() + .equals(other.getTelephonyTransferCall()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + platform_; + switch (messageCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + break; + case 3: + hash = (37 * hash) + QUICK_REPLIES_FIELD_NUMBER; + hash = (53 * hash) + getQuickReplies().hashCode(); + break; + case 4: + hash = (37 * hash) + CARD_FIELD_NUMBER; + hash = (53 * hash) + getCard().hashCode(); + break; + case 5: + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + break; + case 7: + hash = (37 * hash) + SIMPLE_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getSimpleResponses().hashCode(); + break; + case 8: + hash = (37 * hash) + BASIC_CARD_FIELD_NUMBER; + hash = (53 * hash) + getBasicCard().hashCode(); + break; + case 9: + hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestions().hashCode(); + break; + case 10: + hash = (37 * hash) + LINK_OUT_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getLinkOutSuggestion().hashCode(); + break; + case 11: + hash = (37 * hash) + LIST_SELECT_FIELD_NUMBER; + hash = (53 * hash) + getListSelect().hashCode(); + break; + case 12: + hash = (37 * hash) + CAROUSEL_SELECT_FIELD_NUMBER; + hash = (53 * hash) + getCarouselSelect().hashCode(); + break; + case 13: + hash = (37 * hash) + TELEPHONY_PLAY_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getTelephonyPlayAudio().hashCode(); + break; + case 14: + hash = (37 * hash) + TELEPHONY_SYNTHESIZE_SPEECH_FIELD_NUMBER; + hash = (53 * hash) + getTelephonySynthesizeSpeech().hashCode(); + break; + case 15: + hash = (37 * hash) + TELEPHONY_TRANSFER_CALL_FIELD_NUMBER; + hash = (53 * hash) + getTelephonyTransferCall().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom(byte[] data) @@ -23187,2212 +25621,2761 @@ public static com.google.cloud.dialogflow.v2beta1.Intent.Message parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Intent.Message prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Corresponds to the `Response` field in the Dialogflow console. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message) + com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + platform_ = 0; + + messageCase_ = 0; + message_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.Intent.Message buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message result = new com.google.cloud.dialogflow.v2beta1.Intent.Message(this); + if (messageCase_ == 1) { + if (textBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = textBuilder_.build(); + } + } + if (messageCase_ == 2) { + if (imageBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = imageBuilder_.build(); + } + } + if (messageCase_ == 3) { + if (quickRepliesBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = quickRepliesBuilder_.build(); + } + } + if (messageCase_ == 4) { + if (cardBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = cardBuilder_.build(); + } + } + if (messageCase_ == 5) { + if (payloadBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = payloadBuilder_.build(); + } + } + if (messageCase_ == 7) { + if (simpleResponsesBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = simpleResponsesBuilder_.build(); + } + } + if (messageCase_ == 8) { + if (basicCardBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = basicCardBuilder_.build(); + } + } + if (messageCase_ == 9) { + if (suggestionsBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = suggestionsBuilder_.build(); + } + } + if (messageCase_ == 10) { + if (linkOutSuggestionBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = linkOutSuggestionBuilder_.build(); + } + } + if (messageCase_ == 11) { + if (listSelectBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = listSelectBuilder_.build(); + } + } + if (messageCase_ == 12) { + if (carouselSelectBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = carouselSelectBuilder_.build(); + } + } + if (messageCase_ == 13) { + if (telephonyPlayAudioBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = telephonyPlayAudioBuilder_.build(); + } + } + if (messageCase_ == 14) { + if (telephonySynthesizeSpeechBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = telephonySynthesizeSpeechBuilder_.build(); + } + } + if (messageCase_ == 15) { + if (telephonyTransferCallBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = telephonyTransferCallBuilder_.build(); + } + } + result.platform_ = platform_; + result.messageCase_ = messageCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message)other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * Corresponds to the `Response` field in the Dialogflow console. - *- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message) - com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor; + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message other) { + if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance()) return this; + if (other.platform_ != 0) { + setPlatformValue(other.getPlatformValue()); + } + switch (other.getMessageCase()) { + case TEXT: { + mergeText(other.getText()); + break; + } + case IMAGE: { + mergeImage(other.getImage()); + break; + } + case QUICK_REPLIES: { + mergeQuickReplies(other.getQuickReplies()); + break; + } + case CARD: { + mergeCard(other.getCard()); + break; + } + case PAYLOAD: { + mergePayload(other.getPayload()); + break; + } + case SIMPLE_RESPONSES: { + mergeSimpleResponses(other.getSimpleResponses()); + break; + } + case BASIC_CARD: { + mergeBasicCard(other.getBasicCard()); + break; + } + case SUGGESTIONS: { + mergeSuggestions(other.getSuggestions()); + break; + } + case LINK_OUT_SUGGESTION: { + mergeLinkOutSuggestion(other.getLinkOutSuggestion()); + break; + } + case LIST_SELECT: { + mergeListSelect(other.getListSelect()); + break; + } + case CAROUSEL_SELECT: { + mergeCarouselSelect(other.getCarouselSelect()); + break; + } + case TELEPHONY_PLAY_AUDIO: { + mergeTelephonyPlayAudio(other.getTelephonyPlayAudio()); + break; + } + case TELEPHONY_SYNTHESIZE_SPEECH: { + mergeTelephonySynthesizeSpeech(other.getTelephonySynthesizeSpeech()); + break; + } + case TELEPHONY_TRANSFER_CALL: { + mergeTelephonyTransferCall(other.getTelephonyTransferCall()); + break; + } + case MESSAGE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.Intent.Message.class, com.google.cloud.dialogflow.v2beta1.Intent.Message.Builder.class); + public final boolean isInitialized() { + return true; } - // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.Intent.Message parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.Intent.Message) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int messageCase_ = 0; + private java.lang.Object message_; + public MessageCase + getMessageCase() { + return MessageCase.forNumber( + messageCase_); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + public Builder clearMessage() { + messageCase_ = 0; + message_ = null; + onChanged(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Text, com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder> textBuilder_; + /** + * + * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public boolean hasText() { + return messageCase_ == 1; + } + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() { + if (textBuilder_ == null) { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + } else { + if (messageCase_ == 1) { + return textBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + } + } + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public Builder setText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) { + if (textBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + textBuilder_.setMessage(value); + } + messageCase_ = 1; + return this; + } + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public Builder setText( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder builderForValue) { + if (textBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + textBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 1; + return this; + } + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public Builder mergeText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) { + if (textBuilder_ == null) { + if (messageCase_ == 1 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_) + .mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 1) { + textBuilder_.mergeFrom(value); + } + textBuilder_.setMessage(value); } - } - public Builder clear() { - super.clear(); - platform_ = 0; - - messageCase_ = 0; - message_ = null; + messageCase_ = 1; return this; } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.IntentProto.internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor; + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public Builder clearText() { + if (textBuilder_ == null) { + if (messageCase_ == 1) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 1) { + messageCase_ = 0; + message_ = null; + } + textBuilder_.clear(); + } + return this; } - - public com.google.cloud.dialogflow.v2beta1.Intent.Message getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance(); + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder getTextBuilder() { + return getTextFieldBuilder().getBuilder(); } - - public com.google.cloud.dialogflow.v2beta1.Intent.Message build() { - com.google.cloud.dialogflow.v2beta1.Intent.Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() { + if ((messageCase_ == 1) && (textBuilder_ != null)) { + return textBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); } - return result; } - - public com.google.cloud.dialogflow.v2beta1.Intent.Message buildPartial() { - com.google.cloud.dialogflow.v2beta1.Intent.Message result = new com.google.cloud.dialogflow.v2beta1.Intent.Message(this); - if (messageCase_ == 1) { - if (textBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = textBuilder_.build(); + /** + *+ * Returns a text response. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Text, com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder> + getTextFieldBuilder() { + if (textBuilder_ == null) { + if (!(messageCase_ == 1)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); } + textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Text, com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_, + getParentForChildren(), + isClean()); + message_ = null; } - if (messageCase_ == 2) { - if (imageBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = imageBuilder_.build(); + messageCase_ = 1; + onChanged();; + return textBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> imageBuilder_; + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public boolean hasImage() { + return messageCase_ == 2; + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + if (imageBuilder_ == null) { + if (messageCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; } - } - if (messageCase_ == 3) { - if (quickRepliesBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = quickRepliesBuilder_.build(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } else { + if (messageCase_ == 2) { + return imageBuilder_.getMessage(); } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); } - if (messageCase_ == 4) { - if (cardBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = cardBuilder_.build(); + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + message_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); } - if (messageCase_ == 5) { - if (payloadBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = payloadBuilder_.build(); - } + messageCase_ = 2; + return this; + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public Builder setImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) { + if (imageBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); } - if (messageCase_ == 7) { - if (simpleResponsesBuilder_ == null) { - result.message_ = message_; + messageCase_ = 2; + return this; + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (imageBuilder_ == null) { + if (messageCase_ == 2 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_) + .mergeFrom(value).buildPartial(); } else { - result.message_ = simpleResponsesBuilder_.build(); + message_ = value; } - } - if (messageCase_ == 8) { - if (basicCardBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = basicCardBuilder_.build(); + onChanged(); + } else { + if (messageCase_ == 2) { + imageBuilder_.mergeFrom(value); } + imageBuilder_.setMessage(value); } - if (messageCase_ == 9) { - if (suggestionsBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = suggestionsBuilder_.build(); + messageCase_ = 2; + return this; + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public Builder clearImage() { + if (imageBuilder_ == null) { + if (messageCase_ == 2) { + messageCase_ = 0; + message_ = null; + onChanged(); } - } - if (messageCase_ == 10) { - if (linkOutSuggestionBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = linkOutSuggestionBuilder_.build(); + } else { + if (messageCase_ == 2) { + messageCase_ = 0; + message_ = null; } + imageBuilder_.clear(); } - if (messageCase_ == 11) { - if (listSelectBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = listSelectBuilder_.build(); + return this; + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() { + return getImageFieldBuilder().getBuilder(); + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { + if ((messageCase_ == 2) && (imageBuilder_ != null)) { + return imageBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); } - if (messageCase_ == 12) { - if (carouselSelectBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = carouselSelectBuilder_.build(); + } + /** + *+ * Displays an image. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + getImageFieldBuilder() { + if (imageBuilder_ == null) { + if (!(messageCase_ == 2)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); } + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_, + getParentForChildren(), + isClean()); + message_ = null; } - result.platform_ = platform_; - result.messageCase_ = messageCase_; - onBuilt(); - return result; + messageCase_ = 2; + onChanged();; + return imageBuilder_; } - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder> quickRepliesBuilder_; + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public boolean hasQuickReplies() { + return messageCase_ == 3; } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() { + if (quickRepliesBuilder_ == null) { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } else { + if (messageCase_ == 3) { + return quickRepliesBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message) { - return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message)other); + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public Builder setQuickReplies(com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) { + if (quickRepliesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); } else { - super.mergeFrom(other); - return this; + quickRepliesBuilder_.setMessage(value); } + messageCase_ = 3; + return this; } - - public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message other) { - if (other == com.google.cloud.dialogflow.v2beta1.Intent.Message.getDefaultInstance()) return this; - if (other.platform_ != 0) { - setPlatformValue(other.getPlatformValue()); + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public Builder setQuickReplies( + com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder builderForValue) { + if (quickRepliesBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + quickRepliesBuilder_.setMessage(builderForValue.build()); } - switch (other.getMessageCase()) { - case TEXT: { - mergeText(other.getText()); - break; - } - case IMAGE: { - mergeImage(other.getImage()); - break; - } - case QUICK_REPLIES: { - mergeQuickReplies(other.getQuickReplies()); - break; - } - case CARD: { - mergeCard(other.getCard()); - break; - } - case PAYLOAD: { - mergePayload(other.getPayload()); - break; - } - case SIMPLE_RESPONSES: { - mergeSimpleResponses(other.getSimpleResponses()); - break; - } - case BASIC_CARD: { - mergeBasicCard(other.getBasicCard()); - break; - } - case SUGGESTIONS: { - mergeSuggestions(other.getSuggestions()); - break; - } - case LINK_OUT_SUGGESTION: { - mergeLinkOutSuggestion(other.getLinkOutSuggestion()); - break; - } - case LIST_SELECT: { - mergeListSelect(other.getListSelect()); - break; - } - case CAROUSEL_SELECT: { - mergeCarouselSelect(other.getCarouselSelect()); - break; + messageCase_ = 3; + return this; + } + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public Builder mergeQuickReplies(com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) { + if (quickRepliesBuilder_ == null) { + if (messageCase_ == 3 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_) + .mergeFrom(value).buildPartial(); + } else { + message_ = value; } - case MESSAGE_NOT_SET: { - break; + onChanged(); + } else { + if (messageCase_ == 3) { + quickRepliesBuilder_.mergeFrom(value); } + quickRepliesBuilder_.setMessage(value); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); + messageCase_ = 3; return this; } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.dialogflow.v2beta1.Intent.Message parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dialogflow.v2beta1.Intent.Message) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public Builder clearQuickReplies() { + if (quickRepliesBuilder_ == null) { + if (messageCase_ == 3) { + messageCase_ = 0; + message_ = null; + onChanged(); } + } else { + if (messageCase_ == 3) { + messageCase_ = 0; + message_ = null; + } + quickRepliesBuilder_.clear(); } return this; } - private int messageCase_ = 0; - private java.lang.Object message_; - public MessageCase - getMessageCase() { - return MessageCase.forNumber( - messageCase_); + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder getQuickRepliesBuilder() { + return getQuickRepliesFieldBuilder().getBuilder(); } - - public Builder clearMessage() { - messageCase_ = 0; - message_ = null; - onChanged(); - return this; + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder() { + if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) { + return quickRepliesBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } + } + /** + *+ * Displays quick replies. + *+ * + *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder> + getQuickRepliesFieldBuilder() { + if (quickRepliesBuilder_ == null) { + if (!(messageCase_ == 3)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } + quickRepliesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 3; + onChanged();; + return quickRepliesBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Text, com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder> textBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.Card, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder> cardBuilder_; /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public boolean hasText() { - return messageCase_ == 1; + public boolean hasCard() { + return messageCase_ == 4; } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() { - if (textBuilder_ == null) { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() { + if (cardBuilder_ == null) { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); } else { - if (messageCase_ == 1) { - return textBuilder_.getMessage(); + if (messageCase_ == 4) { + return cardBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); } } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public Builder setText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) { - if (textBuilder_ == null) { + public Builder setCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) { + if (cardBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - textBuilder_.setMessage(value); + cardBuilder_.setMessage(value); } - messageCase_ = 1; + messageCase_ = 4; return this; } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public Builder setText( - com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder builderForValue) { - if (textBuilder_ == null) { + public Builder setCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder builderForValue) { + if (cardBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - textBuilder_.setMessage(builderForValue.build()); + cardBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 1; + messageCase_ = 4; return this; } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public Builder mergeText(com.google.cloud.dialogflow.v2beta1.Intent.Message.Text value) { - if (textBuilder_ == null) { - if (messageCase_ == 1 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_) + public Builder mergeCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) { + if (cardBuilder_ == null) { + if (messageCase_ == 4 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 1) { - textBuilder_.mergeFrom(value); + if (messageCase_ == 4) { + cardBuilder_.mergeFrom(value); } - textBuilder_.setMessage(value); + cardBuilder_.setMessage(value); } - messageCase_ = 1; + messageCase_ = 4; return this; } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public Builder clearText() { - if (textBuilder_ == null) { - if (messageCase_ == 1) { + public Builder clearCard() { + if (cardBuilder_ == null) { + if (messageCase_ == 4) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 1) { + if (messageCase_ == 4) { messageCase_ = 0; message_ = null; } - textBuilder_.clear(); + cardBuilder_.clear(); } return this; } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder getTextBuilder() { - return getTextFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder getCardBuilder() { + return getCardFieldBuilder().getBuilder(); } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() { - if ((messageCase_ == 1) && (textBuilder_ != null)) { - return textBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() { + if ((messageCase_ == 4) && (cardBuilder_ != null)) { + return cardBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); } } /** *- * Returns a text response. + * Displays a card. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Text, com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder> - getTextFieldBuilder() { - if (textBuilder_ == null) { - if (!(messageCase_ == 1)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.Card, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder> + getCardFieldBuilder() { + if (cardBuilder_ == null) { + if (!(messageCase_ == 4)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); } - textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Text, com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_, + cardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Card, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 1; + messageCase_ = 4; onChanged();; - return textBuilder_; + return cardBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> imageBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> payloadBuilder_; /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public boolean hasImage() { - return messageCase_ == 2; + public boolean hasPayload() { + return messageCase_ == 5; } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { - if (imageBuilder_ == null) { - if (messageCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + if (messageCase_ == 5) { + return (com.google.protobuf.Struct) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + return com.google.protobuf.Struct.getDefaultInstance(); } else { - if (messageCase_ == 2) { - return imageBuilder_.getMessage(); + if (messageCase_ == 5) { + return payloadBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + return com.google.protobuf.Struct.getDefaultInstance(); } } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { - if (imageBuilder_ == null) { + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - imageBuilder_.setMessage(value); + payloadBuilder_.setMessage(value); } - messageCase_ = 2; + messageCase_ = 5; return this; } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public Builder setImage( - com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) { - if (imageBuilder_ == null) { + public Builder setPayload( + com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - imageBuilder_.setMessage(builderForValue.build()); + payloadBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 2; + messageCase_ = 5; return this; } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { - if (imageBuilder_ == null) { - if (messageCase_ == 2 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_) + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (messageCase_ == 5 && + message_ != com.google.protobuf.Struct.getDefaultInstance()) { + message_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 2) { - imageBuilder_.mergeFrom(value); + if (messageCase_ == 5) { + payloadBuilder_.mergeFrom(value); } - imageBuilder_.setMessage(value); + payloadBuilder_.setMessage(value); } - messageCase_ = 2; + messageCase_ = 5; return this; } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public Builder clearImage() { - if (imageBuilder_ == null) { - if (messageCase_ == 2) { + public Builder clearPayload() { + if (payloadBuilder_ == null) { + if (messageCase_ == 5) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 2) { + if (messageCase_ == 5) { messageCase_ = 0; message_ = null; } - imageBuilder_.clear(); + payloadBuilder_.clear(); } return this; } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() { - return getImageFieldBuilder().getBuilder(); + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + return getPayloadFieldBuilder().getBuilder(); } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { - if ((messageCase_ == 2) && (imageBuilder_ != null)) { - return imageBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if ((messageCase_ == 5) && (payloadBuilder_ != null)) { + return payloadBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + if (messageCase_ == 5) { + return (com.google.protobuf.Struct) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + return com.google.protobuf.Struct.getDefaultInstance(); } } /** *- * Displays an image. + * Returns a response containing a custom, platform-specific payload. + * See the Intent.Message.Platform type for a description of the + * structure that may be required for your platform. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
+ *.google.protobuf.Struct payload = 5;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> - getImageFieldBuilder() { - if (imageBuilder_ == null) { - if (!(messageCase_ == 2)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + if (!(messageCase_ == 5)) { + message_ = com.google.protobuf.Struct.getDefaultInstance(); } - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_, + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 2; + messageCase_ = 5; onChanged();; - return imageBuilder_; + return payloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder> quickRepliesBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder> simpleResponsesBuilder_; /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public boolean hasQuickReplies() { - return messageCase_ == 3; + public boolean hasSimpleResponses() { + return messageCase_ == 7; } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() { - if (quickRepliesBuilder_ == null) { - if (messageCase_ == 3) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() { + if (simpleResponsesBuilder_ == null) { + if (messageCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); } else { - if (messageCase_ == 3) { - return quickRepliesBuilder_.getMessage(); + if (messageCase_ == 7) { + return simpleResponsesBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); } } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public Builder setQuickReplies(com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) { - if (quickRepliesBuilder_ == null) { + public Builder setSimpleResponses(com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) { + if (simpleResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - quickRepliesBuilder_.setMessage(value); + simpleResponsesBuilder_.setMessage(value); } - messageCase_ = 3; + messageCase_ = 7; return this; } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public Builder setQuickReplies( - com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder builderForValue) { - if (quickRepliesBuilder_ == null) { + public Builder setSimpleResponses( + com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder builderForValue) { + if (simpleResponsesBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - quickRepliesBuilder_.setMessage(builderForValue.build()); + simpleResponsesBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 3; + messageCase_ = 7; return this; } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public Builder mergeQuickReplies(com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies value) { - if (quickRepliesBuilder_ == null) { - if (messageCase_ == 3 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_) + public Builder mergeSimpleResponses(com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) { + if (simpleResponsesBuilder_ == null) { + if (messageCase_ == 7 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 3) { - quickRepliesBuilder_.mergeFrom(value); + if (messageCase_ == 7) { + simpleResponsesBuilder_.mergeFrom(value); } - quickRepliesBuilder_.setMessage(value); + simpleResponsesBuilder_.setMessage(value); } - messageCase_ = 3; + messageCase_ = 7; return this; } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public Builder clearQuickReplies() { - if (quickRepliesBuilder_ == null) { - if (messageCase_ == 3) { + public Builder clearSimpleResponses() { + if (simpleResponsesBuilder_ == null) { + if (messageCase_ == 7) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 3) { + if (messageCase_ == 7) { messageCase_ = 0; message_ = null; } - quickRepliesBuilder_.clear(); + simpleResponsesBuilder_.clear(); } return this; } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder getQuickRepliesBuilder() { - return getQuickRepliesFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder getSimpleResponsesBuilder() { + return getSimpleResponsesFieldBuilder().getBuilder(); } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder() { - if ((messageCase_ == 3) && (quickRepliesBuilder_ != null)) { - return quickRepliesBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder() { + if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) { + return simpleResponsesBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 3) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + if (messageCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); } } /** *- * Displays quick replies. + * Returns a voice or text-only response for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder> - getQuickRepliesFieldBuilder() { - if (quickRepliesBuilder_ == null) { - if (!(messageCase_ == 3)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder> + getSimpleResponsesFieldBuilder() { + if (simpleResponsesBuilder_ == null) { + if (!(messageCase_ == 7)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); } - quickRepliesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_, + simpleResponsesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 3; + messageCase_ = 7; onChanged();; - return quickRepliesBuilder_; + return simpleResponsesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Card, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder> cardBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder> basicCardBuilder_; /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public boolean hasCard() { - return messageCase_ == 4; + public boolean hasBasicCard() { + return messageCase_ == 8; } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() { - if (cardBuilder_ == null) { - if (messageCase_ == 4) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() { + if (basicCardBuilder_ == null) { + if (messageCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); } else { - if (messageCase_ == 4) { - return cardBuilder_.getMessage(); + if (messageCase_ == 8) { + return basicCardBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); } } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public Builder setCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) { - if (cardBuilder_ == null) { + public Builder setBasicCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) { + if (basicCardBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - cardBuilder_.setMessage(value); + basicCardBuilder_.setMessage(value); } - messageCase_ = 4; + messageCase_ = 8; return this; } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public Builder setCard( - com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder builderForValue) { - if (cardBuilder_ == null) { + public Builder setBasicCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder builderForValue) { + if (basicCardBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - cardBuilder_.setMessage(builderForValue.build()); + basicCardBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 4; + messageCase_ = 8; return this; } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public Builder mergeCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.Card value) { - if (cardBuilder_ == null) { - if (messageCase_ == 4 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_) + public Builder mergeBasicCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) { + if (basicCardBuilder_ == null) { + if (messageCase_ == 8 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 4) { - cardBuilder_.mergeFrom(value); + if (messageCase_ == 8) { + basicCardBuilder_.mergeFrom(value); } - cardBuilder_.setMessage(value); + basicCardBuilder_.setMessage(value); } - messageCase_ = 4; + messageCase_ = 8; return this; } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public Builder clearCard() { - if (cardBuilder_ == null) { - if (messageCase_ == 4) { + public Builder clearBasicCard() { + if (basicCardBuilder_ == null) { + if (messageCase_ == 8) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 4) { + if (messageCase_ == 8) { messageCase_ = 0; message_ = null; } - cardBuilder_.clear(); + basicCardBuilder_.clear(); } return this; } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder getCardBuilder() { - return getCardFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder getBasicCardBuilder() { + return getBasicCardFieldBuilder().getBuilder(); } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() { - if ((messageCase_ == 4) && (cardBuilder_ != null)) { - return cardBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder() { + if ((messageCase_ == 8) && (basicCardBuilder_ != null)) { + return basicCardBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 4) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + if (messageCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); } } /** *- * Displays a card. + * Displays a basic card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Card, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder> - getCardFieldBuilder() { - if (cardBuilder_ == null) { - if (!(messageCase_ == 4)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder> + getBasicCardFieldBuilder() { + if (basicCardBuilder_ == null) { + if (!(messageCase_ == 8)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); } - cardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Card, com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_, + basicCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 4; + messageCase_ = 8; onChanged();; - return cardBuilder_; + return basicCardBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> payloadBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder> suggestionsBuilder_; /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public boolean hasPayload() { - return messageCase_ == 5; + public boolean hasSuggestions() { + return messageCase_ == 9; } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public com.google.protobuf.Struct getPayload() { - if (payloadBuilder_ == null) { - if (messageCase_ == 5) { - return (com.google.protobuf.Struct) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() { + if (suggestionsBuilder_ == null) { + if (messageCase_ == 9) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; } - return com.google.protobuf.Struct.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); } else { - if (messageCase_ == 5) { - return payloadBuilder_.getMessage(); + if (messageCase_ == 9) { + return suggestionsBuilder_.getMessage(); } - return com.google.protobuf.Struct.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); } } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public Builder setPayload(com.google.protobuf.Struct value) { - if (payloadBuilder_ == null) { + public Builder setSuggestions(com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) { + if (suggestionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - payloadBuilder_.setMessage(value); + suggestionsBuilder_.setMessage(value); } - messageCase_ = 5; + messageCase_ = 9; return this; } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public Builder setPayload( - com.google.protobuf.Struct.Builder builderForValue) { - if (payloadBuilder_ == null) { + public Builder setSuggestions( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder builderForValue) { + if (suggestionsBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - payloadBuilder_.setMessage(builderForValue.build()); + suggestionsBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 5; + messageCase_ = 9; return this; } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public Builder mergePayload(com.google.protobuf.Struct value) { - if (payloadBuilder_ == null) { - if (messageCase_ == 5 && - message_ != com.google.protobuf.Struct.getDefaultInstance()) { - message_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) message_) + public Builder mergeSuggestions(com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) { + if (suggestionsBuilder_ == null) { + if (messageCase_ == 9 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 5) { - payloadBuilder_.mergeFrom(value); + if (messageCase_ == 9) { + suggestionsBuilder_.mergeFrom(value); } - payloadBuilder_.setMessage(value); + suggestionsBuilder_.setMessage(value); } - messageCase_ = 5; + messageCase_ = 9; return this; } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - if (messageCase_ == 5) { + public Builder clearSuggestions() { + if (suggestionsBuilder_ == null) { + if (messageCase_ == 9) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 5) { + if (messageCase_ == 9) { messageCase_ = 0; message_ = null; } - payloadBuilder_.clear(); + suggestionsBuilder_.clear(); } return this; } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
- */ - public com.google.protobuf.Struct.Builder getPayloadBuilder() { - return getPayloadFieldBuilder().getBuilder(); + *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder getSuggestionsBuilder() { + return getSuggestionsFieldBuilder().getBuilder(); } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ - public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - if ((messageCase_ == 5) && (payloadBuilder_ != null)) { - return payloadBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder() { + if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) { + return suggestionsBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 5) { - return (com.google.protobuf.Struct) message_; + if (messageCase_ == 9) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; } - return com.google.protobuf.Struct.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); } } /** *- * Returns a response containing a custom, platform-specific payload. - * See the Intent.Message.Platform type for a description of the - * structure that may be required for your platform. + * Displays suggestion chips for Actions on Google. ** - *.google.protobuf.Struct payload = 5;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - if (!(messageCase_ == 5)) { - message_ = com.google.protobuf.Struct.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder> + getSuggestionsFieldBuilder() { + if (suggestionsBuilder_ == null) { + if (!(messageCase_ == 9)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); } - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) message_, + suggestionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 5; + messageCase_ = 9; onChanged();; - return payloadBuilder_; + return suggestionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder> simpleResponsesBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder> linkOutSuggestionBuilder_; /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public boolean hasSimpleResponses() { - return messageCase_ == 7; + public boolean hasLinkOutSuggestion() { + return messageCase_ == 10; } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses getSimpleResponses() { - if (simpleResponsesBuilder_ == null) { - if (messageCase_ == 7) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion getLinkOutSuggestion() { + if (linkOutSuggestionBuilder_ == null) { + if (messageCase_ == 10) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); } else { - if (messageCase_ == 7) { - return simpleResponsesBuilder_.getMessage(); + if (messageCase_ == 10) { + return linkOutSuggestionBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); } } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public Builder setSimpleResponses(com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) { - if (simpleResponsesBuilder_ == null) { + public Builder setLinkOutSuggestion(com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) { + if (linkOutSuggestionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - simpleResponsesBuilder_.setMessage(value); + linkOutSuggestionBuilder_.setMessage(value); } - messageCase_ = 7; + messageCase_ = 10; return this; } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public Builder setSimpleResponses( - com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder builderForValue) { - if (simpleResponsesBuilder_ == null) { + public Builder setLinkOutSuggestion( + com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder builderForValue) { + if (linkOutSuggestionBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - simpleResponsesBuilder_.setMessage(builderForValue.build()); + linkOutSuggestionBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 7; + messageCase_ = 10; return this; } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public Builder mergeSimpleResponses(com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses value) { - if (simpleResponsesBuilder_ == null) { - if (messageCase_ == 7 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_) + public Builder mergeLinkOutSuggestion(com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) { + if (linkOutSuggestionBuilder_ == null) { + if (messageCase_ == 10 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 7) { - simpleResponsesBuilder_.mergeFrom(value); + if (messageCase_ == 10) { + linkOutSuggestionBuilder_.mergeFrom(value); } - simpleResponsesBuilder_.setMessage(value); + linkOutSuggestionBuilder_.setMessage(value); } - messageCase_ = 7; + messageCase_ = 10; return this; } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public Builder clearSimpleResponses() { - if (simpleResponsesBuilder_ == null) { - if (messageCase_ == 7) { + public Builder clearLinkOutSuggestion() { + if (linkOutSuggestionBuilder_ == null) { + if (messageCase_ == 10) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 7) { + if (messageCase_ == 10) { messageCase_ = 0; message_ = null; } - simpleResponsesBuilder_.clear(); + linkOutSuggestionBuilder_.clear(); } return this; } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder getSimpleResponsesBuilder() { - return getSimpleResponsesFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder getLinkOutSuggestionBuilder() { + return getLinkOutSuggestionFieldBuilder().getBuilder(); } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder() { - if ((messageCase_ == 7) && (simpleResponsesBuilder_ != null)) { - return simpleResponsesBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder() { + if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) { + return linkOutSuggestionBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 7) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_; + if (messageCase_ == 10) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); } } /** *- * Returns a voice or text-only response for Actions on Google. + * Displays a link out suggestion chip for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder> - getSimpleResponsesFieldBuilder() { - if (simpleResponsesBuilder_ == null) { - if (!(messageCase_ == 7)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder> + getLinkOutSuggestionFieldBuilder() { + if (linkOutSuggestionBuilder_ == null) { + if (!(messageCase_ == 10)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); } - simpleResponsesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponsesOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses) message_, + linkOutSuggestionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 7; + messageCase_ = 10; onChanged();; - return simpleResponsesBuilder_; + return linkOutSuggestionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder> basicCardBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder> listSelectBuilder_; /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public boolean hasBasicCard() { - return messageCase_ == 8; + public boolean hasListSelect() { + return messageCase_ == 11; } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard getBasicCard() { - if (basicCardBuilder_ == null) { - if (messageCase_ == 8) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() { + if (listSelectBuilder_ == null) { + if (messageCase_ == 11) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); } else { - if (messageCase_ == 8) { - return basicCardBuilder_.getMessage(); + if (messageCase_ == 11) { + return listSelectBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); } } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public Builder setBasicCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) { - if (basicCardBuilder_ == null) { + public Builder setListSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) { + if (listSelectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - basicCardBuilder_.setMessage(value); + listSelectBuilder_.setMessage(value); } - messageCase_ = 8; + messageCase_ = 11; return this; } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public Builder setBasicCard( - com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder builderForValue) { - if (basicCardBuilder_ == null) { + public Builder setListSelect( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder builderForValue) { + if (listSelectBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - basicCardBuilder_.setMessage(builderForValue.build()); + listSelectBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 8; + messageCase_ = 11; return this; } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public Builder mergeBasicCard(com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard value) { - if (basicCardBuilder_ == null) { - if (messageCase_ == 8 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_) + public Builder mergeListSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) { + if (listSelectBuilder_ == null) { + if (messageCase_ == 11 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 8) { - basicCardBuilder_.mergeFrom(value); + if (messageCase_ == 11) { + listSelectBuilder_.mergeFrom(value); } - basicCardBuilder_.setMessage(value); + listSelectBuilder_.setMessage(value); } - messageCase_ = 8; + messageCase_ = 11; return this; } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public Builder clearBasicCard() { - if (basicCardBuilder_ == null) { - if (messageCase_ == 8) { + public Builder clearListSelect() { + if (listSelectBuilder_ == null) { + if (messageCase_ == 11) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 8) { + if (messageCase_ == 11) { messageCase_ = 0; message_ = null; } - basicCardBuilder_.clear(); + listSelectBuilder_.clear(); } return this; } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder getBasicCardBuilder() { - return getBasicCardFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder getListSelectBuilder() { + return getListSelectFieldBuilder().getBuilder(); } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder() { - if ((messageCase_ == 8) && (basicCardBuilder_ != null)) { - return basicCardBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder getListSelectOrBuilder() { + if ((messageCase_ == 11) && (listSelectBuilder_ != null)) { + return listSelectBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 8) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_; + if (messageCase_ == 11) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); } } /** *- * Displays a basic card for Actions on Google. + * Displays a list card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder> - getBasicCardFieldBuilder() { - if (basicCardBuilder_ == null) { - if (!(messageCase_ == 8)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder> + getListSelectFieldBuilder() { + if (listSelectBuilder_ == null) { + if (!(messageCase_ == 11)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); } - basicCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCardOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard) message_, + listSelectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 8; + messageCase_ = 11; onChanged();; - return basicCardBuilder_; + return listSelectBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder> suggestionsBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder> carouselSelectBuilder_; /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public boolean hasSuggestions() { - return messageCase_ == 9; + public boolean hasCarouselSelect() { + return messageCase_ == 12; } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions getSuggestions() { - if (suggestionsBuilder_ == null) { - if (messageCase_ == 9) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() { + if (carouselSelectBuilder_ == null) { + if (messageCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); } else { - if (messageCase_ == 9) { - return suggestionsBuilder_.getMessage(); + if (messageCase_ == 12) { + return carouselSelectBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); } } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public Builder setSuggestions(com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) { - if (suggestionsBuilder_ == null) { + public Builder setCarouselSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) { + if (carouselSelectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - suggestionsBuilder_.setMessage(value); + carouselSelectBuilder_.setMessage(value); } - messageCase_ = 9; + messageCase_ = 12; return this; } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public Builder setSuggestions( - com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder builderForValue) { - if (suggestionsBuilder_ == null) { + public Builder setCarouselSelect( + com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder builderForValue) { + if (carouselSelectBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - suggestionsBuilder_.setMessage(builderForValue.build()); + carouselSelectBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 9; + messageCase_ = 12; return this; } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public Builder mergeSuggestions(com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions value) { - if (suggestionsBuilder_ == null) { - if (messageCase_ == 9 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_) + public Builder mergeCarouselSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) { + if (carouselSelectBuilder_ == null) { + if (messageCase_ == 12 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 9) { - suggestionsBuilder_.mergeFrom(value); + if (messageCase_ == 12) { + carouselSelectBuilder_.mergeFrom(value); } - suggestionsBuilder_.setMessage(value); + carouselSelectBuilder_.setMessage(value); } - messageCase_ = 9; + messageCase_ = 12; return this; } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public Builder clearSuggestions() { - if (suggestionsBuilder_ == null) { - if (messageCase_ == 9) { + public Builder clearCarouselSelect() { + if (carouselSelectBuilder_ == null) { + if (messageCase_ == 12) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 9) { + if (messageCase_ == 12) { messageCase_ = 0; message_ = null; } - suggestionsBuilder_.clear(); + carouselSelectBuilder_.clear(); } return this; } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder getSuggestionsBuilder() { - return getSuggestionsFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder getCarouselSelectBuilder() { + return getCarouselSelectFieldBuilder().getBuilder(); } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder() { - if ((messageCase_ == 9) && (suggestionsBuilder_ != null)) { - return suggestionsBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder() { + if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) { + return carouselSelectBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 9) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_; + if (messageCase_ == 12) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); } } /** *- * Displays suggestion chips for Actions on Google. + * Displays a carousel card for Actions on Google. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder> - getSuggestionsFieldBuilder() { - if (suggestionsBuilder_ == null) { - if (!(messageCase_ == 9)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder> + getCarouselSelectFieldBuilder() { + if (carouselSelectBuilder_ == null) { + if (!(messageCase_ == 12)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); } - suggestionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions, com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.SuggestionsOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions) message_, + carouselSelectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 9; + messageCase_ = 12; onChanged();; - return suggestionsBuilder_; + return carouselSelectBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder> linkOutSuggestionBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder> telephonyPlayAudioBuilder_; /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public boolean hasLinkOutSuggestion() { - return messageCase_ == 10; + public boolean hasTelephonyPlayAudio() { + return messageCase_ == 13; } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion getLinkOutSuggestion() { - if (linkOutSuggestionBuilder_ == null) { - if (messageCase_ == 10) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio getTelephonyPlayAudio() { + if (telephonyPlayAudioBuilder_ == null) { + if (messageCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); } else { - if (messageCase_ == 10) { - return linkOutSuggestionBuilder_.getMessage(); + if (messageCase_ == 13) { + return telephonyPlayAudioBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); } } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public Builder setLinkOutSuggestion(com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) { - if (linkOutSuggestionBuilder_ == null) { + public Builder setTelephonyPlayAudio(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) { + if (telephonyPlayAudioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - linkOutSuggestionBuilder_.setMessage(value); + telephonyPlayAudioBuilder_.setMessage(value); } - messageCase_ = 10; + messageCase_ = 13; return this; } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public Builder setLinkOutSuggestion( - com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder builderForValue) { - if (linkOutSuggestionBuilder_ == null) { + public Builder setTelephonyPlayAudio( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder builderForValue) { + if (telephonyPlayAudioBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - linkOutSuggestionBuilder_.setMessage(builderForValue.build()); + telephonyPlayAudioBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 10; + messageCase_ = 13; return this; } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public Builder mergeLinkOutSuggestion(com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion value) { - if (linkOutSuggestionBuilder_ == null) { - if (messageCase_ == 10 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_) + public Builder mergeTelephonyPlayAudio(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio value) { + if (telephonyPlayAudioBuilder_ == null) { + if (messageCase_ == 13 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 10) { - linkOutSuggestionBuilder_.mergeFrom(value); + if (messageCase_ == 13) { + telephonyPlayAudioBuilder_.mergeFrom(value); } - linkOutSuggestionBuilder_.setMessage(value); + telephonyPlayAudioBuilder_.setMessage(value); } - messageCase_ = 10; + messageCase_ = 13; return this; } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public Builder clearLinkOutSuggestion() { - if (linkOutSuggestionBuilder_ == null) { - if (messageCase_ == 10) { + public Builder clearTelephonyPlayAudio() { + if (telephonyPlayAudioBuilder_ == null) { + if (messageCase_ == 13) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 10) { + if (messageCase_ == 13) { messageCase_ = 0; message_ = null; } - linkOutSuggestionBuilder_.clear(); + telephonyPlayAudioBuilder_.clear(); } return this; } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder getLinkOutSuggestionBuilder() { - return getLinkOutSuggestionFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder getTelephonyPlayAudioBuilder() { + return getTelephonyPlayAudioFieldBuilder().getBuilder(); } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder() { - if ((messageCase_ == 10) && (linkOutSuggestionBuilder_ != null)) { - return linkOutSuggestionBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder getTelephonyPlayAudioOrBuilder() { + if ((messageCase_ == 13) && (telephonyPlayAudioBuilder_ != null)) { + return telephonyPlayAudioBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 10) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_; + if (messageCase_ == 13) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); } } /** *- * Displays a link out suggestion chip for Actions on Google. + * Plays audio from a file in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio telephony_play_audio = 13;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder> - getLinkOutSuggestionFieldBuilder() { - if (linkOutSuggestionBuilder_ == null) { - if (!(messageCase_ == 10)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.getDefaultInstance(); - } - linkOutSuggestionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestionOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion) message_, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder> + getTelephonyPlayAudioFieldBuilder() { + if (telephonyPlayAudioBuilder_ == null) { + if (!(messageCase_ == 13)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.getDefaultInstance(); + } + telephonyPlayAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudioOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyPlayAudio) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 10; + messageCase_ = 13; onChanged();; - return linkOutSuggestionBuilder_; + return telephonyPlayAudioBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder> listSelectBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder> telephonySynthesizeSpeechBuilder_; /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public boolean hasListSelect() { - return messageCase_ == 11; + public boolean hasTelephonySynthesizeSpeech() { + return messageCase_ == 14; } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect getListSelect() { - if (listSelectBuilder_ == null) { - if (messageCase_ == 11) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech getTelephonySynthesizeSpeech() { + if (telephonySynthesizeSpeechBuilder_ == null) { + if (messageCase_ == 14) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); } else { - if (messageCase_ == 11) { - return listSelectBuilder_.getMessage(); + if (messageCase_ == 14) { + return telephonySynthesizeSpeechBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); } } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public Builder setListSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) { - if (listSelectBuilder_ == null) { + public Builder setTelephonySynthesizeSpeech(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) { + if (telephonySynthesizeSpeechBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - listSelectBuilder_.setMessage(value); + telephonySynthesizeSpeechBuilder_.setMessage(value); } - messageCase_ = 11; + messageCase_ = 14; return this; } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public Builder setListSelect( - com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder builderForValue) { - if (listSelectBuilder_ == null) { + public Builder setTelephonySynthesizeSpeech( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder builderForValue) { + if (telephonySynthesizeSpeechBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - listSelectBuilder_.setMessage(builderForValue.build()); + telephonySynthesizeSpeechBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 11; + messageCase_ = 14; return this; } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public Builder mergeListSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect value) { - if (listSelectBuilder_ == null) { - if (messageCase_ == 11 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_) + public Builder mergeTelephonySynthesizeSpeech(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech value) { + if (telephonySynthesizeSpeechBuilder_ == null) { + if (messageCase_ == 14 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 11) { - listSelectBuilder_.mergeFrom(value); + if (messageCase_ == 14) { + telephonySynthesizeSpeechBuilder_.mergeFrom(value); } - listSelectBuilder_.setMessage(value); + telephonySynthesizeSpeechBuilder_.setMessage(value); } - messageCase_ = 11; + messageCase_ = 14; return this; } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public Builder clearListSelect() { - if (listSelectBuilder_ == null) { - if (messageCase_ == 11) { + public Builder clearTelephonySynthesizeSpeech() { + if (telephonySynthesizeSpeechBuilder_ == null) { + if (messageCase_ == 14) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 11) { + if (messageCase_ == 14) { messageCase_ = 0; message_ = null; } - listSelectBuilder_.clear(); + telephonySynthesizeSpeechBuilder_.clear(); } return this; } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder getListSelectBuilder() { - return getListSelectFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder getTelephonySynthesizeSpeechBuilder() { + return getTelephonySynthesizeSpeechFieldBuilder().getBuilder(); } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder getListSelectOrBuilder() { - if ((messageCase_ == 11) && (listSelectBuilder_ != null)) { - return listSelectBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder getTelephonySynthesizeSpeechOrBuilder() { + if ((messageCase_ == 14) && (telephonySynthesizeSpeechBuilder_ != null)) { + return telephonySynthesizeSpeechBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 11) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_; + if (messageCase_ == 14) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); } } /** *- * Displays a list card for Actions on Google. + * Synthesizes speech in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech telephony_synthesize_speech = 14;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder> - getListSelectFieldBuilder() { - if (listSelectBuilder_ == null) { - if (!(messageCase_ == 11)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.getDefaultInstance(); - } - listSelectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelectOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect) message_, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder> + getTelephonySynthesizeSpeechFieldBuilder() { + if (telephonySynthesizeSpeechBuilder_ == null) { + if (!(messageCase_ == 14)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.getDefaultInstance(); + } + telephonySynthesizeSpeechBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeechOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonySynthesizeSpeech) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 11; + messageCase_ = 14; onChanged();; - return listSelectBuilder_; + return telephonySynthesizeSpeechBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder> carouselSelectBuilder_; + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder> telephonyTransferCallBuilder_; /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public boolean hasCarouselSelect() { - return messageCase_ == 12; + public boolean hasTelephonyTransferCall() { + return messageCase_ == 15; } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect getCarouselSelect() { - if (carouselSelectBuilder_ == null) { - if (messageCase_ == 12) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall getTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 15) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); } else { - if (messageCase_ == 12) { - return carouselSelectBuilder_.getMessage(); + if (messageCase_ == 15) { + return telephonyTransferCallBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); } } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public Builder setCarouselSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) { - if (carouselSelectBuilder_ == null) { + public Builder setTelephonyTransferCall(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { - carouselSelectBuilder_.setMessage(value); + telephonyTransferCallBuilder_.setMessage(value); } - messageCase_ = 12; + messageCase_ = 15; return this; } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public Builder setCarouselSelect( - com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder builderForValue) { - if (carouselSelectBuilder_ == null) { + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder builderForValue) { + if (telephonyTransferCallBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { - carouselSelectBuilder_.setMessage(builderForValue.build()); + telephonyTransferCallBuilder_.setMessage(builderForValue.build()); } - messageCase_ = 12; + messageCase_ = 15; return this; } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public Builder mergeCarouselSelect(com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect value) { - if (carouselSelectBuilder_ == null) { - if (messageCase_ == 12 && - message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance()) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_) + public Builder mergeTelephonyTransferCall(com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 15 && + message_ != com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance()) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.newBuilder((com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_) .mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { - if (messageCase_ == 12) { - carouselSelectBuilder_.mergeFrom(value); + if (messageCase_ == 15) { + telephonyTransferCallBuilder_.mergeFrom(value); } - carouselSelectBuilder_.setMessage(value); + telephonyTransferCallBuilder_.setMessage(value); } - messageCase_ = 12; + messageCase_ = 15; return this; } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public Builder clearCarouselSelect() { - if (carouselSelectBuilder_ == null) { - if (messageCase_ == 12) { + public Builder clearTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 15) { messageCase_ = 0; message_ = null; onChanged(); } } else { - if (messageCase_ == 12) { + if (messageCase_ == 15) { messageCase_ = 0; message_ = null; } - carouselSelectBuilder_.clear(); + telephonyTransferCallBuilder_.clear(); } return this; } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder getCarouselSelectBuilder() { - return getCarouselSelectFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder getTelephonyTransferCallBuilder() { + return getTelephonyTransferCallFieldBuilder().getBuilder(); } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder() { - if ((messageCase_ == 12) && (carouselSelectBuilder_ != null)) { - return carouselSelectBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder getTelephonyTransferCallOrBuilder() { + if ((messageCase_ == 15) && (telephonyTransferCallBuilder_ != null)) { + return telephonyTransferCallBuilder_.getMessageOrBuilder(); } else { - if (messageCase_ == 12) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_; + if (messageCase_ == 15) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); } } /** *- * Displays a carousel card for Actions on Google. + * Transfers the call in Telephony Gateway. ** - *.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
+ *.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall telephony_transfer_call = 15;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder> - getCarouselSelectFieldBuilder() { - if (carouselSelectBuilder_ == null) { - if (!(messageCase_ == 12)) { - message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.getDefaultInstance(); - } - carouselSelectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelectOrBuilder>( - (com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect) message_, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder> + getTelephonyTransferCallFieldBuilder() { + if (telephonyTransferCallBuilder_ == null) { + if (!(messageCase_ == 15)) { + message_ = com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.getDefaultInstance(); + } + telephonyTransferCallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall.Builder, com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCallOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) message_, getParentForChildren(), isClean()); message_ = null; } - messageCase_ = 12; + messageCase_ = 15; onChanged();; - return carouselSelectBuilder_; + return telephonyTransferCallBuilder_; } private int platform_ = 0; @@ -26418,17 +29401,17 @@ public boolean getIsFallback() { * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. * DEPRECATED! Please use `ml_disabled` field instead. - * NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the - * default value is determined as follows: + * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, + * then the default value is determined as follows: * - Before April 15th, 2018 the default is: * ml_enabled = false / ml_disabled = true. * - After April 15th, 2018 the default is: * ml_enabled = true / ml_disabled = false. *
bool ml_enabled = 5;
+ * bool ml_enabled = 5 [deprecated = true];
*/
- public boolean getMlEnabled() {
+ @java.lang.Deprecated public boolean getMlEnabled() {
return mlEnabled_;
}
@@ -26448,6 +29431,21 @@ public boolean getMlDisabled() {
return mlDisabled_;
}
+ public static final int END_INTERACTION_FIELD_NUMBER = 21;
+ private boolean endInteraction_;
+ /**
+ * + * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *
bool end_interaction = 21;
+ */
+ public boolean getEndInteraction() {
+ return endInteraction_;
+ }
+
public static final int INPUT_CONTEXT_NAMES_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList inputContextNames_;
/**
@@ -26619,6 +29617,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder getTra
/**
* * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -26638,6 +29637,7 @@ public java.lang.String getAction() {
/**
* * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -27158,6 +30158,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (mlDisabled_ != false) {
output.writeBool(19, mlDisabled_);
}
+ if (endInteraction_ != false) {
+ output.writeBool(21, endInteraction_);
+ }
unknownFields.writeTo(output);
}
@@ -27253,6 +30256,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(19, mlDisabled_);
}
+ if (endInteraction_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(21, endInteraction_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -27282,6 +30289,8 @@ public boolean equals(final java.lang.Object obj) {
== other.getMlEnabled());
result = result && (getMlDisabled()
== other.getMlDisabled());
+ result = result && (getEndInteraction()
+ == other.getEndInteraction());
result = result && getInputContextNamesList()
.equals(other.getInputContextNamesList());
result = result && getEventsList()
@@ -27333,6 +30342,9 @@ public int hashCode() {
hash = (37 * hash) + ML_DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMlDisabled());
+ hash = (37 * hash) + END_INTERACTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEndInteraction());
if (getInputContextNamesCount() > 0) {
hash = (37 * hash) + INPUT_CONTEXT_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getInputContextNamesList().hashCode();
@@ -27528,13 +30540,15 @@ public Builder clear() {
mlDisabled_ = false;
+ endInteraction_ = false;
+
inputContextNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000080);
- events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
+ events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000200);
if (trainingPhrasesBuilder_ == null) {
trainingPhrases_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
} else {
trainingPhrasesBuilder_.clear();
}
@@ -27542,7 +30556,7 @@ public Builder clear() {
if (outputContextsBuilder_ == null) {
outputContexts_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
} else {
outputContextsBuilder_.clear();
}
@@ -27550,25 +30564,25 @@ public Builder clear() {
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
} else {
parametersBuilder_.clear();
}
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
} else {
messagesBuilder_.clear();
}
defaultResponsePlatforms_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
rootFollowupIntentName_ = "";
parentFollowupIntentName_ = "";
if (followupIntentInfoBuilder_ == null) {
followupIntentInfo_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
} else {
followupIntentInfoBuilder_.clear();
}
@@ -27603,20 +30617,21 @@ public com.google.cloud.dialogflow.v2beta1.Intent buildPartial() {
result.isFallback_ = isFallback_;
result.mlEnabled_ = mlEnabled_;
result.mlDisabled_ = mlDisabled_;
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ result.endInteraction_ = endInteraction_;
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
inputContextNames_ = inputContextNames_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
}
result.inputContextNames_ = inputContextNames_;
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
events_ = events_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
}
result.events_ = events_;
if (trainingPhrasesBuilder_ == null) {
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
trainingPhrases_ = java.util.Collections.unmodifiableList(trainingPhrases_);
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
}
result.trainingPhrases_ = trainingPhrases_;
} else {
@@ -27624,9 +30639,9 @@ public com.google.cloud.dialogflow.v2beta1.Intent buildPartial() {
}
result.action_ = action_;
if (outputContextsBuilder_ == null) {
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
outputContexts_ = java.util.Collections.unmodifiableList(outputContexts_);
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
}
result.outputContexts_ = outputContexts_;
} else {
@@ -27634,34 +30649,34 @@ public com.google.cloud.dialogflow.v2beta1.Intent buildPartial() {
}
result.resetContexts_ = resetContexts_;
if (parametersBuilder_ == null) {
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ if (((bitField0_ & 0x00004000) == 0x00004000)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
}
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.build();
}
if (messagesBuilder_ == null) {
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ if (((bitField0_ & 0x00008000) == 0x00008000)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
}
result.messages_ = messages_;
} else {
result.messages_ = messagesBuilder_.build();
}
- if (((bitField0_ & 0x00008000) == 0x00008000)) {
+ if (((bitField0_ & 0x00010000) == 0x00010000)) {
defaultResponsePlatforms_ = java.util.Collections.unmodifiableList(defaultResponsePlatforms_);
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
}
result.defaultResponsePlatforms_ = defaultResponsePlatforms_;
result.rootFollowupIntentName_ = rootFollowupIntentName_;
result.parentFollowupIntentName_ = parentFollowupIntentName_;
if (followupIntentInfoBuilder_ == null) {
- if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ if (((bitField0_ & 0x00080000) == 0x00080000)) {
followupIntentInfo_ = java.util.Collections.unmodifiableList(followupIntentInfo_);
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
}
result.followupIntentInfo_ = followupIntentInfo_;
} else {
@@ -27732,10 +30747,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (other.getMlDisabled() != false) {
setMlDisabled(other.getMlDisabled());
}
+ if (other.getEndInteraction() != false) {
+ setEndInteraction(other.getEndInteraction());
+ }
if (!other.inputContextNames_.isEmpty()) {
if (inputContextNames_.isEmpty()) {
inputContextNames_ = other.inputContextNames_;
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureInputContextNamesIsMutable();
inputContextNames_.addAll(other.inputContextNames_);
@@ -27745,7 +30763,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
@@ -27756,7 +30774,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.trainingPhrases_.isEmpty()) {
if (trainingPhrases_.isEmpty()) {
trainingPhrases_ = other.trainingPhrases_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureTrainingPhrasesIsMutable();
trainingPhrases_.addAll(other.trainingPhrases_);
@@ -27769,7 +30787,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
trainingPhrasesBuilder_.dispose();
trainingPhrasesBuilder_ = null;
trainingPhrases_ = other.trainingPhrases_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
trainingPhrasesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTrainingPhrasesFieldBuilder() : null;
@@ -27786,7 +30804,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.outputContexts_.isEmpty()) {
if (outputContexts_.isEmpty()) {
outputContexts_ = other.outputContexts_;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureOutputContextsIsMutable();
outputContexts_.addAll(other.outputContexts_);
@@ -27799,7 +30817,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
outputContextsBuilder_.dispose();
outputContextsBuilder_ = null;
outputContexts_ = other.outputContexts_;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
outputContextsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutputContextsFieldBuilder() : null;
@@ -27815,7 +30833,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
@@ -27828,7 +30846,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
parameters_ = other.parameters_;
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
parametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParametersFieldBuilder() : null;
@@ -27841,7 +30859,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.messages_.isEmpty()) {
if (messages_.isEmpty()) {
messages_ = other.messages_;
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureMessagesIsMutable();
messages_.addAll(other.messages_);
@@ -27854,7 +30872,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
messagesBuilder_.dispose();
messagesBuilder_ = null;
messages_ = other.messages_;
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
messagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMessagesFieldBuilder() : null;
@@ -27866,7 +30884,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.defaultResponsePlatforms_.isEmpty()) {
if (defaultResponsePlatforms_.isEmpty()) {
defaultResponsePlatforms_ = other.defaultResponsePlatforms_;
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensureDefaultResponsePlatformsIsMutable();
defaultResponsePlatforms_.addAll(other.defaultResponsePlatforms_);
@@ -27885,7 +30903,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
if (!other.followupIntentInfo_.isEmpty()) {
if (followupIntentInfo_.isEmpty()) {
followupIntentInfo_ = other.followupIntentInfo_;
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
} else {
ensureFollowupIntentInfoIsMutable();
followupIntentInfo_.addAll(other.followupIntentInfo_);
@@ -27898,7 +30916,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent other) {
followupIntentInfoBuilder_.dispose();
followupIntentInfoBuilder_ = null;
followupIntentInfo_ = other.followupIntentInfo_;
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
followupIntentInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFollowupIntentInfoFieldBuilder() : null;
@@ -28279,17 +31297,17 @@ public Builder clearIsFallback() {
* taken into account during inference in `ML ONLY` match mode. Also,
* auto-markup in the UI is turned off.
* DEPRECATED! Please use `ml_disabled` field instead.
- * NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the
- * default value is determined as follows:
+ * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
+ * then the default value is determined as follows:
* - Before April 15th, 2018 the default is:
* ml_enabled = false / ml_disabled = true.
* - After April 15th, 2018 the default is:
* ml_enabled = true / ml_disabled = false.
*
*
- * bool ml_enabled = 5;
+ * bool ml_enabled = 5 [deprecated = true];
*/
- public boolean getMlEnabled() {
+ @java.lang.Deprecated public boolean getMlEnabled() {
return mlEnabled_;
}
/**
@@ -28299,17 +31317,17 @@ public boolean getMlEnabled() {
* taken into account during inference in `ML ONLY` match mode. Also,
* auto-markup in the UI is turned off.
* DEPRECATED! Please use `ml_disabled` field instead.
- * NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the
- * default value is determined as follows:
+ * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
+ * then the default value is determined as follows:
* - Before April 15th, 2018 the default is:
* ml_enabled = false / ml_disabled = true.
* - After April 15th, 2018 the default is:
* ml_enabled = true / ml_disabled = false.
*
*
- * bool ml_enabled = 5;
+ * bool ml_enabled = 5 [deprecated = true];
*/
- public Builder setMlEnabled(boolean value) {
+ @java.lang.Deprecated public Builder setMlEnabled(boolean value) {
mlEnabled_ = value;
onChanged();
@@ -28322,17 +31340,17 @@ public Builder setMlEnabled(boolean value) {
* taken into account during inference in `ML ONLY` match mode. Also,
* auto-markup in the UI is turned off.
* DEPRECATED! Please use `ml_disabled` field instead.
- * NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the
- * default value is determined as follows:
+ * NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
+ * then the default value is determined as follows:
* - Before April 15th, 2018 the default is:
* ml_enabled = false / ml_disabled = true.
* - After April 15th, 2018 the default is:
* ml_enabled = true / ml_disabled = false.
*
*
- * bool ml_enabled = 5;
+ * bool ml_enabled = 5 [deprecated = true];
*/
- public Builder clearMlEnabled() {
+ @java.lang.Deprecated public Builder clearMlEnabled() {
mlEnabled_ = false;
onChanged();
@@ -28386,11 +31404,55 @@ public Builder clearMlDisabled() {
return this;
}
+ private boolean endInteraction_ ;
+ /**
+ * + * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *
bool end_interaction = 21;
+ */
+ public boolean getEndInteraction() {
+ return endInteraction_;
+ }
+ /**
+ * + * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *
bool end_interaction = 21;
+ */
+ public Builder setEndInteraction(boolean value) {
+
+ endInteraction_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *
bool end_interaction = 21;
+ */
+ public Builder clearEndInteraction() {
+
+ endInteraction_ = false;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.LazyStringList inputContextNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInputContextNamesIsMutable() {
- if (!((bitField0_ & 0x00000080) == 0x00000080)) {
+ if (!((bitField0_ & 0x00000100) == 0x00000100)) {
inputContextNames_ = new com.google.protobuf.LazyStringArrayList(inputContextNames_);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
}
}
/**
@@ -28509,7 +31571,7 @@ public Builder addAllInputContextNames(
*/
public Builder clearInputContextNames() {
inputContextNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -28536,9 +31598,9 @@ public Builder addInputContextNamesBytes(
private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEventsIsMutable() {
- if (!((bitField0_ & 0x00000100) == 0x00000100)) {
+ if (!((bitField0_ & 0x00000200) == 0x00000200)) {
events_ = new com.google.protobuf.LazyStringArrayList(events_);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
}
}
/**
@@ -28657,7 +31719,7 @@ public Builder addAllEvents(
*/
public Builder clearEvents() {
events_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -28685,9 +31747,9 @@ public Builder addEventsBytes(
private java.util.List* Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -29035,6 +32098,7 @@ public java.lang.String getAction() {
/**
* * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -29055,6 +32119,7 @@ public java.lang.String getAction() {
/**
* * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -29072,6 +32137,7 @@ public Builder setAction(
/**
* * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -29085,6 +32151,7 @@ public Builder clearAction() {
/**
* * Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -29104,9 +32171,9 @@ public Builder setActionBytes(
private java.util.Listbool ml_enabled = 5;
+ * bool ml_enabled = 5 [deprecated = true];
*/
- boolean getMlEnabled();
+ @java.lang.Deprecated boolean getMlEnabled();
/**
* @@ -116,6 +116,17 @@ public interface IntentOrBuilder extends */ boolean getMlDisabled(); + /** + ** *+ * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *bool end_interaction = 21;
+ */ + boolean getEndInteraction(); + /** ** Optional. The list of context names required for this intent to be @@ -254,6 +265,7 @@ com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder getTrainingPh /** ** ** Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *string action = 10;
@@ -262,6 +274,7 @@ com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhraseOrBuilder getTrainingPh /** ** Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *string action = 10;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java index d5fae1d40288..ff01f00934f9 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java @@ -129,6 +129,21 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor; static final @@ -200,188 +215,201 @@ public static void registerAllExtensions( "ogle/longrunning/operations.proto\032\033googl" + "e/protobuf/empty.proto\032 google/protobuf/" + "field_mask.proto\032\034google/protobuf/struct" + - ".proto\"\247\"\n\006Intent\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" + + ".proto\"\262&\n\006Intent\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" + "ay_name\030\002 \001(\t\022K\n\rwebhook_state\030\006 \001(\01624.g" + "oogle.cloud.dialogflow.v2beta1.Intent.We" + "bhookState\022\020\n\010priority\030\003 \001(\005\022\023\n\013is_fallb" + - "ack\030\004 \001(\010\022\022\n\nml_enabled\030\005 \001(\010\022\023\n\013ml_disa" + - "bled\030\023 \001(\010\022\033\n\023input_context_names\030\007 \003(\t\022" + - "\016\n\006events\030\010 \003(\t\022P\n\020training_phrases\030\t \003(" + - "\01326.google.cloud.dialogflow.v2beta1.Inte" + - "nt.TrainingPhrase\022\016\n\006action\030\n \001(\t\022A\n\017out" + - "put_contexts\030\013 \003(\0132(.google.cloud.dialog" + - "flow.v2beta1.Context\022\026\n\016reset_contexts\030\014" + - " \001(\010\022E\n\nparameters\030\r \003(\01321.google.cloud." + - "dialogflow.v2beta1.Intent.Parameter\022A\n\010m" + - "essages\030\016 \003(\0132/.google.cloud.dialogflow." + - "v2beta1.Intent.Message\022\\\n\032default_respon" + - "se_platforms\030\017 \003(\01628.google.cloud.dialog" + - "flow.v2beta1.Intent.Message.Platform\022!\n\031" + - "root_followup_intent_name\030\020 \001(\t\022#\n\033paren" + - "t_followup_intent_name\030\021 \001(\t\022X\n\024followup" + - "_intent_info\030\022 \003(\0132:.google.cloud.dialog" + - "flow.v2beta1.Intent.FollowupIntentInfo\032\331" + - "\002\n\016TrainingPhrase\022\014\n\004name\030\001 \001(\t\022I\n\004type\030" + - "\002 \001(\0162;.google.cloud.dialogflow.v2beta1." + - "Intent.TrainingPhrase.Type\022J\n\005parts\030\003 \003(" + + "ack\030\004 \001(\010\022\026\n\nml_enabled\030\005 \001(\010B\002\030\001\022\023\n\013ml_" + + "disabled\030\023 \001(\010\022\027\n\017end_interaction\030\025 \001(\010\022" + + "\033\n\023input_context_names\030\007 \003(\t\022\016\n\006events\030\010" + + " \003(\t\022P\n\020training_phrases\030\t \003(\01326.google." + + "cloud.dialogflow.v2beta1.Intent.Training" + + "Phrase\022\016\n\006action\030\n \001(\t\022A\n\017output_context" + + "s\030\013 \003(\0132(.google.cloud.dialogflow.v2beta" + + "1.Context\022\026\n\016reset_contexts\030\014 \001(\010\022E\n\npar" + + "ameters\030\r \003(\01321.google.cloud.dialogflow." + + "v2beta1.Intent.Parameter\022A\n\010messages\030\016 \003" + + "(\0132/.google.cloud.dialogflow.v2beta1.Int" + + "ent.Message\022\\\n\032default_response_platform" + + "s\030\017 \003(\01628.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.Platform\022!\n\031root_follow" + + "up_intent_name\030\020 \001(\t\022#\n\033parent_followup_" + + "intent_name\030\021 \001(\t\022X\n\024followup_intent_inf" + + "o\030\022 \003(\0132:.google.cloud.dialogflow.v2beta" + + "1.Intent.FollowupIntentInfo\032\331\002\n\016Training" + + "Phrase\022\014\n\004name\030\001 \001(\t\022I\n\004type\030\002 \001(\0162;.goo" + + "gle.cloud.dialogflow.v2beta1.Intent.Trai" + + "ningPhrase.Type\022J\n\005parts\030\003 \003(\0132;.google." + + "cloud.dialogflow.v2beta1.Intent.Training" + + "Phrase.Part\022\031\n\021times_added_count\030\004 \001(\005\032N" + + "\n\004Part\022\014\n\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(" + + "\t\022\r\n\005alias\030\003 \001(\t\022\024\n\014user_defined\030\004 \001(\010\"7" + + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020" + + "\001\022\014\n\010TEMPLATE\020\002\032\254\001\n\tParameter\022\014\n\004name\030\001 " + + "\001(\t\022\024\n\014display_name\030\002 \001(\t\022\r\n\005value\030\003 \001(\t" + + "\022\025\n\rdefault_value\030\004 \001(\t\022 \n\030entity_type_d" + + "isplay_name\030\005 \001(\t\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007" + + "prompts\030\007 \003(\t\022\017\n\007is_list\030\010 \001(\010\032\373\031\n\007Messa" + + "ge\022D\n\004text\030\001 \001(\01324.google.cloud.dialogfl" + + "ow.v2beta1.Intent.Message.TextH\000\022F\n\005imag" + + "e\030\002 \001(\01325.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.ImageH\000\022U\n\rquick_replie" + + "s\030\003 \001(\0132<.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.QuickRepliesH\000\022D\n\004card\030" + + "\004 \001(\01324.google.cloud.dialogflow.v2beta1." + + "Intent.Message.CardH\000\022*\n\007payload\030\005 \001(\0132\027" + + ".google.protobuf.StructH\000\022[\n\020simple_resp" + + "onses\030\007 \001(\0132?.google.cloud.dialogflow.v2" + + "beta1.Intent.Message.SimpleResponsesH\000\022O" + + "\n\nbasic_card\030\010 \001(\01329.google.cloud.dialog" + + "flow.v2beta1.Intent.Message.BasicCardH\000\022" + + "R\n\013suggestions\030\t \001(\0132;.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.Suggestion" + + "sH\000\022`\n\023link_out_suggestion\030\n \001(\0132A.googl" + + "e.cloud.dialogflow.v2beta1.Intent.Messag" + + "e.LinkOutSuggestionH\000\022Q\n\013list_select\030\013 \001" + + "(\0132:.google.cloud.dialogflow.v2beta1.Int" + + "ent.Message.ListSelectH\000\022Y\n\017carousel_sel" + + "ect\030\014 \001(\0132>.google.cloud.dialogflow.v2be" + + "ta1.Intent.Message.CarouselSelectH\000\022b\n\024t" + + "elephony_play_audio\030\r \001(\0132B.google.cloud" + + ".dialogflow.v2beta1.Intent.Message.Telep" + + "honyPlayAudioH\000\022p\n\033telephony_synthesize_" + + "speech\030\016 \001(\0132I.google.cloud.dialogflow.v" + + "2beta1.Intent.Message.TelephonySynthesiz" + + "eSpeechH\000\022h\n\027telephony_transfer_call\030\017 \001" + + "(\0132E.google.cloud.dialogflow.v2beta1.Int" + + "ent.Message.TelephonyTransferCallH\000\022J\n\010p" + + "latform\030\006 \001(\01628.google.cloud.dialogflow." + + "v2beta1.Intent.Message.Platform\032\024\n\004Text\022" + + "\014\n\004text\030\001 \003(\t\0326\n\005Image\022\021\n\timage_uri\030\001 \001(" + + "\t\022\032\n\022accessibility_text\030\002 \001(\t\0324\n\014QuickRe" + + "plies\022\r\n\005title\030\001 \001(\t\022\025\n\rquick_replies\030\002 " + + "\003(\t\032\262\001\n\004Card\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030" + + "\002 \001(\t\022\021\n\timage_uri\030\003 \001(\t\022L\n\007buttons\030\004 \003(" + "\0132;.google.cloud.dialogflow.v2beta1.Inte" + - "nt.TrainingPhrase.Part\022\031\n\021times_added_co" + - "unt\030\004 \001(\005\032N\n\004Part\022\014\n\004text\030\001 \001(\t\022\023\n\013entit" + - "y_type\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t\022\024\n\014user_defi" + - "ned\030\004 \001(\010\"7\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022" + - "\013\n\007EXAMPLE\020\001\022\014\n\010TEMPLATE\020\002\032\254\001\n\tParameter" + - "\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\r\n\005" + - "value\030\003 \001(\t\022\025\n\rdefault_value\030\004 \001(\t\022 \n\030en" + - "tity_type_display_name\030\005 \001(\t\022\021\n\tmandator" + - "y\030\006 \001(\010\022\017\n\007prompts\030\007 \003(\t\022\017\n\007is_list\030\010 \001(" + - "\010\032\215\026\n\007Message\022D\n\004text\030\001 \001(\01324.google.clo" + - "ud.dialogflow.v2beta1.Intent.Message.Tex" + - "tH\000\022F\n\005image\030\002 \001(\01325.google.cloud.dialog" + - "flow.v2beta1.Intent.Message.ImageH\000\022U\n\rq" + - "uick_replies\030\003 \001(\0132<.google.cloud.dialog" + - "flow.v2beta1.Intent.Message.QuickReplies" + - "H\000\022D\n\004card\030\004 \001(\01324.google.cloud.dialogfl" + - "ow.v2beta1.Intent.Message.CardH\000\022*\n\007payl" + - "oad\030\005 \001(\0132\027.google.protobuf.StructH\000\022[\n\020" + - "simple_responses\030\007 \001(\0132?.google.cloud.di" + - "alogflow.v2beta1.Intent.Message.SimpleRe" + - "sponsesH\000\022O\n\nbasic_card\030\010 \001(\01329.google.c" + - "loud.dialogflow.v2beta1.Intent.Message.B" + - "asicCardH\000\022R\n\013suggestions\030\t \001(\0132;.google" + - ".cloud.dialogflow.v2beta1.Intent.Message" + - ".SuggestionsH\000\022`\n\023link_out_suggestion\030\n " + - "\001(\0132A.google.cloud.dialogflow.v2beta1.In" + - "tent.Message.LinkOutSuggestionH\000\022Q\n\013list" + - "_select\030\013 \001(\0132:.google.cloud.dialogflow." + - "v2beta1.Intent.Message.ListSelectH\000\022Y\n\017c" + - "arousel_select\030\014 \001(\0132>.google.cloud.dial" + - "ogflow.v2beta1.Intent.Message.CarouselSe" + - "lectH\000\022J\n\010platform\030\006 \001(\01628.google.cloud." + - "dialogflow.v2beta1.Intent.Message.Platfo" + - "rm\032\024\n\004Text\022\014\n\004text\030\001 \003(\t\0326\n\005Image\022\021\n\tima" + - "ge_uri\030\001 \001(\t\022\032\n\022accessibility_text\030\002 \001(\t" + - "\0324\n\014QuickReplies\022\r\n\005title\030\001 \001(\t\022\025\n\rquick" + - "_replies\030\002 \003(\t\032\262\001\n\004Card\022\r\n\005title\030\001 \001(\t\022\020" + - "\n\010subtitle\030\002 \001(\t\022\021\n\timage_uri\030\003 \001(\t\022L\n\007b" + - "uttons\030\004 \003(\0132;.google.cloud.dialogflow.v" + - "2beta1.Intent.Message.Card.Button\032(\n\006But" + - "ton\022\014\n\004text\030\001 \001(\t\022\020\n\010postback\030\002 \001(\t\032L\n\016S" + - "impleResponse\022\026\n\016text_to_speech\030\001 \001(\t\022\014\n" + - "\004ssml\030\002 \001(\t\022\024\n\014display_text\030\003 \001(\t\032k\n\017Sim" + - "pleResponses\022X\n\020simple_responses\030\001 \003(\0132>" + + "nt.Message.Card.Button\032(\n\006Button\022\014\n\004text" + + "\030\001 \001(\t\022\020\n\010postback\030\002 \001(\t\032L\n\016SimpleRespon" + + "se\022\026\n\016text_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t" + + "\022\024\n\014display_text\030\003 \001(\t\032k\n\017SimpleResponse" + + "s\022X\n\020simple_responses\030\001 \003(\0132>.google.clo" + + "ud.dialogflow.v2beta1.Intent.Message.Sim" + + "pleResponse\032\376\002\n\tBasicCard\022\r\n\005title\030\001 \001(\t" + + "\022\020\n\010subtitle\030\002 \001(\t\022\026\n\016formatted_text\030\003 \001" + + "(\t\022D\n\005image\030\004 \001(\01325.google.cloud.dialogf" + + "low.v2beta1.Intent.Message.Image\022Q\n\007butt" + + "ons\030\005 \003(\0132@.google.cloud.dialogflow.v2be" + + "ta1.Intent.Message.BasicCard.Button\032\236\001\n\006" + + "Button\022\r\n\005title\030\001 \001(\t\022g\n\017open_uri_action" + + "\030\002 \001(\0132N.google.cloud.dialogflow.v2beta1" + + ".Intent.Message.BasicCard.Button.OpenUri" + + "Action\032\034\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\n" + + "Suggestion\022\r\n\005title\030\001 \001(\t\032^\n\013Suggestions" + + "\022O\n\013suggestions\030\001 \003(\0132:.google.cloud.dia" + + "logflow.v2beta1.Intent.Message.Suggestio" + + "n\032:\n\021LinkOutSuggestion\022\030\n\020destination_na" + + "me\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\032\254\002\n\nListSelect\022\r\n\005" + + "title\030\001 \001(\t\022N\n\005items\030\002 \003(\0132?.google.clou" + + "d.dialogflow.v2beta1.Intent.Message.List" + + "Select.Item\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132>.goo" + + "gle.cloud.dialogflow.v2beta1.Intent.Mess" + + "age.SelectItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013des" + + "cription\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.google.c" + + "loud.dialogflow.v2beta1.Intent.Message.I" + + "mage\032\245\002\n\016CarouselSelect\022R\n\005items\030\001 \003(\0132C" + ".google.cloud.dialogflow.v2beta1.Intent." + - "Message.SimpleResponse\032\376\002\n\tBasicCard\022\r\n\005" + - "title\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\026\n\016formatt" + - "ed_text\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.google.cl" + - "oud.dialogflow.v2beta1.Intent.Message.Im" + - "age\022Q\n\007buttons\030\005 \003(\0132@.google.cloud.dial" + - "ogflow.v2beta1.Intent.Message.BasicCard." + - "Button\032\236\001\n\006Button\022\r\n\005title\030\001 \001(\t\022g\n\017open" + - "_uri_action\030\002 \001(\0132N.google.cloud.dialogf" + - "low.v2beta1.Intent.Message.BasicCard.But" + - "ton.OpenUriAction\032\034\n\rOpenUriAction\022\013\n\003ur" + - "i\030\001 \001(\t\032\033\n\nSuggestion\022\r\n\005title\030\001 \001(\t\032^\n\013" + - "Suggestions\022O\n\013suggestions\030\001 \003(\0132:.googl" + - "e.cloud.dialogflow.v2beta1.Intent.Messag" + - "e.Suggestion\032:\n\021LinkOutSuggestion\022\030\n\020des" + - "tination_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\032\254\002\n\nLis" + - "tSelect\022\r\n\005title\030\001 \001(\t\022N\n\005items\030\002 \003(\0132?." + - "google.cloud.dialogflow.v2beta1.Intent.M" + - "essage.ListSelect.Item\032\276\001\n\004Item\022L\n\004info\030" + - "\001 \001(\0132>.google.cloud.dialogflow.v2beta1." + - "Intent.Message.SelectItemInfo\022\r\n\005title\030\002" + - " \001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\013" + - "25.google.cloud.dialogflow.v2beta1.Inten" + - "t.Message.Image\032\245\002\n\016CarouselSelect\022R\n\005it" + - "ems\030\001 \003(\0132C.google.cloud.dialogflow.v2be" + - "ta1.Intent.Message.CarouselSelect.Item\032\276" + - "\001\n\004Item\022L\n\004info\030\001 \001(\0132>.google.cloud.dia" + - "logflow.v2beta1.Intent.Message.SelectIte" + - "mInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(" + - "\t\022D\n\005image\030\004 \001(\01325.google.cloud.dialogfl" + - "ow.v2beta1.Intent.Message.Image\032/\n\016Selec" + - "tItemInfo\022\013\n\003key\030\001 \001(\t\022\020\n\010synonyms\030\002 \003(\t" + - "\"\213\001\n\010Platform\022\030\n\024PLATFORM_UNSPECIFIED\020\000\022" + - "\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRAM\020\003\022\007" + - "\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIBER\020\007\022" + - "\025\n\021ACTIONS_ON_GOOGLE\020\010B\t\n\007message\032W\n\022Fol" + - "lowupIntentInfo\022\034\n\024followup_intent_name\030" + - "\001 \001(\t\022#\n\033parent_followup_intent_name\030\002 \001" + - "(\t\"t\n\014WebhookState\022\035\n\031WEBHOOK_STATE_UNSP" + - "ECIFIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLED\020\001\022*\n&" + - "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING\020\002" + - "\"\244\001\n\022ListIntentsRequest\022\016\n\006parent\030\001 \001(\t\022" + - "\025\n\rlanguage_code\030\002 \001(\t\022@\n\013intent_view\030\003 " + - "\001(\0162+.google.cloud.dialogflow.v2beta1.In" + - "tentView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_toke" + - "n\030\005 \001(\t\"h\n\023ListIntentsResponse\0228\n\007intent" + - "s\030\001 \003(\0132\'.google.cloud.dialogflow.v2beta" + - "1.Intent\022\027\n\017next_page_token\030\002 \001(\t\"y\n\020Get" + - "IntentRequest\022\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_" + - "code\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\0162+.google" + - ".cloud.dialogflow.v2beta1.IntentView\"\267\001\n" + - "\023CreateIntentRequest\022\016\n\006parent\030\001 \001(\t\0227\n\006" + - "intent\030\002 \001(\0132\'.google.cloud.dialogflow.v" + - "2beta1.Intent\022\025\n\rlanguage_code\030\003 \001(\t\022@\n\013" + - "intent_view\030\004 \001(\0162+.google.cloud.dialogf" + - "low.v2beta1.IntentView\"\330\001\n\023UpdateIntentR" + - "equest\0227\n\006intent\030\001 \001(\0132\'.google.cloud.di" + - "alogflow.v2beta1.Intent\022\025\n\rlanguage_code" + - "\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.pro" + - "tobuf.FieldMask\022@\n\013intent_view\030\004 \001(\0162+.g" + - "oogle.cloud.dialogflow.v2beta1.IntentVie" + - "w\"#\n\023DeleteIntentRequest\022\014\n\004name\030\001 \001(\t\"\256" + - "\002\n\031BatchUpdateIntentsRequest\022\016\n\006parent\030\001" + - " \001(\t\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023inte" + - "nt_batch_inline\030\003 \001(\0132,.google.cloud.dia" + - "logflow.v2beta1.IntentBatchH\000\022\025\n\rlanguag" + - "e_code\030\004 \001(\t\022/\n\013update_mask\030\005 \001(\0132\032.goog" + - "le.protobuf.FieldMask\022@\n\013intent_view\030\006 \001" + - "(\0162+.google.cloud.dialogflow.v2beta1.Int" + - "entViewB\016\n\014intent_batch\"V\n\032BatchUpdateIn" + - "tentsResponse\0228\n\007intents\030\001 \003(\0132\'.google." + - "cloud.dialogflow.v2beta1.Intent\"e\n\031Batch" + - "DeleteIntentsRequest\022\016\n\006parent\030\001 \001(\t\0228\n\007" + - "intents\030\002 \003(\0132\'.google.cloud.dialogflow." + - "v2beta1.Intent\"G\n\013IntentBatch\0228\n\007intents" + - "\030\001 \003(\0132\'.google.cloud.dialogflow.v2beta1" + - ".Intent*?\n\nIntentView\022\033\n\027INTENT_VIEW_UNS" + - "PECIFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\0012\262\t\n\007Int" + - "ents\022\254\001\n\013ListIntents\0223.google.cloud.dial" + - "ogflow.v2beta1.ListIntentsRequest\0324.goog" + - "le.cloud.dialogflow.v2beta1.ListIntentsR" + - "esponse\"2\202\323\344\223\002,\022*/v2beta1/{parent=projec" + - "ts/*/agent}/intents\022\233\001\n\tGetIntent\0221.goog" + - "le.cloud.dialogflow.v2beta1.GetIntentReq" + - "uest\032\'.google.cloud.dialogflow.v2beta1.I" + - "ntent\"2\202\323\344\223\002,\022*/v2beta1/{name=projects/*" + - "/agent/intents/*}\022\251\001\n\014CreateIntent\0224.goo" + - "gle.cloud.dialogflow.v2beta1.CreateInten" + - "tRequest\032\'.google.cloud.dialogflow.v2bet" + - "a1.Intent\":\202\323\344\223\0024\"*/v2beta1/{parent=proj" + - "ects/*/agent}/intents:\006intent\022\260\001\n\014Update" + - "Intent\0224.google.cloud.dialogflow.v2beta1" + - ".UpdateIntentRequest\032\'.google.cloud.dial" + - "ogflow.v2beta1.Intent\"A\202\323\344\223\002;21/v2beta1/" + - "{intent.name=projects/*/agent/intents/*}" + - ":\006intent\022\220\001\n\014DeleteIntent\0224.google.cloud" + - ".dialogflow.v2beta1.DeleteIntentRequest\032" + - "\026.google.protobuf.Empty\"2\202\323\344\223\002,**/v2beta" + - "1/{name=projects/*/agent/intents/*}\022\262\001\n\022" + - "BatchUpdateIntents\022:.google.cloud.dialog" + - "flow.v2beta1.BatchUpdateIntentsRequest\032\035" + - ".google.longrunning.Operation\"A\202\323\344\223\002;\"6/" + - "v2beta1/{parent=projects/*/agent}/intent" + - "s:batchUpdate:\001*\022\262\001\n\022BatchDeleteIntents\022" + - ":.google.cloud.dialogflow.v2beta1.BatchD" + - "eleteIntentsRequest\032\035.google.longrunning" + - ".Operation\"A\202\323\344\223\002;\"6/v2beta1/{parent=pro" + - "jects/*/agent}/intents:batchDelete:\001*B\251\001" + - "\n#com.google.cloud.dialogflow.v2beta1B\013I" + - "ntentProtoP\001ZIgoogle.golang.org/genproto" + - "/googleapis/cloud/dialogflow/v2beta1;dia" + - "logflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflo" + - "w.V2beta1b\006proto3" + "Message.CarouselSelect.Item\032\276\001\n\004Item\022L\n\004" + + "info\030\001 \001(\0132>.google.cloud.dialogflow.v2b" + + "eta1.Intent.Message.SelectItemInfo\022\r\n\005ti" + + "tle\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030" + + "\004 \001(\01325.google.cloud.dialogflow.v2beta1." + + "Intent.Message.Image\032/\n\016SelectItemInfo\022\013" + + "\n\003key\030\001 \001(\t\022\020\n\010synonyms\030\002 \003(\t\032\'\n\022Telepho" + + "nyPlayAudio\022\021\n\taudio_uri\030\001 \001(\t\032E\n\031Teleph" + + "onySynthesizeSpeech\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004s" + + "sml\030\002 \001(\tH\000B\010\n\006source\032-\n\025TelephonyTransf" + + "erCall\022\024\n\014phone_number\030\001 \001(\t\"\232\001\n\010Platfor" + + "m\022\030\n\024PLATFORM_UNSPECIFIED\020\000\022\014\n\010FACEBOOK\020" + + "\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005S" + + "KYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIBER\020\007\022\025\n\021ACTIONS_O" + + "N_GOOGLE\020\010\022\r\n\tTELEPHONY\020\nB\t\n\007message\032W\n\022" + + "FollowupIntentInfo\022\034\n\024followup_intent_na" + + "me\030\001 \001(\t\022#\n\033parent_followup_intent_name\030" + + "\002 \001(\t\"t\n\014WebhookState\022\035\n\031WEBHOOK_STATE_U" + + "NSPECIFIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLED\020\001\022" + + "*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLIN" + + "G\020\002\"\244\001\n\022ListIntentsRequest\022\016\n\006parent\030\001 \001" + + "(\t\022\025\n\rlanguage_code\030\002 \001(\t\022@\n\013intent_view" + + "\030\003 \001(\0162+.google.cloud.dialogflow.v2beta1" + + ".IntentView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_t" + + "oken\030\005 \001(\t\"h\n\023ListIntentsResponse\0228\n\007int" + + "ents\030\001 \003(\0132\'.google.cloud.dialogflow.v2b" + + "eta1.Intent\022\027\n\017next_page_token\030\002 \001(\t\"y\n\020" + + "GetIntentRequest\022\014\n\004name\030\001 \001(\t\022\025\n\rlangua" + + "ge_code\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\0162+.goo" + + "gle.cloud.dialogflow.v2beta1.IntentView\"" + + "\267\001\n\023CreateIntentRequest\022\016\n\006parent\030\001 \001(\t\022" + + "7\n\006intent\030\002 \001(\0132\'.google.cloud.dialogflo" + + "w.v2beta1.Intent\022\025\n\rlanguage_code\030\003 \001(\t\022" + + "@\n\013intent_view\030\004 \001(\0162+.google.cloud.dial" + + "ogflow.v2beta1.IntentView\"\330\001\n\023UpdateInte" + + "ntRequest\0227\n\006intent\030\001 \001(\0132\'.google.cloud" + + ".dialogflow.v2beta1.Intent\022\025\n\rlanguage_c" + + "ode\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMask\022@\n\013intent_view\030\004 \001(\0162" + + "+.google.cloud.dialogflow.v2beta1.Intent" + + "View\"#\n\023DeleteIntentRequest\022\014\n\004name\030\001 \001(" + + "\t\"\256\002\n\031BatchUpdateIntentsRequest\022\016\n\006paren" + + "t\030\001 \001(\t\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023i" + + "ntent_batch_inline\030\003 \001(\0132,.google.cloud." + + "dialogflow.v2beta1.IntentBatchH\000\022\025\n\rlang" + + "uage_code\030\004 \001(\t\022/\n\013update_mask\030\005 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\022@\n\013intent_view\030" + + "\006 \001(\0162+.google.cloud.dialogflow.v2beta1." + + "IntentViewB\016\n\014intent_batch\"V\n\032BatchUpdat" + + "eIntentsResponse\0228\n\007intents\030\001 \003(\0132\'.goog" + + "le.cloud.dialogflow.v2beta1.Intent\"e\n\031Ba" + + "tchDeleteIntentsRequest\022\016\n\006parent\030\001 \001(\t\022" + + "8\n\007intents\030\002 \003(\0132\'.google.cloud.dialogfl" + + "ow.v2beta1.Intent\"G\n\013IntentBatch\0228\n\007inte" + + "nts\030\001 \003(\0132\'.google.cloud.dialogflow.v2be" + + "ta1.Intent*?\n\nIntentView\022\033\n\027INTENT_VIEW_" + + "UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\0012\262\t\n\007" + + "Intents\022\254\001\n\013ListIntents\0223.google.cloud.d" + + "ialogflow.v2beta1.ListIntentsRequest\0324.g" + + "oogle.cloud.dialogflow.v2beta1.ListInten" + + "tsResponse\"2\202\323\344\223\002,\022*/v2beta1/{parent=pro" + + "jects/*/agent}/intents\022\233\001\n\tGetIntent\0221.g" + + "oogle.cloud.dialogflow.v2beta1.GetIntent" + + "Request\032\'.google.cloud.dialogflow.v2beta" + + "1.Intent\"2\202\323\344\223\002,\022*/v2beta1/{name=project" + + "s/*/agent/intents/*}\022\251\001\n\014CreateIntent\0224." + + "google.cloud.dialogflow.v2beta1.CreateIn" + + "tentRequest\032\'.google.cloud.dialogflow.v2" + + "beta1.Intent\":\202\323\344\223\0024\"*/v2beta1/{parent=p" + + "rojects/*/agent}/intents:\006intent\022\260\001\n\014Upd" + + "ateIntent\0224.google.cloud.dialogflow.v2be" + + "ta1.UpdateIntentRequest\032\'.google.cloud.d" + + "ialogflow.v2beta1.Intent\"A\202\323\344\223\002;21/v2bet" + + "a1/{intent.name=projects/*/agent/intents" + + "/*}:\006intent\022\220\001\n\014DeleteIntent\0224.google.cl" + + "oud.dialogflow.v2beta1.DeleteIntentReque" + + "st\032\026.google.protobuf.Empty\"2\202\323\344\223\002,**/v2b" + + "eta1/{name=projects/*/agent/intents/*}\022\262" + + "\001\n\022BatchUpdateIntents\022:.google.cloud.dia" + + "logflow.v2beta1.BatchUpdateIntentsReques" + + "t\032\035.google.longrunning.Operation\"A\202\323\344\223\002;" + + "\"6/v2beta1/{parent=projects/*/agent}/int" + + "ents:batchUpdate:\001*\022\262\001\n\022BatchDeleteInten" + + "ts\022:.google.cloud.dialogflow.v2beta1.Bat" + + "chDeleteIntentsRequest\032\035.google.longrunn" + + "ing.Operation\"A\202\323\344\223\002;\"6/v2beta1/{parent=" + + "projects/*/agent}/intents:batchDelete:\001*" + + "B\251\001\n#com.google.cloud.dialogflow.v2beta1" + + "B\013IntentProtoP\001ZIgoogle.golang.org/genpr" + + "oto/googleapis/cloud/dialogflow/v2beta1;" + + "dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialog" + + "flow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -406,7 +434,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_dialogflow_v2beta1_Intent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor, - new java.lang.String[] { "Name", "DisplayName", "WebhookState", "Priority", "IsFallback", "MlEnabled", "MlDisabled", "InputContextNames", "Events", "TrainingPhrases", "Action", "OutputContexts", "ResetContexts", "Parameters", "Messages", "DefaultResponsePlatforms", "RootFollowupIntentName", "ParentFollowupIntentName", "FollowupIntentInfo", }); + new java.lang.String[] { "Name", "DisplayName", "WebhookState", "Priority", "IsFallback", "MlEnabled", "MlDisabled", "EndInteraction", "InputContextNames", "Events", "TrainingPhrases", "Action", "OutputContexts", "ResetContexts", "Parameters", "Messages", "DefaultResponsePlatforms", "RootFollowupIntentName", "ParentFollowupIntentName", "FollowupIntentInfo", }); internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor.getNestedTypes().get(0); internal_static_google_cloud_dialogflow_v2beta1_Intent_TrainingPhrase_fieldAccessorTable = new @@ -430,7 +458,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor, - new java.lang.String[] { "Text", "Image", "QuickReplies", "Card", "Payload", "SimpleResponses", "BasicCard", "Suggestions", "LinkOutSuggestion", "ListSelect", "CarouselSelect", "Platform", "Message", }); + new java.lang.String[] { "Text", "Image", "QuickReplies", "Card", "Payload", "SimpleResponses", "BasicCard", "Suggestions", "LinkOutSuggestion", "ListSelect", "CarouselSelect", "TelephonyPlayAudio", "TelephonySynthesizeSpeech", "TelephonyTransferCall", "Platform", "Message", }); internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor.getNestedTypes().get(0); internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_Text_fieldAccessorTable = new @@ -539,6 +567,24 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_SelectItemInfo_descriptor, new java.lang.String[] { "Key", "Synonyms", }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor.getNestedTypes().get(13); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyPlayAudio_descriptor, + new java.lang.String[] { "AudioUri", }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor.getNestedTypes().get(14); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonySynthesizeSpeech_descriptor, + new java.lang.String[] { "Text", "Ssml", "Source", }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor.getNestedTypes().get(15); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TelephonyTransferCall_descriptor, + new java.lang.String[] { "PhoneNumber", }); internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor.getNestedTypes().get(3); internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_fieldAccessorTable = new diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java new file mode 100644 index 000000000000..99843f6c18ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java @@ -0,0 +1,2236 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/session.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + *+ * Represents the result of querying a Knowledge base. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAnswers} + */ +public final class KnowledgeAnswers extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAnswers) + KnowledgeAnswersOrBuilder { +private static final long serialVersionUID = 0L; + // Use KnowledgeAnswers.newBuilder() to construct. + private KnowledgeAnswers(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private KnowledgeAnswers() { + answers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KnowledgeAnswers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + answers_.add( + input.readMessage(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.class, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder.class); + } + + public interface AnswerOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + java.lang.String getSource(); + /** + *+ * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + com.google.protobuf.ByteString + getSourceBytes(); + + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + java.lang.String getFaqQuestion(); + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + com.google.protobuf.ByteString + getFaqQuestionBytes(); + + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + java.lang.String getAnswer(); + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + com.google.protobuf.ByteString + getAnswerBytes(); + + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + int getMatchConfidenceLevelValue(); + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel getMatchConfidenceLevel(); + + /** + *+ * The system's confidence score that this Knowledge answer is a good match + * for this converstational query, range from 0.0 (completely uncertain) + * to 1.0 (completely certain). + * Note: The confidence score is likely to vary somewhat (possibly even for + * identical requests), as the underlying model is under constant + * improvement, we may deprecate it in the future. We recommend using + * `match_confidence_level` which should be generally more stable. + *+ * + *float match_confidence = 5;
+ */ + float getMatchConfidence(); + } + /** + *+ * An answer from Knowledge Connector. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer} + */ + public static final class Answer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) + AnswerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Answer.newBuilder() to construct. + private Answer(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Answer() { + source_ = ""; + faqQuestion_ = ""; + answer_ = ""; + matchConfidenceLevel_ = 0; + matchConfidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Answer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + faqQuestion_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + answer_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + matchConfidenceLevel_ = rawValue; + break; + } + case 45: { + + matchConfidence_ = input.readFloat(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.class, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder.class); + } + + /** + *+ * Represents the system's confidence that this knowledge answer is a good + * match for this conversational query. + *+ * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel} + */ + public enum MatchConfidenceLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *+ * Not specified. + *+ * + *MATCH_CONFIDENCE_LEVEL_UNSPECIFIED = 0;
+ */ + MATCH_CONFIDENCE_LEVEL_UNSPECIFIED(0), + /** + *+ * Indicates that the confidence is low. + *+ * + *LOW = 1;
+ */ + LOW(1), + /** + *+ * Indicates our confidence is medium. + *+ * + *MEDIUM = 2;
+ */ + MEDIUM(2), + /** + *+ * Indicates our confidence is high. + *+ * + *HIGH = 3;
+ */ + HIGH(3), + UNRECOGNIZED(-1), + ; + + /** + *+ * Not specified. + *+ * + *MATCH_CONFIDENCE_LEVEL_UNSPECIFIED = 0;
+ */ + public static final int MATCH_CONFIDENCE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + *+ * Indicates that the confidence is low. + *+ * + *LOW = 1;
+ */ + public static final int LOW_VALUE = 1; + /** + *+ * Indicates our confidence is medium. + *+ * + *MEDIUM = 2;
+ */ + public static final int MEDIUM_VALUE = 2; + /** + *+ * Indicates our confidence is high. + *+ * + *HIGH = 3;
+ */ + public static final int HIGH_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchConfidenceLevel valueOf(int value) { + return forNumber(value); + } + + public static MatchConfidenceLevel forNumber(int value) { + switch (value) { + case 0: return MATCH_CONFIDENCE_LEVEL_UNSPECIFIED; + case 1: return LOW; + case 2: return MEDIUM; + case 3: return HIGH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap+ internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MatchConfidenceLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public MatchConfidenceLevel findValueByNumber(int number) { + return MatchConfidenceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.getDescriptor().getEnumTypes().get(0); + } + + private static final MatchConfidenceLevel[] VALUES = values(); + + public static MatchConfidenceLevel 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 MatchConfidenceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel) + } + + public static final int SOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object source_; + /** + * + * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + *+ * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAQ_QUESTION_FIELD_NUMBER = 2; + private volatile java.lang.Object faqQuestion_; + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public java.lang.String getFaqQuestion() { + java.lang.Object ref = faqQuestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + faqQuestion_ = s; + return s; + } + } + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public com.google.protobuf.ByteString + getFaqQuestionBytes() { + java.lang.Object ref = faqQuestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + faqQuestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANSWER_FIELD_NUMBER = 3; + private volatile java.lang.Object answer_; + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public java.lang.String getAnswer() { + java.lang.Object ref = answer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answer_ = s; + return s; + } + } + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public com.google.protobuf.ByteString + getAnswerBytes() { + java.lang.Object ref = answer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCH_CONFIDENCE_LEVEL_FIELD_NUMBER = 4; + private int matchConfidenceLevel_; + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public int getMatchConfidenceLevelValue() { + return matchConfidenceLevel_; + } + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel getMatchConfidenceLevel() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel result = com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel.valueOf(matchConfidenceLevel_); + return result == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel.UNRECOGNIZED : result; + } + + public static final int MATCH_CONFIDENCE_FIELD_NUMBER = 5; + private float matchConfidence_; + /** + *+ * The system's confidence score that this Knowledge answer is a good match + * for this converstational query, range from 0.0 (completely uncertain) + * to 1.0 (completely certain). + * Note: The confidence score is likely to vary somewhat (possibly even for + * identical requests), as the underlying model is under constant + * improvement, we may deprecate it in the future. We recommend using + * `match_confidence_level` which should be generally more stable. + *+ * + *float match_confidence = 5;
+ */ + public float getMatchConfidence() { + return matchConfidence_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (!getFaqQuestionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, faqQuestion_); + } + if (!getAnswerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, answer_); + } + if (matchConfidenceLevel_ != com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel.MATCH_CONFIDENCE_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(4, matchConfidenceLevel_); + } + if (matchConfidence_ != 0F) { + output.writeFloat(5, matchConfidence_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (!getFaqQuestionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, faqQuestion_); + } + if (!getAnswerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, answer_); + } + if (matchConfidenceLevel_ != com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel.MATCH_CONFIDENCE_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, matchConfidenceLevel_); + } + if (matchConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, matchConfidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer other = (com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) obj; + + boolean result = true; + result = result && getSource() + .equals(other.getSource()); + result = result && getFaqQuestion() + .equals(other.getFaqQuestion()); + result = result && getAnswer() + .equals(other.getAnswer()); + result = result && matchConfidenceLevel_ == other.matchConfidenceLevel_; + result = result && ( + java.lang.Float.floatToIntBits(getMatchConfidence()) + == java.lang.Float.floatToIntBits( + other.getMatchConfidence())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + FAQ_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFaqQuestion().hashCode(); + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + hash = (37 * hash) + MATCH_CONFIDENCE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + matchConfidenceLevel_; + hash = (37 * hash) + MATCH_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMatchConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * An answer from Knowledge Connector. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.class, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + source_ = ""; + + faqQuestion_ = ""; + + answer_ = ""; + + matchConfidenceLevel_ = 0; + + matchConfidence_ = 0F; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer result = new com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer(this); + result.source_ = source_; + result.faqQuestion_ = faqQuestion_; + result.answer_ = answer_; + result.matchConfidenceLevel_ = matchConfidenceLevel_; + result.matchConfidence_ = matchConfidence_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer other) { + if (other == com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.getDefaultInstance()) return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getFaqQuestion().isEmpty()) { + faqQuestion_ = other.faqQuestion_; + onChanged(); + } + if (!other.getAnswer().isEmpty()) { + answer_ = other.answer_; + onChanged(); + } + if (other.matchConfidenceLevel_ != 0) { + setMatchConfidenceLevelValue(other.getMatchConfidenceLevelValue()); + } + if (other.getMatchConfidence() != 0F) { + setMatchConfidence(other.getMatchConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object source_ = ""; + /** + * + * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public Builder setSource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + *+ * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + *+ * Indicates which Knowledge Document this answer was extracted from. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base + * ID>/documents/<Document ID>`. + *+ * + *string source = 1;
+ */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object faqQuestion_ = ""; + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public java.lang.String getFaqQuestion() { + java.lang.Object ref = faqQuestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + faqQuestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public com.google.protobuf.ByteString + getFaqQuestionBytes() { + java.lang.Object ref = faqQuestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + faqQuestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public Builder setFaqQuestion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + faqQuestion_ = value; + onChanged(); + return this; + } + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public Builder clearFaqQuestion() { + + faqQuestion_ = getDefaultInstance().getFaqQuestion(); + onChanged(); + return this; + } + /** + *+ * The corresponding FAQ question if the answer was extracted from a FAQ + * Document, empty otherwise. + *+ * + *string faq_question = 2;
+ */ + public Builder setFaqQuestionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + faqQuestion_ = value; + onChanged(); + return this; + } + + private java.lang.Object answer_ = ""; + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public java.lang.String getAnswer() { + java.lang.Object ref = answer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public com.google.protobuf.ByteString + getAnswerBytes() { + java.lang.Object ref = answer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + answer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public Builder setAnswer( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + answer_ = value; + onChanged(); + return this; + } + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public Builder clearAnswer() { + + answer_ = getDefaultInstance().getAnswer(); + onChanged(); + return this; + } + /** + *+ * The piece of text from the `source` knowledge base document that answers + * this conversational query. + *+ * + *string answer = 3;
+ */ + public Builder setAnswerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + answer_ = value; + onChanged(); + return this; + } + + private int matchConfidenceLevel_ = 0; + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public int getMatchConfidenceLevelValue() { + return matchConfidenceLevel_; + } + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public Builder setMatchConfidenceLevelValue(int value) { + matchConfidenceLevel_ = value; + onChanged(); + return this; + } + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel getMatchConfidenceLevel() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel result = com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel.valueOf(matchConfidenceLevel_); + return result == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel.UNRECOGNIZED : result; + } + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public Builder setMatchConfidenceLevel(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + matchConfidenceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *+ * The system's confidence level that this knowledge answer is a good match + * for this conversational query. + * NOTE: The confidence level for a given `<query, answer>` pair may change + * without notice, as it depends on models that are constantly being + * improved. However, it will change less frequently than the confidence + * score below, and should be preferred for referencing the quality of an + * answer. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
+ */ + public Builder clearMatchConfidenceLevel() { + + matchConfidenceLevel_ = 0; + onChanged(); + return this; + } + + private float matchConfidence_ ; + /** + *+ * The system's confidence score that this Knowledge answer is a good match + * for this converstational query, range from 0.0 (completely uncertain) + * to 1.0 (completely certain). + * Note: The confidence score is likely to vary somewhat (possibly even for + * identical requests), as the underlying model is under constant + * improvement, we may deprecate it in the future. We recommend using + * `match_confidence_level` which should be generally more stable. + *+ * + *float match_confidence = 5;
+ */ + public float getMatchConfidence() { + return matchConfidence_; + } + /** + *+ * The system's confidence score that this Knowledge answer is a good match + * for this converstational query, range from 0.0 (completely uncertain) + * to 1.0 (completely certain). + * Note: The confidence score is likely to vary somewhat (possibly even for + * identical requests), as the underlying model is under constant + * improvement, we may deprecate it in the future. We recommend using + * `match_confidence_level` which should be generally more stable. + *+ * + *float match_confidence = 5;
+ */ + public Builder setMatchConfidence(float value) { + + matchConfidence_ = value; + onChanged(); + return this; + } + /** + *+ * The system's confidence score that this Knowledge answer is a good match + * for this converstational query, range from 0.0 (completely uncertain) + * to 1.0 (completely certain). + * Note: The confidence score is likely to vary somewhat (possibly even for + * identical requests), as the underlying model is under constant + * improvement, we may deprecate it in the future. We recommend using + * `match_confidence_level` which should be generally more stable. + *+ * + *float match_confidence = 5;
+ */ + public Builder clearMatchConfidence() { + + matchConfidence_ = 0F; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public Answer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Answer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int ANSWERS_FIELD_NUMBER = 1; + private java.util.List answers_; + /** + * + * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public java.util.ListgetAnswersList() { + return answers_; + } + /** + * + * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public java.util.List extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder> + getAnswersOrBuilderList() { + return answers_; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public int getAnswersCount() { + return answers_.size(); + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer getAnswers(int index) { + return answers_.get(index); + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder getAnswersOrBuilder( + int index) { + return answers_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < answers_.size(); i++) { + output.writeMessage(1, answers_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < answers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, answers_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers other = (com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers) obj; + + boolean result = true; + result = result && getAnswersList() + .equals(other.getAnswersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnswersCount() > 0) { + hash = (37 * hash) + ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getAnswersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Represents the result of querying a Knowledge base. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAnswers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAnswers) + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.class, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAnswersFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (answersBuilder_ == null) { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + answersBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers result = new com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers(this); + int from_bitField0_ = bitField0_; + if (answersBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.answers_ = answers_; + } else { + result.answers_ = answersBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers other) { + if (other == com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.getDefaultInstance()) return this; + if (answersBuilder_ == null) { + if (!other.answers_.isEmpty()) { + if (answers_.isEmpty()) { + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnswersIsMutable(); + answers_.addAll(other.answers_); + } + onChanged(); + } + } else { + if (!other.answers_.isEmpty()) { + if (answersBuilder_.isEmpty()) { + answersBuilder_.dispose(); + answersBuilder_ = null; + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000001); + answersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnswersFieldBuilder() : null; + } else { + answersBuilder_.addAllMessages(other.answers_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List answers_ = + java.util.Collections.emptyList(); + private void ensureAnswersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = new java.util.ArrayList (answers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder> answersBuilder_; + + /** + * + * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public java.util.ListgetAnswersList() { + if (answersBuilder_ == null) { + return java.util.Collections.unmodifiableList(answers_); + } else { + return answersBuilder_.getMessageList(); + } + } + /** + * + * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public int getAnswersCount() { + if (answersBuilder_ == null) { + return answers_.size(); + } else { + return answersBuilder_.getCount(); + } + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer getAnswers(int index) { + if (answersBuilder_ == null) { + return answers_.get(index); + } else { + return answersBuilder_.getMessage(index); + } + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder setAnswers( + int index, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.set(index, value); + onChanged(); + } else { + answersBuilder_.setMessage(index, value); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder setAnswers( + int index, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.set(index, builderForValue.build()); + onChanged(); + } else { + answersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder addAnswers(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(value); + onChanged(); + } else { + answersBuilder_.addMessage(value); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder addAnswers( + int index, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(index, value); + onChanged(); + } else { + answersBuilder_.addMessage(index, value); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder addAnswers( + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.add(builderForValue.build()); + onChanged(); + } else { + answersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder addAnswers( + int index, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.add(index, builderForValue.build()); + onChanged(); + } else { + answersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder addAllAnswers( + java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer> values) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, answers_); + onChanged(); + } else { + answersBuilder_.addAllMessages(values); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder clearAnswers() { + if (answersBuilder_ == null) { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + answersBuilder_.clear(); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public Builder removeAnswers(int index) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.remove(index); + onChanged(); + } else { + answersBuilder_.remove(index); + } + return this; + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder getAnswersBuilder( + int index) { + return getAnswersFieldBuilder().getBuilder(index); + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder getAnswersOrBuilder( + int index) { + if (answersBuilder_ == null) { + return answers_.get(index); } else { + return answersBuilder_.getMessageOrBuilder(index); + } + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public java.util.List extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder> + getAnswersOrBuilderList() { + if (answersBuilder_ != null) { + return answersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(answers_); + } + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder addAnswersBuilder() { + return getAnswersFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.getDefaultInstance()); + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder addAnswersBuilder( + int index) { + return getAnswersFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.getDefaultInstance()); + } + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + public java.util.List+ getAnswersBuilderList() { + return getAnswersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder> + getAnswersFieldBuilder() { + if (answersBuilder_ == null) { + answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder>( + answers_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + answers_ = null; + } + return answersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAnswers) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAnswers) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser () { + public KnowledgeAnswers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KnowledgeAnswers(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java new file mode 100644 index 000000000000..9e3cf07da16c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/session.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface KnowledgeAnswersOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAnswers) + com.google.protobuf.MessageOrBuilder { + + /** + * + * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + java.util.List+ getAnswersList(); + /** + * + * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer getAnswers(int index); + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + int getAnswersCount(); + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + java.util.List extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder> + getAnswersOrBuilderList(); + /** + *+ * A list of answers from Knowledge Connector. + *+ * + *repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
+ */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder getAnswersOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java new file mode 100644 index 000000000000..5849e2a9322f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java @@ -0,0 +1,728 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + *+ * Represents knowledge base resource. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeBase} + */ +public final class KnowledgeBase extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeBase) + KnowledgeBaseOrBuilder { +private static final long serialVersionUID = 0L; + // Use KnowledgeBase.newBuilder() to construct. + private KnowledgeBase(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private KnowledgeBase() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KnowledgeBase( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.class, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + 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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeBase)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeBase other = (com.google.cloud.dialogflow.v2beta1.KnowledgeBase) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getDisplayName() + .equals(other.getDisplayName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.KnowledgeBase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Represents knowledge base resource. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeBase} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeBase) + com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.class, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeBase.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeBase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeBase result = new com.google.cloud.dialogflow.v2beta1.KnowledgeBase(this); + result.name_ = name_; + result.displayName_ = displayName_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeBase) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeBase)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeBase other) { + if (other == com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.KnowledgeBase parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.KnowledgeBase) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeBase) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeBase) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeBase DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeBase(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeBase getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public KnowledgeBase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KnowledgeBase(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java similarity index 63% rename from google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java rename to google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java index fb52e4d88662..49e8d21cc489 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java @@ -24,22 +24,22 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") -public class AgentName implements ResourceName { +public class KnowledgeBaseName implements ResourceName { private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/agents/{agent}"); + PathTemplate.createWithoutUrlEncoding("projects/{project}/knowledgeBases/{knowledge_base}"); private volatile Map fieldValuesMap; private final String project; - private final String agent; + private final String knowledgeBase; public String getProject() { return project; } - public String getAgent() { - return agent; + public String getKnowledgeBase() { + return knowledgeBase; } public static Builder newBuilder() { @@ -50,46 +50,46 @@ public Builder toBuilder() { return new Builder(this); } - private AgentName(Builder builder) { + private KnowledgeBaseName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); - agent = Preconditions.checkNotNull(builder.getAgent()); + knowledgeBase = Preconditions.checkNotNull(builder.getKnowledgeBase()); } - public static AgentName of(String project, String agent) { + public static KnowledgeBaseName of(String project, String knowledgeBase) { return newBuilder() .setProject(project) - .setAgent(agent) + .setKnowledgeBase(knowledgeBase) .build(); } - public static String format(String project, String agent) { + public static String format(String project, String knowledgeBase) { return newBuilder() .setProject(project) - .setAgent(agent) + .setKnowledgeBase(knowledgeBase) .build() .toString(); } - public static AgentName parse(String formattedString) { + public static KnowledgeBaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch(formattedString, "AgentName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("agent")); + PATH_TEMPLATE.validatedMatch(formattedString, "KnowledgeBaseName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("knowledge_base")); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); for (String formattedString : formattedStrings) { list.add(parse(formattedString)); } return list; } - public static List toStringList(List values) { + public static List toStringList(List values) { List list = new ArrayList (values.size()); - for (AgentName value : values) { + for (KnowledgeBaseName value : values) { if (value == null) { list.add(""); } else { @@ -109,7 +109,7 @@ public Map getFieldValuesMap() { if (fieldValuesMap == null) { ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); fieldMapBuilder.put("project", project); - fieldMapBuilder.put("agent", agent); + fieldMapBuilder.put("knowledgeBase", knowledgeBase); fieldValuesMap = fieldMapBuilder.build(); } } @@ -123,21 +123,21 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "agent", agent); + return PATH_TEMPLATE.instantiate("project", project, "knowledge_base", knowledgeBase); } - /** Builder for AgentName. */ + /** Builder for KnowledgeBaseName. */ public static class Builder { private String project; - private String agent; + private String knowledgeBase; public String getProject() { return project; } - public String getAgent() { - return agent; + public String getKnowledgeBase() { + return knowledgeBase; } public Builder setProject(String project) { @@ -145,21 +145,21 @@ public Builder setProject(String project) { return this; } - public Builder setAgent(String agent) { - this.agent = agent; + public Builder setKnowledgeBase(String knowledgeBase) { + this.knowledgeBase = knowledgeBase; return this; } private Builder() { } - private Builder(AgentName agentName) { - project = agentName.project; - agent = agentName.agent; + private Builder(KnowledgeBaseName knowledgeBaseName) { + project = knowledgeBaseName.project; + knowledgeBase = knowledgeBaseName.knowledgeBase; } - public AgentName build() { - return new AgentName(this); + public KnowledgeBaseName build() { + return new KnowledgeBaseName(this); } } @@ -168,10 +168,10 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o instanceof AgentName) { - AgentName that = (AgentName) o; + if (o instanceof KnowledgeBaseName) { + KnowledgeBaseName that = (KnowledgeBaseName) o; return (this.project.equals(that.project)) - && (this.agent.equals(that.agent)); + && (this.knowledgeBase.equals(that.knowledgeBase)); } return false; } @@ -182,7 +182,7 @@ public int hashCode() { h *= 1000003; h ^= project.hashCode(); h *= 1000003; - h ^= agent.hashCode(); + h ^= knowledgeBase.hashCode(); return h; } } diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java new file mode 100644 index 000000000000..2148ba063879 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface KnowledgeBaseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeBase) + com.google.protobuf.MessageOrBuilder { + + /** + * + * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + java.lang.String getName(); + /** + *+ * The knowledge base resource name. + * The name must be empty when creating a knowledge base. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *string name = 1;
+ */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + java.lang.String getDisplayName(); + /** + *+ * Required. The display name of the knowledge base. The name must be 1024 + * bytes or less; otherwise, the creation request fails. + *+ * + *string display_name = 2;
+ */ + com.google.protobuf.ByteString + getDisplayNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java new file mode 100644 index 000000000000..8765fd8eab38 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java @@ -0,0 +1,165 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto + +package com.google.cloud.dialogflow.v2beta1; + +public final class KnowledgeBaseProto { + private KnowledgeBaseProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/dialogflow/v2beta1/knowle" + + "dge_base.proto\022\037google.cloud.dialogflow." + + "v2beta1\032\034google/api/annotations.proto\032\033g" + + "oogle/protobuf/empty.proto\032 google/proto" + + "buf/field_mask.proto\"3\n\rKnowledgeBase\022\014\n" + + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\"R\n\031Lis" + + "tKnowledgeBasesRequest\022\016\n\006parent\030\001 \001(\t\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n" + + "\032ListKnowledgeBasesResponse\022G\n\017knowledge" + + "_bases\030\001 \003(\0132..google.cloud.dialogflow.v" + + "2beta1.KnowledgeBase\022\027\n\017next_page_token\030" + + "\002 \001(\t\"\'\n\027GetKnowledgeBaseRequest\022\014\n\004name" + + "\030\001 \001(\t\"t\n\032CreateKnowledgeBaseRequest\022\016\n\006" + + "parent\030\001 \001(\t\022F\n\016knowledge_base\030\002 \001(\0132..g" + + "oogle.cloud.dialogflow.v2beta1.Knowledge" + + "Base\"9\n\032DeleteKnowledgeBaseRequest\022\014\n\004na" + + "me\030\001 \001(\t\022\r\n\005force\030\002 \001(\0102\333\007\n\016KnowledgeBas" + + "es\022\367\001\n\022ListKnowledgeBases\022:.google.cloud" + + ".dialogflow.v2beta1.ListKnowledgeBasesRe" + + "quest\032;.google.cloud.dialogflow.v2beta1." + + "ListKnowledgeBasesResponse\"h\202\323\344\223\002b\022+/v2b" + + "eta1/{parent=projects/*}/knowledgeBasesZ" + + "3\0221/v2beta1/{parent=projects/*/agent}/kn" + + "owledgeBases\022\346\001\n\020GetKnowledgeBase\0228.goog" + + "le.cloud.dialogflow.v2beta1.GetKnowledge" + + "BaseRequest\032..google.cloud.dialogflow.v2" + + "beta1.KnowledgeBase\"h\202\323\344\223\002b\022+/v2beta1/{n" + + "ame=projects/*/knowledgeBases/*}Z3\0221/v2b" + + "eta1/{name=projects/*/agent/knowledgeBas" + + "es/*}\022\216\002\n\023CreateKnowledgeBase\022;.google.c" + + "loud.dialogflow.v2beta1.CreateKnowledgeB" + + "aseRequest\032..google.cloud.dialogflow.v2b" + + "eta1.KnowledgeBase\"\211\001\202\323\344\223\002\202\001\"+/v2beta1/{" + + "parent=projects/*}/knowledgeBases:\016knowl" + + "edge_baseZC\"1/v2beta1/{parent=projects/*" + + "/agent}/knowledgeBases:\016knowledge_base\022\324" + + "\001\n\023DeleteKnowledgeBase\022;.google.cloud.di" + + "alogflow.v2beta1.DeleteKnowledgeBaseRequ" + + "est\032\026.google.protobuf.Empty\"h\202\323\344\223\002b*+/v2" + + "beta1/{name=projects/*/knowledgeBases/*}" + + "Z3*1/v2beta1/{name=projects/*/agent/know" + + "ledgeBases/*}B\260\001\n#com.google.cloud.dialo" + + "gflow.v2beta1B\022KnowledgeBaseProtoP\001ZIgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002" + + "\037Google.Cloud.Dialogflow.V2beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, assigner); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor, + new java.lang.String[] { "Name", "DisplayName", }); + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesResponse_descriptor, + new java.lang.String[] { "KnowledgeBases", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GetKnowledgeBaseRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CreateKnowledgeBaseRequest_descriptor, + new java.lang.String[] { "Parent", "KnowledgeBase", }); + internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_descriptor, + new java.lang.String[] { "Name", "Force", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java new file mode 100644 index 000000000000..30639547b949 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java @@ -0,0 +1,660 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + *+ * Metadata in google::longrunning::Operation for Knowledge operations. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata} + */ +public final class KnowledgeOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) + KnowledgeOperationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use KnowledgeOperationMetadata.newBuilder() to construct. + private KnowledgeOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private KnowledgeOperationMetadata() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KnowledgeOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.class, com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.Builder.class); + } + + /** + *+ * States of the operation. + *+ * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *+ * State unspecified. + *+ * + *STATE_UNSPECIFIED = 0;
+ */ + STATE_UNSPECIFIED(0), + /** + *+ * The operation has been created. + *+ * + *PENDING = 1;
+ */ + PENDING(1), + /** + *+ * The operation is currently running. + *+ * + *RUNNING = 2;
+ */ + RUNNING(2), + /** + *+ * The operation is done, either cancelled or completed. + *+ * + *DONE = 3;
+ */ + DONE(3), + UNRECOGNIZED(-1), + ; + + /** + *+ * State unspecified. + *+ * + *STATE_UNSPECIFIED = 0;
+ */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *+ * The operation has been created. + *+ * + *PENDING = 1;
+ */ + public static final int PENDING_VALUE = 1; + /** + *+ * The operation is currently running. + *+ * + *RUNNING = 2;
+ */ + public static final int RUNNING_VALUE = 2; + /** + *+ * The operation is done, either cancelled or completed. + *+ * + *DONE = 3;
+ */ + public static final int DONE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return PENDING; + case 2: return RUNNING; + case 3: return DONE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap+ internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + * + * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public int getStateValue() { + return state_; + } + /** + *+ * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State getState() { + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State result = com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata other = (com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) obj; + + boolean result = true; + result = result && state_ == other.state_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Metadata in google::longrunning::Operation for Knowledge operations. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.class, com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + state_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata result = new com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata(this); + result.state_ = state_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata other) { + if (other == com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * + * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public int getStateValue() { + return state_; + } + /** + *+ * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *+ * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State getState() { + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State result = com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State.UNRECOGNIZED : result; + } + /** + *+ * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public Builder setState(com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *+ * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public KnowledgeOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KnowledgeOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..19bebdcf6ec8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java @@ -0,0 +1,26 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface KnowledgeOperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + int getStateValue(); + /** + *+ * Required. The current state of this operation. + *+ * + *.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1;
+ */ + com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State getState(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java index 2858ba3a4919..8332d9882990 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java @@ -104,10 +104,9 @@ private ListContextsRequest( * Required. The session to list all contexts from. * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>`. Note: Environments and users are under - * construction and will be available soon. If <Environment ID> is not - * specified, we assume default 'draft' environment. If <User ID> is not - * specified, we assume default '-' user. + * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume + * default 'draft' environment. If `User ID` is not specified, we assume + * default '-' user. *string parent = 1;
@@ -129,10 +128,9 @@ public java.lang.String getParent() { * Required. The session to list all contexts from. * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>`. Note: Environments and users are under - * construction and will be available soon. If <Environment ID> is not - * specified, we assume default 'draft' environment. If <User ID> is not - * specified, we assume default '-' user. + * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume + * default 'draft' environment. If `User ID` is not specified, we assume + * default '-' user. *
string parent = 1;
@@ -534,10 +532,9 @@ public Builder mergeFrom(
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -559,10 +556,9 @@ public java.lang.String getParent() {
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -585,10 +581,9 @@ public java.lang.String getParent() {
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -608,10 +603,9 @@ public Builder setParent(
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -627,10 +621,9 @@ public Builder clearParent() {
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java
index 835f34bccefc..a6321f4ebf2e 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java
@@ -12,10 +12,9 @@ public interface ListContextsRequestOrBuilder extends
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
@@ -26,10 +25,9 @@ public interface ListContextsRequestOrBuilder extends
* Required. The session to list all contexts from.
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we assume
+ * default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java
new file mode 100644
index 000000000000..12f3ac0a024a
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java
@@ -0,0 +1,792 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/document.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsRequest} + */ +public final class ListDocumentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListDocumentsRequest) + ListDocumentsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDocumentsRequest.newBuilder() to construct. + private ListDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListDocumentsRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListDocumentsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto.internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest.class, com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+ * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object pageToken_;
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest other = (com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest) obj;
+
+ boolean result = true;
+ result = result && getParent()
+ .equals(other.getParent());
+ result = result && (getPageSize()
+ == other.getPageSize());
+ result = result && getPageToken()
+ .equals(other.getPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_ ;
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public Builder setPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public Builder setPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListDocumentsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListDocumentsRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ * + * Required. The knowledge base to list all documents for. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString
+ getParentBytes();
+
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ int getPageSize();
+
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ java.lang.String getPageToken();
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ com.google.protobuf.ByteString
+ getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java
new file mode 100644
index 000000000000..4dab7fa0ffeb
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java
@@ -0,0 +1,999 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/document.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsResponse} + */ +public final class ListDocumentsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListDocumentsResponse) + ListDocumentsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDocumentsResponse.newBuilder() to construct. + private ListDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListDocumentsResponse() { + documents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListDocumentsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + documents_ = new java.util.ArrayList
+ * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public java.util.List+ * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ return documents_;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentsOrBuilder(
+ int index) {
+ return documents_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < documents_.size(); i++) {
+ output.writeMessage(1, documents_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < documents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, documents_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse other = (com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse) obj;
+
+ boolean result = true;
+ result = result && getDocumentsList()
+ .equals(other.getDocumentsList());
+ result = result && getNextPageToken()
+ .equals(other.getNextPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public java.util.List+ * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public int getDocumentsCount() {
+ if (documentsBuilder_ == null) {
+ return documents_.size();
+ } else {
+ return documentsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document getDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder setDocuments(
+ int index, com.google.cloud.dialogflow.v2beta1.Document value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder setDocuments(
+ int index, com.google.cloud.dialogflow.v2beta1.Document.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder addDocuments(com.google.cloud.dialogflow.v2beta1.Document value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder addDocuments(
+ int index, com.google.cloud.dialogflow.v2beta1.Document value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder addDocuments(
+ com.google.cloud.dialogflow.v2beta1.Document.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder addDocuments(
+ int index, com.google.cloud.dialogflow.v2beta1.Document.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder addAllDocuments(
+ java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.Document> values) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, documents_);
+ onChanged();
+ } else {
+ documentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder clearDocuments() {
+ if (documentsBuilder_ == null) {
+ documents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ documentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public Builder removeDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.remove(index);
+ onChanged();
+ } else {
+ documentsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document.Builder getDocumentsBuilder(
+ int index) {
+ return getDocumentsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentsOrBuilder(
+ int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index); } else {
+ return documentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ if (documentsBuilder_ != null) {
+ return documentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documents_);
+ }
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document.Builder addDocumentsBuilder() {
+ return getDocumentsFieldBuilder().addBuilder(
+ com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance());
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Document.Builder addDocumentsBuilder(
+ int index) {
+ return getDocumentsFieldBuilder().addBuilder(
+ index, com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance());
+ }
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ public java.util.List+ * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListDocumentsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListDocumentsResponse)
+ private static final com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ java.util.List+ * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.Document getDocuments(int index);
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ int getDocumentsCount();
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ java.util.List extends com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder>
+ getDocumentsOrBuilderList();
+ /**
+ * + * The list of documents. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.Document documents = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentsOrBuilder(
+ int index);
+
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString
+ getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java
new file mode 100644
index 000000000000..ed9780b787cf
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java
@@ -0,0 +1,792 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest} + */ +public final class ListKnowledgeBasesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest) + ListKnowledgeBasesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListKnowledgeBasesRequest.newBuilder() to construct. + private ListKnowledgeBasesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListKnowledgeBasesRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListKnowledgeBasesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest.class, com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+ * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object pageToken_;
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest other = (com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest) obj;
+
+ boolean result = true;
+ result = result && getParent()
+ .equals(other.getParent());
+ result = result && (getPageSize()
+ == other.getPageSize());
+ result = result && getPageToken()
+ .equals(other.getPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_ ;
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public Builder setPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ public Builder setPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest)
+ private static final com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ * + * Required. The agent to list of knowledge bases for. + * Format: `projects/<Project ID>/agent`. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString
+ getParentBytes();
+
+ /**
+ * + * Optional. The maximum number of items to return in a single page. By + * default 10 and at most 100. + *+ * + *
int32 page_size = 2;
+ */
+ int getPageSize();
+
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ java.lang.String getPageToken();
+ /**
+ * + * Optional. The next_page_token value returned from a previous list request. + *+ * + *
string page_token = 3;
+ */
+ com.google.protobuf.ByteString
+ getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java
new file mode 100644
index 000000000000..d6494b4838d8
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java
@@ -0,0 +1,999 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse} + */ +public final class ListKnowledgeBasesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse) + ListKnowledgeBasesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListKnowledgeBasesResponse.newBuilder() to construct. + private ListKnowledgeBasesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListKnowledgeBasesResponse() { + knowledgeBases_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListKnowledgeBasesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + knowledgeBases_ = new java.util.ArrayList
+ * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public java.util.List+ * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>
+ getKnowledgeBasesOrBuilderList() {
+ return knowledgeBases_;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public int getKnowledgeBasesCount() {
+ return knowledgeBases_.size();
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBases(int index) {
+ return knowledgeBases_.get(index);
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBasesOrBuilder(
+ int index) {
+ return knowledgeBases_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < knowledgeBases_.size(); i++) {
+ output.writeMessage(1, knowledgeBases_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < knowledgeBases_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, knowledgeBases_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse other = (com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse) obj;
+
+ boolean result = true;
+ result = result && getKnowledgeBasesList()
+ .equals(other.getKnowledgeBasesList());
+ result = result && getNextPageToken()
+ .equals(other.getNextPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getKnowledgeBasesCount() > 0) {
+ hash = (37 * hash) + KNOWLEDGE_BASES_FIELD_NUMBER;
+ hash = (53 * hash) + getKnowledgeBasesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public java.util.List+ * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public int getKnowledgeBasesCount() {
+ if (knowledgeBasesBuilder_ == null) {
+ return knowledgeBases_.size();
+ } else {
+ return knowledgeBasesBuilder_.getCount();
+ }
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBases(int index) {
+ if (knowledgeBasesBuilder_ == null) {
+ return knowledgeBases_.get(index);
+ } else {
+ return knowledgeBasesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder setKnowledgeBases(
+ int index, com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) {
+ if (knowledgeBasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.set(index, value);
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder setKnowledgeBases(
+ int index, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder builderForValue) {
+ if (knowledgeBasesBuilder_ == null) {
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder addKnowledgeBases(com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) {
+ if (knowledgeBasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.add(value);
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder addKnowledgeBases(
+ int index, com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) {
+ if (knowledgeBasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.add(index, value);
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder addKnowledgeBases(
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder builderForValue) {
+ if (knowledgeBasesBuilder_ == null) {
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.add(builderForValue.build());
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder addKnowledgeBases(
+ int index, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder builderForValue) {
+ if (knowledgeBasesBuilder_ == null) {
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder addAllKnowledgeBases(
+ java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.KnowledgeBase> values) {
+ if (knowledgeBasesBuilder_ == null) {
+ ensureKnowledgeBasesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, knowledgeBases_);
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder clearKnowledgeBases() {
+ if (knowledgeBasesBuilder_ == null) {
+ knowledgeBases_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public Builder removeKnowledgeBases(int index) {
+ if (knowledgeBasesBuilder_ == null) {
+ ensureKnowledgeBasesIsMutable();
+ knowledgeBases_.remove(index);
+ onChanged();
+ } else {
+ knowledgeBasesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder getKnowledgeBasesBuilder(
+ int index) {
+ return getKnowledgeBasesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBasesOrBuilder(
+ int index) {
+ if (knowledgeBasesBuilder_ == null) {
+ return knowledgeBases_.get(index); } else {
+ return knowledgeBasesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>
+ getKnowledgeBasesOrBuilderList() {
+ if (knowledgeBasesBuilder_ != null) {
+ return knowledgeBasesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(knowledgeBases_);
+ }
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder addKnowledgeBasesBuilder() {
+ return getKnowledgeBasesFieldBuilder().addBuilder(
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance());
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder addKnowledgeBasesBuilder(
+ int index) {
+ return getKnowledgeBasesFieldBuilder().addBuilder(
+ index, com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance());
+ }
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ public java.util.List+ * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse)
+ private static final com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ java.util.List+ * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBases(int index);
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ int getKnowledgeBasesCount();
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ java.util.List extends com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>
+ getKnowledgeBasesOrBuilderList();
+ /**
+ * + * The list of knowledge bases. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBasesOrBuilder(
+ int index);
+
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no + * more results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString
+ getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java
index 253bd49a1e67..e9d5dcbe7bb1 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java
@@ -105,9 +105,8 @@ private ListSessionEntityTypesRequest(
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -130,9 +129,8 @@ public java.lang.String getParent() {
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -535,9 +533,8 @@ public Builder mergeFrom(
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -560,9 +557,8 @@ public java.lang.String getParent() {
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -586,9 +582,8 @@ public java.lang.String getParent() {
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -609,9 +604,8 @@ public Builder setParent(
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -628,9 +622,8 @@ public Builder clearParent() {
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java
index bd720f9fa545..7f4d9feb73b5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java
@@ -13,9 +13,8 @@ public interface ListSessionEntityTypesRequestOrBuilder extends
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
@@ -27,9 +26,8 @@ public interface ListSessionEntityTypesRequestOrBuilder extends
* Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
* sessions/<Session ID>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string parent = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java
index 940b6ef5d2d6..73b61b8c4ff1 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java
@@ -22,6 +22,7 @@ private OriginalDetectIntentRequest(com.google.protobuf.GeneratedMessageV3.Build
}
private OriginalDetectIntentRequest() {
source_ = "";
+ version_ = "";
}
@java.lang.Override
@@ -61,6 +62,12 @@ private OriginalDetectIntentRequest(
source_ = s;
break;
}
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ version_ = s;
+ break;
+ }
case 26: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (payload_ != null) {
@@ -142,12 +149,68 @@ public java.lang.String getSource() {
}
}
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PAYLOAD_FIELD_NUMBER = 3;
private com.google.protobuf.Struct payload_;
/**
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -159,6 +222,18 @@ public boolean hasPayload() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -170,6 +245,18 @@ public com.google.protobuf.Struct getPayload() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -193,6 +280,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!getSourceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
+ if (!getVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
if (payload_ != null) {
output.writeMessage(3, getPayload());
}
@@ -207,6 +297,9 @@ public int getSerializedSize() {
if (!getSourceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
}
+ if (!getVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
if (payload_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPayload());
@@ -229,6 +322,8 @@ public boolean equals(final java.lang.Object obj) {
boolean result = true;
result = result && getSource()
.equals(other.getSource());
+ result = result && getVersion()
+ .equals(other.getVersion());
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload()
@@ -247,6 +342,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
if (hasPayload()) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
@@ -387,6 +484,8 @@ public Builder clear() {
super.clear();
source_ = "";
+ version_ = "";
+
if (payloadBuilder_ == null) {
payload_ = null;
} else {
@@ -416,6 +515,7 @@ public com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest build() {
public com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest buildPartial() {
com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest result = new com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest(this);
result.source_ = source_;
+ result.version_ = version_;
if (payloadBuilder_ == null) {
result.payload_ = payload_;
} else {
@@ -466,6 +566,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.OriginalDetectInten
source_ = other.source_;
onChanged();
}
+ if (!other.getVersion().isEmpty()) {
+ version_ = other.version_;
+ onChanged();
+ }
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
@@ -590,6 +694,100 @@ public Builder setSourceBytes(
return this;
}
+ private java.lang.Object version_ = "";
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.Struct payload_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> payloadBuilder_;
@@ -597,6 +795,18 @@ public Builder setSourceBytes(
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -608,6 +818,18 @@ public boolean hasPayload() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -623,6 +845,18 @@ public com.google.protobuf.Struct getPayload() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -644,6 +878,18 @@ public Builder setPayload(com.google.protobuf.Struct value) {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -663,6 +909,18 @@ public Builder setPayload(
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -686,6 +944,18 @@ public Builder mergePayload(com.google.protobuf.Struct value) {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -705,6 +975,18 @@ public Builder clearPayload() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -718,6 +1000,18 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -734,6 +1028,18 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java
index f5457c85d26d..26935a5f69bd 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java
@@ -27,10 +27,42 @@ public interface OriginalDetectIntentRequestOrBuilder extends
com.google.protobuf.ByteString
getSourceBytes();
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ * + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + *+ * + *
string version = 2;
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+
/**
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -40,6 +72,18 @@ public interface OriginalDetectIntentRequestOrBuilder extends
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
@@ -49,6 +93,18 @@ public interface OriginalDetectIntentRequestOrBuilder extends
* * Optional. This field is set to the value of `QueryParameters.payload` field * passed in the request. + * This field is used for the telephony gateway. It should have a + * structure similar to this JSON message: + * <pre>{ + * "telephony": { + * "caller_id": "+18558363987" + * } + * }</pre> + * Note: The caller ID field (`caller_id`) will be in + * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported + * for Enterprise Edition and not for Standard Edition agents. When the + * telephony gateway is used with a standard tier agent the `caller_id` field + * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. ** *
.google.protobuf.Struct payload = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java
new file mode 100644
index 000000000000..907bc4345fd5
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java
@@ -0,0 +1,827 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/audio_config.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Instructs the speech synthesizer how to generate the output audio content. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.OutputAudioConfig} + */ +public final class OutputAudioConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.OutputAudioConfig) + OutputAudioConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use OutputAudioConfig.newBuilder() to construct. + private OutputAudioConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private OutputAudioConfig() { + audioEncoding_ = 0; + sampleRateHertz_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputAudioConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + audioEncoding_ = rawValue; + break; + } + case 16: { + + sampleRateHertz_ = input.readInt32(); + break; + } + case 26: { + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder subBuilder = null; + if (synthesizeSpeechConfig_ != null) { + subBuilder = synthesizeSpeechConfig_.toBuilder(); + } + synthesizeSpeechConfig_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(synthesizeSpeechConfig_); + synthesizeSpeechConfig_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.class, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder.class); + } + + public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; + private int audioEncoding_; + /** + *
+ * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public int getAudioEncodingValue() {
+ return audioEncoding_;
+ }
+ /**
+ * + * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding getAudioEncoding() {
+ com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding result = com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.valueOf(audioEncoding_);
+ return result == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.UNRECOGNIZED : result;
+ }
+
+ public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2;
+ private int sampleRateHertz_;
+ /**
+ * + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + *+ * + *
int32 sample_rate_hertz = 2;
+ */
+ public int getSampleRateHertz() {
+ return sampleRateHertz_;
+ }
+
+ public static final int SYNTHESIZE_SPEECH_CONFIG_FIELD_NUMBER = 3;
+ private com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesizeSpeechConfig_;
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public boolean hasSynthesizeSpeechConfig() {
+ return synthesizeSpeechConfig_ != null;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig getSynthesizeSpeechConfig() {
+ return synthesizeSpeechConfig_ == null ? com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.getDefaultInstance() : synthesizeSpeechConfig_;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder() {
+ return getSynthesizeSpeechConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (audioEncoding_ != com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.OUTPUT_AUDIO_ENCODING_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, audioEncoding_);
+ }
+ if (sampleRateHertz_ != 0) {
+ output.writeInt32(2, sampleRateHertz_);
+ }
+ if (synthesizeSpeechConfig_ != null) {
+ output.writeMessage(3, getSynthesizeSpeechConfig());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (audioEncoding_ != com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.OUTPUT_AUDIO_ENCODING_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, audioEncoding_);
+ }
+ if (sampleRateHertz_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, sampleRateHertz_);
+ }
+ if (synthesizeSpeechConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getSynthesizeSpeechConfig());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.OutputAudioConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig other = (com.google.cloud.dialogflow.v2beta1.OutputAudioConfig) obj;
+
+ boolean result = true;
+ result = result && audioEncoding_ == other.audioEncoding_;
+ result = result && (getSampleRateHertz()
+ == other.getSampleRateHertz());
+ result = result && (hasSynthesizeSpeechConfig() == other.hasSynthesizeSpeechConfig());
+ if (hasSynthesizeSpeechConfig()) {
+ result = result && getSynthesizeSpeechConfig()
+ .equals(other.getSynthesizeSpeechConfig());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER;
+ hash = (53 * hash) + audioEncoding_;
+ hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleRateHertz();
+ if (hasSynthesizeSpeechConfig()) {
+ hash = (37 * hash) + SYNTHESIZE_SPEECH_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSynthesizeSpeechConfig().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio content. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.OutputAudioConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public int getAudioEncodingValue() {
+ return audioEncoding_;
+ }
+ /**
+ * + * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public Builder setAudioEncodingValue(int value) {
+ audioEncoding_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding getAudioEncoding() {
+ com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding result = com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.valueOf(audioEncoding_);
+ return result == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public Builder setAudioEncoding(com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ audioEncoding_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ public Builder clearAudioEncoding() {
+
+ audioEncoding_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int sampleRateHertz_ ;
+ /**
+ * + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + *+ * + *
int32 sample_rate_hertz = 2;
+ */
+ public int getSampleRateHertz() {
+ return sampleRateHertz_;
+ }
+ /**
+ * + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + *+ * + *
int32 sample_rate_hertz = 2;
+ */
+ public Builder setSampleRateHertz(int value) {
+
+ sampleRateHertz_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + *+ * + *
int32 sample_rate_hertz = 2;
+ */
+ public Builder clearSampleRateHertz() {
+
+ sampleRateHertz_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesizeSpeechConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder> synthesizeSpeechConfigBuilder_;
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public boolean hasSynthesizeSpeechConfig() {
+ return synthesizeSpeechConfigBuilder_ != null || synthesizeSpeechConfig_ != null;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig getSynthesizeSpeechConfig() {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ return synthesizeSpeechConfig_ == null ? com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.getDefaultInstance() : synthesizeSpeechConfig_;
+ } else {
+ return synthesizeSpeechConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder setSynthesizeSpeechConfig(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig value) {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ synthesizeSpeechConfig_ = value;
+ onChanged();
+ } else {
+ synthesizeSpeechConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder setSynthesizeSpeechConfig(
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder builderForValue) {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ synthesizeSpeechConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ synthesizeSpeechConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder mergeSynthesizeSpeechConfig(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig value) {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ if (synthesizeSpeechConfig_ != null) {
+ synthesizeSpeechConfig_ =
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.newBuilder(synthesizeSpeechConfig_).mergeFrom(value).buildPartial();
+ } else {
+ synthesizeSpeechConfig_ = value;
+ }
+ onChanged();
+ } else {
+ synthesizeSpeechConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder clearSynthesizeSpeechConfig() {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ synthesizeSpeechConfig_ = null;
+ onChanged();
+ } else {
+ synthesizeSpeechConfig_ = null;
+ synthesizeSpeechConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder() {
+
+ onChanged();
+ return getSynthesizeSpeechConfigFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder() {
+ if (synthesizeSpeechConfigBuilder_ != null) {
+ return synthesizeSpeechConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return synthesizeSpeechConfig_ == null ?
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.getDefaultInstance() : synthesizeSpeechConfig_;
+ }
+ }
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder>
+ getSynthesizeSpeechConfigFieldBuilder() {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ synthesizeSpeechConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder>(
+ getSynthesizeSpeechConfig(),
+ getParentForChildren(),
+ isClean());
+ synthesizeSpeechConfig_ = null;
+ }
+ return synthesizeSpeechConfigBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.OutputAudioConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.OutputAudioConfig)
+ private static final com.google.cloud.dialogflow.v2beta1.OutputAudioConfig DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.OutputAudioConfig();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ int getAudioEncodingValue();
+ /**
+ * + * Required. Audio encoding of the synthesized audio content. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding audio_encoding = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.OutputAudioEncoding getAudioEncoding();
+
+ /**
+ * + * Optional. The synthesis sample rate (in hertz) for this audio. If not + * provided, then the synthesizer will use the default sample rate based on + * the audio encoding. If this is different from the voice's natural sample + * rate, then the synthesizer will honor this request by converting to the + * desired sample rate (which might result in worse audio quality). + *+ * + *
int32 sample_rate_hertz = 2;
+ */
+ int getSampleRateHertz();
+
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ boolean hasSynthesizeSpeechConfig();
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig getSynthesizeSpeechConfig();
+ /**
+ * + * Optional. Configuration of how speech should be synthesized. + *+ * + *
.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java
new file mode 100644
index 000000000000..6b82bb29b412
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java
@@ -0,0 +1,165 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/audio_config.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Audio encoding of the output audio format in Text-To-Speech. + *+ * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.OutputAudioEncoding} + */ +public enum OutputAudioEncoding + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+ * Not specified. + *+ * + *
OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0;
+ */
+ OUTPUT_AUDIO_ENCODING_UNSPECIFIED(0),
+ /**
+ * + * Uncompressed 16-bit signed little-endian samples (Linear PCM). + * Audio content returned as LINEAR16 also contains a WAV header. + *+ * + *
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1;
+ */
+ OUTPUT_AUDIO_ENCODING_LINEAR_16(1),
+ /**
+ * + * MP3 audio. + *+ * + *
OUTPUT_AUDIO_ENCODING_MP3 = 2;
+ */
+ OUTPUT_AUDIO_ENCODING_MP3(2),
+ /**
+ * + * Opus encoded audio wrapped in an ogg container. The result will be a + * file which can be played natively on Android, and in browsers (at least + * Chrome and Firefox). The quality of the encoding is considerably higher + * than MP3 while using approximately the same bitrate. + *+ * + *
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
+ */
+ OUTPUT_AUDIO_ENCODING_OGG_OPUS(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * + * Not specified. + *+ * + *
OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0;
+ */
+ public static final int OUTPUT_AUDIO_ENCODING_UNSPECIFIED_VALUE = 0;
+ /**
+ * + * Uncompressed 16-bit signed little-endian samples (Linear PCM). + * Audio content returned as LINEAR16 also contains a WAV header. + *+ * + *
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1;
+ */
+ public static final int OUTPUT_AUDIO_ENCODING_LINEAR_16_VALUE = 1;
+ /**
+ * + * MP3 audio. + *+ * + *
OUTPUT_AUDIO_ENCODING_MP3 = 2;
+ */
+ public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2;
+ /**
+ * + * Opus encoded audio wrapped in an ogg container. The result will be a + * file which can be played natively on Android, and in browsers (at least + * Chrome and Firefox). The quality of the encoding is considerably higher + * than MP3 while using approximately the same bitrate. + *+ * + *
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
+ */
+ public static final int OUTPUT_AUDIO_ENCODING_OGG_OPUS_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static OutputAudioEncoding valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OutputAudioEncoding forNumber(int value) {
+ switch (value) {
+ case 0: return OUTPUT_AUDIO_ENCODING_UNSPECIFIED;
+ case 1: return OUTPUT_AUDIO_ENCODING_LINEAR_16;
+ case 2: return OUTPUT_AUDIO_ENCODING_MP3;
+ case 3: return OUTPUT_AUDIO_ENCODING_OGG_OPUS;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getKnowledgeBaseNamesList() {
+ return knowledgeBaseNames_;
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public int getKnowledgeBaseNamesCount() {
+ return knowledgeBaseNames_.size();
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public java.lang.String getKnowledgeBaseNames(int index) {
+ return knowledgeBaseNames_.get(index);
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public com.google.protobuf.ByteString
+ getKnowledgeBaseNamesBytes(int index) {
+ return knowledgeBaseNames_.getByteString(index);
+ }
+
+ public static final int SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER = 10;
+ private com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentimentAnalysisRequestConfig_;
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public boolean hasSentimentAnalysisRequestConfig() {
+ return sentimentAnalysisRequestConfig_ != null;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig() {
+ return sentimentAnalysisRequestConfig_ == null ? com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.getDefaultInstance() : sentimentAnalysisRequestConfig_;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder getSentimentAnalysisRequestConfigOrBuilder() {
+ return getSentimentAnalysisRequestConfig();
+ }
+
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -429,6 +562,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (payload_ != null) {
output.writeMessage(6, getPayload());
}
+ if (sentimentAnalysisRequestConfig_ != null) {
+ output.writeMessage(10, getSentimentAnalysisRequestConfig());
+ }
+ for (int i = 0; i < knowledgeBaseNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, knowledgeBaseNames_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -460,6 +599,18 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPayload());
}
+ if (sentimentAnalysisRequestConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getSentimentAnalysisRequestConfig());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < knowledgeBaseNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(knowledgeBaseNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKnowledgeBaseNamesList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -494,6 +645,13 @@ public boolean equals(final java.lang.Object obj) {
result = result && getPayload()
.equals(other.getPayload());
}
+ result = result && getKnowledgeBaseNamesList()
+ .equals(other.getKnowledgeBaseNamesList());
+ result = result && (hasSentimentAnalysisRequestConfig() == other.hasSentimentAnalysisRequestConfig());
+ if (hasSentimentAnalysisRequestConfig()) {
+ result = result && getSentimentAnalysisRequestConfig()
+ .equals(other.getSentimentAnalysisRequestConfig());
+ }
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@@ -526,6 +684,14 @@ public int hashCode() {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
}
+ if (getKnowledgeBaseNamesCount() > 0) {
+ hash = (37 * hash) + KNOWLEDGE_BASE_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getKnowledgeBaseNamesList().hashCode();
+ }
+ if (hasSentimentAnalysisRequestConfig()) {
+ hash = (37 * hash) + SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSentimentAnalysisRequestConfig().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -689,6 +855,14 @@ public Builder clear() {
payload_ = null;
payloadBuilder_ = null;
}
+ knowledgeBaseNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ sentimentAnalysisRequestConfig_ = null;
+ } else {
+ sentimentAnalysisRequestConfig_ = null;
+ sentimentAnalysisRequestConfigBuilder_ = null;
+ }
return this;
}
@@ -743,6 +917,16 @@ public com.google.cloud.dialogflow.v2beta1.QueryParameters buildPartial() {
} else {
result.payload_ = payloadBuilder_.build();
}
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ knowledgeBaseNames_ = knowledgeBaseNames_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.knowledgeBaseNames_ = knowledgeBaseNames_;
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ result.sentimentAnalysisRequestConfig_ = sentimentAnalysisRequestConfig_;
+ } else {
+ result.sentimentAnalysisRequestConfig_ = sentimentAnalysisRequestConfigBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -850,6 +1034,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.QueryParameters oth
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
+ if (!other.knowledgeBaseNames_.isEmpty()) {
+ if (knowledgeBaseNames_.isEmpty()) {
+ knowledgeBaseNames_ = other.knowledgeBaseNames_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureKnowledgeBaseNamesIsMutable();
+ knowledgeBaseNames_.addAll(other.knowledgeBaseNames_);
+ }
+ onChanged();
+ }
+ if (other.hasSentimentAnalysisRequestConfig()) {
+ mergeSentimentAnalysisRequestConfig(other.getSentimentAnalysisRequestConfig());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -2015,6 +2212,361 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
}
return payloadBuilder_;
}
+
+ private com.google.protobuf.LazyStringList knowledgeBaseNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureKnowledgeBaseNamesIsMutable() {
+ if (!((bitField0_ & 0x00000040) == 0x00000040)) {
+ knowledgeBaseNames_ = new com.google.protobuf.LazyStringArrayList(knowledgeBaseNames_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getKnowledgeBaseNamesList() {
+ return knowledgeBaseNames_.getUnmodifiableView();
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public int getKnowledgeBaseNamesCount() {
+ return knowledgeBaseNames_.size();
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public java.lang.String getKnowledgeBaseNames(int index) {
+ return knowledgeBaseNames_.get(index);
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public com.google.protobuf.ByteString
+ getKnowledgeBaseNamesBytes(int index) {
+ return knowledgeBaseNames_.getByteString(index);
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public Builder setKnowledgeBaseNames(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKnowledgeBaseNamesIsMutable();
+ knowledgeBaseNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public Builder addKnowledgeBaseNames(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKnowledgeBaseNamesIsMutable();
+ knowledgeBaseNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public Builder addAllKnowledgeBaseNames(
+ java.lang.Iterable+ * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public Builder clearKnowledgeBaseNames() {
+ knowledgeBaseNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ public Builder addKnowledgeBaseNamesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKnowledgeBaseNamesIsMutable();
+ knowledgeBaseNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentimentAnalysisRequestConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.Builder, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder> sentimentAnalysisRequestConfigBuilder_;
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public boolean hasSentimentAnalysisRequestConfig() {
+ return sentimentAnalysisRequestConfigBuilder_ != null || sentimentAnalysisRequestConfig_ != null;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig() {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ return sentimentAnalysisRequestConfig_ == null ? com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.getDefaultInstance() : sentimentAnalysisRequestConfig_;
+ } else {
+ return sentimentAnalysisRequestConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public Builder setSentimentAnalysisRequestConfig(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig value) {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sentimentAnalysisRequestConfig_ = value;
+ onChanged();
+ } else {
+ sentimentAnalysisRequestConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public Builder setSentimentAnalysisRequestConfig(
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.Builder builderForValue) {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ sentimentAnalysisRequestConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ sentimentAnalysisRequestConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public Builder mergeSentimentAnalysisRequestConfig(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig value) {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ if (sentimentAnalysisRequestConfig_ != null) {
+ sentimentAnalysisRequestConfig_ =
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.newBuilder(sentimentAnalysisRequestConfig_).mergeFrom(value).buildPartial();
+ } else {
+ sentimentAnalysisRequestConfig_ = value;
+ }
+ onChanged();
+ } else {
+ sentimentAnalysisRequestConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public Builder clearSentimentAnalysisRequestConfig() {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ sentimentAnalysisRequestConfig_ = null;
+ onChanged();
+ } else {
+ sentimentAnalysisRequestConfig_ = null;
+ sentimentAnalysisRequestConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.Builder getSentimentAnalysisRequestConfigBuilder() {
+
+ onChanged();
+ return getSentimentAnalysisRequestConfigFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder getSentimentAnalysisRequestConfigOrBuilder() {
+ if (sentimentAnalysisRequestConfigBuilder_ != null) {
+ return sentimentAnalysisRequestConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return sentimentAnalysisRequestConfig_ == null ?
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.getDefaultInstance() : sentimentAnalysisRequestConfig_;
+ }
+ }
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.Builder, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder>
+ getSentimentAnalysisRequestConfigFieldBuilder() {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ sentimentAnalysisRequestConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.Builder, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder>(
+ getSentimentAnalysisRequestConfig(),
+ getParentForChildren(),
+ isClean());
+ sentimentAnalysisRequestConfig_ = null;
+ }
+ return sentimentAnalysisRequestConfigBuilder_;
+ }
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java
index 3fe708921c59..cf2c76f44239 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java
@@ -196,4 +196,93 @@ com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityT
* .google.protobuf.Struct payload = 6;
*/
com.google.protobuf.StructOrBuilder getPayloadOrBuilder();
+
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ java.util.List+ * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ int getKnowledgeBaseNamesCount();
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ java.lang.String getKnowledgeBaseNames(int index);
+ /**
+ * + * Optional. KnowledgeBases to get alternative results from. If not set, the + * KnowledgeBases enabled in the agent (through UI) will be used. + * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. + * Note: This field is `repeated` for forward compatibility, currently only + * the first one is supported, we may return an error if multiple + * KnowledgeBases are specified. + *+ * + *
repeated string knowledge_base_names = 12;
+ */
+ com.google.protobuf.ByteString
+ getKnowledgeBaseNamesBytes(int index);
+
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ boolean hasSentimentAnalysisRequestConfig();
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig();
+ /**
+ * + * Optional. Configures the type of sentiment analysis to perform. If not + * provided, sentiment analysis is not performed. + * Note: Sentiment Analysis is only currently available for Enterprise Edition + * agents. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfigOrBuilder getSentimentAnalysisRequestConfigOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java
index ba508db57eb1..476ede1220b4 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java
@@ -178,6 +178,32 @@ private QueryResult(
languageCode_ = s;
break;
}
+ case 138: {
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder subBuilder = null;
+ if (sentimentAnalysisResult_ != null) {
+ subBuilder = sentimentAnalysisResult_.toBuilder();
+ }
+ sentimentAnalysisResult_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(sentimentAnalysisResult_);
+ sentimentAnalysisResult_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 146: {
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder subBuilder = null;
+ if (knowledgeAnswers_ != null) {
+ subBuilder = knowledgeAnswers_.toBuilder();
+ }
+ knowledgeAnswers_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(knowledgeAnswers_);
+ knowledgeAnswers_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -317,10 +343,10 @@ public java.lang.String getLanguageCode() {
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
*
* float speech_recognition_confidence = 2;
@@ -713,6 +739,8 @@ public com.google.cloud.dialogflow.v2beta1.IntentOrBuilder getIntentOrBuilder()
* * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. ** *
float intent_detection_confidence = 12;
@@ -757,6 +785,78 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
return getDiagnosticInfo();
}
+ public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 17;
+ private com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentimentAnalysisResult_;
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public boolean hasSentimentAnalysisResult() {
+ return sentimentAnalysisResult_ != null;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult getSentimentAnalysisResult() {
+ return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.getDefaultInstance() : sentimentAnalysisResult_;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() {
+ return getSentimentAnalysisResult();
+ }
+
+ public static final int KNOWLEDGE_ANSWERS_FIELD_NUMBER = 18;
+ private com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledgeAnswers_;
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public boolean hasKnowledgeAnswers() {
+ return knowledgeAnswers_ != null;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers getKnowledgeAnswers() {
+ return knowledgeAnswers_ == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.getDefaultInstance() : knowledgeAnswers_;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder getKnowledgeAnswersOrBuilder() {
+ return getKnowledgeAnswers();
+ }
+
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -811,6 +911,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!getLanguageCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_);
}
+ if (sentimentAnalysisResult_ != null) {
+ output.writeMessage(17, getSentimentAnalysisResult());
+ }
+ if (knowledgeAnswers_ != null) {
+ output.writeMessage(18, getKnowledgeAnswers());
+ }
unknownFields.writeTo(output);
}
@@ -870,6 +976,14 @@ public int getSerializedSize() {
if (!getLanguageCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_);
}
+ if (sentimentAnalysisResult_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(17, getSentimentAnalysisResult());
+ }
+ if (knowledgeAnswers_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(18, getKnowledgeAnswers());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -930,6 +1044,16 @@ public boolean equals(final java.lang.Object obj) {
result = result && getDiagnosticInfo()
.equals(other.getDiagnosticInfo());
}
+ result = result && (hasSentimentAnalysisResult() == other.hasSentimentAnalysisResult());
+ if (hasSentimentAnalysisResult()) {
+ result = result && getSentimentAnalysisResult()
+ .equals(other.getSentimentAnalysisResult());
+ }
+ result = result && (hasKnowledgeAnswers() == other.hasKnowledgeAnswers());
+ if (hasKnowledgeAnswers()) {
+ result = result && getKnowledgeAnswers()
+ .equals(other.getKnowledgeAnswers());
+ }
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@@ -984,6 +1108,14 @@ public int hashCode() {
hash = (37 * hash) + DIAGNOSTIC_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDiagnosticInfo().hashCode();
}
+ if (hasSentimentAnalysisResult()) {
+ hash = (37 * hash) + SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getSentimentAnalysisResult().hashCode();
+ }
+ if (hasKnowledgeAnswers()) {
+ hash = (37 * hash) + KNOWLEDGE_ANSWERS_FIELD_NUMBER;
+ hash = (53 * hash) + getKnowledgeAnswers().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1171,6 +1303,18 @@ public Builder clear() {
diagnosticInfo_ = null;
diagnosticInfoBuilder_ = null;
}
+ if (sentimentAnalysisResultBuilder_ == null) {
+ sentimentAnalysisResult_ = null;
+ } else {
+ sentimentAnalysisResult_ = null;
+ sentimentAnalysisResultBuilder_ = null;
+ }
+ if (knowledgeAnswersBuilder_ == null) {
+ knowledgeAnswers_ = null;
+ } else {
+ knowledgeAnswers_ = null;
+ knowledgeAnswersBuilder_ = null;
+ }
return this;
}
@@ -1241,6 +1385,16 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult buildPartial() {
} else {
result.diagnosticInfo_ = diagnosticInfoBuilder_.build();
}
+ if (sentimentAnalysisResultBuilder_ == null) {
+ result.sentimentAnalysisResult_ = sentimentAnalysisResult_;
+ } else {
+ result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build();
+ }
+ if (knowledgeAnswersBuilder_ == null) {
+ result.knowledgeAnswers_ = knowledgeAnswers_;
+ } else {
+ result.knowledgeAnswers_ = knowledgeAnswersBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -1376,6 +1530,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.QueryResult other)
if (other.hasDiagnosticInfo()) {
mergeDiagnosticInfo(other.getDiagnosticInfo());
}
+ if (other.hasSentimentAnalysisResult()) {
+ mergeSentimentAnalysisResult(other.getSentimentAnalysisResult());
+ }
+ if (other.hasKnowledgeAnswers()) {
+ mergeKnowledgeAnswers(other.getKnowledgeAnswers());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1629,10 +1789,10 @@ public Builder setLanguageCodeBytes(
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
*
* float speech_recognition_confidence = 2;
@@ -1646,10 +1806,10 @@ public float getSpeechRecognitionConfidence() {
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
*
* float speech_recognition_confidence = 2;
@@ -1666,10 +1826,10 @@ public Builder setSpeechRecognitionConfidence(float value) {
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
*
* float speech_recognition_confidence = 2;
@@ -3172,6 +3332,8 @@ public com.google.cloud.dialogflow.v2beta1.IntentOrBuilder getIntentOrBuilder()
* * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. ** *
float intent_detection_confidence = 12;
@@ -3183,6 +3345,8 @@ public float getIntentDetectionConfidence() {
* * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. ** *
float intent_detection_confidence = 12;
@@ -3197,6 +3361,8 @@ public Builder setIntentDetectionConfidence(float value) {
* * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. ** *
float intent_detection_confidence = 12;
@@ -3369,6 +3535,330 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
}
return diagnosticInfoBuilder_;
}
+
+ private com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentimentAnalysisResult_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResultOrBuilder> sentimentAnalysisResultBuilder_;
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public boolean hasSentimentAnalysisResult() {
+ return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult getSentimentAnalysisResult() {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ return sentimentAnalysisResult_ == null ? com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.getDefaultInstance() : sentimentAnalysisResult_;
+ } else {
+ return sentimentAnalysisResultBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public Builder setSentimentAnalysisResult(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult value) {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sentimentAnalysisResult_ = value;
+ onChanged();
+ } else {
+ sentimentAnalysisResultBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public Builder setSentimentAnalysisResult(
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder builderForValue) {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ sentimentAnalysisResult_ = builderForValue.build();
+ onChanged();
+ } else {
+ sentimentAnalysisResultBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public Builder mergeSentimentAnalysisResult(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult value) {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ if (sentimentAnalysisResult_ != null) {
+ sentimentAnalysisResult_ =
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.newBuilder(sentimentAnalysisResult_).mergeFrom(value).buildPartial();
+ } else {
+ sentimentAnalysisResult_ = value;
+ }
+ onChanged();
+ } else {
+ sentimentAnalysisResultBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public Builder clearSentimentAnalysisResult() {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ sentimentAnalysisResult_ = null;
+ onChanged();
+ } else {
+ sentimentAnalysisResult_ = null;
+ sentimentAnalysisResultBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() {
+
+ onChanged();
+ return getSentimentAnalysisResultFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() {
+ if (sentimentAnalysisResultBuilder_ != null) {
+ return sentimentAnalysisResultBuilder_.getMessageOrBuilder();
+ } else {
+ return sentimentAnalysisResult_ == null ?
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.getDefaultInstance() : sentimentAnalysisResult_;
+ }
+ }
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResultOrBuilder>
+ getSentimentAnalysisResultFieldBuilder() {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ sentimentAnalysisResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResultOrBuilder>(
+ getSentimentAnalysisResult(),
+ getParentForChildren(),
+ isClean());
+ sentimentAnalysisResult_ = null;
+ }
+ return sentimentAnalysisResultBuilder_;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledgeAnswers_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder> knowledgeAnswersBuilder_;
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public boolean hasKnowledgeAnswers() {
+ return knowledgeAnswersBuilder_ != null || knowledgeAnswers_ != null;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers getKnowledgeAnswers() {
+ if (knowledgeAnswersBuilder_ == null) {
+ return knowledgeAnswers_ == null ? com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.getDefaultInstance() : knowledgeAnswers_;
+ } else {
+ return knowledgeAnswersBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public Builder setKnowledgeAnswers(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers value) {
+ if (knowledgeAnswersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ knowledgeAnswers_ = value;
+ onChanged();
+ } else {
+ knowledgeAnswersBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public Builder setKnowledgeAnswers(
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder builderForValue) {
+ if (knowledgeAnswersBuilder_ == null) {
+ knowledgeAnswers_ = builderForValue.build();
+ onChanged();
+ } else {
+ knowledgeAnswersBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public Builder mergeKnowledgeAnswers(com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers value) {
+ if (knowledgeAnswersBuilder_ == null) {
+ if (knowledgeAnswers_ != null) {
+ knowledgeAnswers_ =
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.newBuilder(knowledgeAnswers_).mergeFrom(value).buildPartial();
+ } else {
+ knowledgeAnswers_ = value;
+ }
+ onChanged();
+ } else {
+ knowledgeAnswersBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public Builder clearKnowledgeAnswers() {
+ if (knowledgeAnswersBuilder_ == null) {
+ knowledgeAnswers_ = null;
+ onChanged();
+ } else {
+ knowledgeAnswers_ = null;
+ knowledgeAnswersBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder getKnowledgeAnswersBuilder() {
+
+ onChanged();
+ return getKnowledgeAnswersFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ public com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder getKnowledgeAnswersOrBuilder() {
+ if (knowledgeAnswersBuilder_ != null) {
+ return knowledgeAnswersBuilder_.getMessageOrBuilder();
+ } else {
+ return knowledgeAnswers_ == null ?
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.getDefaultInstance() : knowledgeAnswers_;
+ }
+ }
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder>
+ getKnowledgeAnswersFieldBuilder() {
+ if (knowledgeAnswersBuilder_ == null) {
+ knowledgeAnswersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder>(
+ getKnowledgeAnswers(),
+ getParentForChildren(),
+ isClean());
+ knowledgeAnswers_ = null;
+ }
+ return knowledgeAnswersBuilder_;
+ }
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java
index c4c99df99247..90350af3dc09 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java
@@ -65,10 +65,10 @@ public interface QueryResultOrBuilder extends
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
*
* float speech_recognition_confidence = 2;
@@ -335,6 +335,8 @@ com.google.cloud.dialogflow.v2beta1.ContextOrBuilder getOutputContextsOrBuilder(
* * The intent detection confidence. Values range from 0.0 * (completely uncertain) to 1.0 (completely certain). + * If there are `multiple knowledge_answers` messages, this value is set to + * the greatest `knowledgeAnswers.match_confidence` value in the list. ** *
float intent_detection_confidence = 12;
@@ -368,4 +370,60 @@ com.google.cloud.dialogflow.v2beta1.ContextOrBuilder getOutputContextsOrBuilder(
* .google.protobuf.Struct diagnostic_info = 14;
*/
com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder();
+
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ boolean hasSentimentAnalysisResult();
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult getSentimentAnalysisResult();
+ /**
+ * + * The sentiment analysis result, which depends on the + * `sentiment_analysis_request_config` specified in the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder();
+
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ boolean hasKnowledgeAnswers();
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers getKnowledgeAnswers();
+ /**
+ * + * The result from Knowledge Connector (if any), ordered by decreasing + * `KnowledgeAnswers.match_confidence`. + *+ * + *
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
+ */
+ com.google.cloud.dialogflow.v2beta1.KnowledgeAnswersOrBuilder getKnowledgeAnswersOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java
index ed50e07975c4..45e469ff7b5d 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java
@@ -235,16 +235,17 @@ public java.lang.String getAgentUri() {
* * The agent to restore. * Example for how to restore an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
@@ -827,16 +828,17 @@ public Builder setAgentUriBytes(
* * The agent to restore. * Example for how to restore an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
@@ -851,16 +853,17 @@ public com.google.protobuf.ByteString getAgentContent() {
* * The agent to restore. * Example for how to restore an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
@@ -878,16 +881,17 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) {
* * The agent to restore. * Example for how to restore an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java
index a1ea13bb42b7..5b34c13fb172 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java
@@ -51,16 +51,17 @@ public interface RestoreAgentRequestOrBuilder extends
* * The agent to restore. * Example for how to restore an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"</pre> ** *
bytes agent_content = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java
new file mode 100644
index 000000000000..ea3511247830
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java
@@ -0,0 +1,561 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/session.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * The sentiment, such as positive/negative feeling or association, for a unit + * of analysis, such as the query text. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Sentiment} + */ +public final class Sentiment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Sentiment) + SentimentOrBuilder { +private static final long serialVersionUID = 0L; + // Use Sentiment.newBuilder() to construct. + private Sentiment(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Sentiment() { + score_ = 0F; + magnitude_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sentiment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 13: { + + score_ = input.readFloat(); + break; + } + case 21: { + + magnitude_ = input.readFloat(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_Sentiment_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_Sentiment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Sentiment.class, com.google.cloud.dialogflow.v2beta1.Sentiment.Builder.class); + } + + public static final int SCORE_FIELD_NUMBER = 1; + private float score_; + /** + *
+ * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + *+ * + *
float score = 1;
+ */
+ public float getScore() {
+ return score_;
+ }
+
+ public static final int MAGNITUDE_FIELD_NUMBER = 2;
+ private float magnitude_;
+ /**
+ * + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + *+ * + *
float magnitude = 2;
+ */
+ public float getMagnitude() {
+ return magnitude_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (score_ != 0F) {
+ output.writeFloat(1, score_);
+ }
+ if (magnitude_ != 0F) {
+ output.writeFloat(2, magnitude_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (score_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(1, score_);
+ }
+ if (magnitude_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, magnitude_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Sentiment)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.Sentiment other = (com.google.cloud.dialogflow.v2beta1.Sentiment) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Float.floatToIntBits(getScore())
+ == java.lang.Float.floatToIntBits(
+ other.getScore()));
+ result = result && (
+ java.lang.Float.floatToIntBits(getMagnitude())
+ == java.lang.Float.floatToIntBits(
+ other.getMagnitude()));
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getScore());
+ hash = (37 * hash) + MAGNITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getMagnitude());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.Sentiment prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * The sentiment, such as positive/negative feeling or association, for a unit + * of analysis, such as the query text. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Sentiment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + *+ * + *
float score = 1;
+ */
+ public float getScore() {
+ return score_;
+ }
+ /**
+ * + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + *+ * + *
float score = 1;
+ */
+ public Builder setScore(float value) {
+
+ score_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + *+ * + *
float score = 1;
+ */
+ public Builder clearScore() {
+
+ score_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float magnitude_ ;
+ /**
+ * + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + *+ * + *
float magnitude = 2;
+ */
+ public float getMagnitude() {
+ return magnitude_;
+ }
+ /**
+ * + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + *+ * + *
float magnitude = 2;
+ */
+ public Builder setMagnitude(float value) {
+
+ magnitude_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + *+ * + *
float magnitude = 2;
+ */
+ public Builder clearMagnitude() {
+
+ magnitude_ = 0F;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Sentiment)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Sentiment)
+ private static final com.google.cloud.dialogflow.v2beta1.Sentiment DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Sentiment();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.Sentiment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Configures the types of sentiment analysis to perform. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig} + */ +public final class SentimentAnalysisRequestConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig) + SentimentAnalysisRequestConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SentimentAnalysisRequestConfig.newBuilder() to construct. + private SentimentAnalysisRequestConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private SentimentAnalysisRequestConfig() { + analyzeQueryTextSentiment_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SentimentAnalysisRequestConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + analyzeQueryTextSentiment_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.class, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig.Builder.class); + } + + public static final int ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 1; + private boolean analyzeQueryTextSentiment_; + /** + *
+ * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + *+ * + *
bool analyze_query_text_sentiment = 1;
+ */
+ public boolean getAnalyzeQueryTextSentiment() {
+ return analyzeQueryTextSentiment_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (analyzeQueryTextSentiment_ != false) {
+ output.writeBool(1, analyzeQueryTextSentiment_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (analyzeQueryTextSentiment_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, analyzeQueryTextSentiment_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig other = (com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig) obj;
+
+ boolean result = true;
+ result = result && (getAnalyzeQueryTextSentiment()
+ == other.getAnalyzeQueryTextSentiment());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAnalyzeQueryTextSentiment());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Configures the types of sentiment analysis to perform. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + *+ * + *
bool analyze_query_text_sentiment = 1;
+ */
+ public boolean getAnalyzeQueryTextSentiment() {
+ return analyzeQueryTextSentiment_;
+ }
+ /**
+ * + * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + *+ * + *
bool analyze_query_text_sentiment = 1;
+ */
+ public Builder setAnalyzeQueryTextSentiment(boolean value) {
+
+ analyzeQueryTextSentiment_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + *+ * + *
bool analyze_query_text_sentiment = 1;
+ */
+ public Builder clearAnalyzeQueryTextSentiment() {
+
+ analyzeQueryTextSentiment_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig)
+ private static final com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Instructs the service to perform sentiment analysis on + * `query_text`. If not provided, sentiment analysis is not performed on + * `query_text`. + *+ * + *
bool analyze_query_text_sentiment = 1;
+ */
+ boolean getAnalyzeQueryTextSentiment();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java
new file mode 100644
index 000000000000..8b8f3ebda53b
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java
@@ -0,0 +1,628 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/session.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * The result of sentiment analysis as configured by + * `sentiment_analysis_request_config`. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SentimentAnalysisResult} + */ +public final class SentimentAnalysisResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SentimentAnalysisResult) + SentimentAnalysisResultOrBuilder { +private static final long serialVersionUID = 0L; + // Use SentimentAnalysisResult.newBuilder() to construct. + private SentimentAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private SentimentAnalysisResult() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SentimentAnalysisResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.cloud.dialogflow.v2beta1.Sentiment.Builder subBuilder = null; + if (queryTextSentiment_ != null) { + subBuilder = queryTextSentiment_.toBuilder(); + } + queryTextSentiment_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.Sentiment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryTextSentiment_); + queryTextSentiment_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.SessionProto.internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.class, com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult.Builder.class); + } + + public static final int QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.Sentiment queryTextSentiment_; + /** + *
+ * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public boolean hasQueryTextSentiment() {
+ return queryTextSentiment_ != null;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Sentiment getQueryTextSentiment() {
+ return queryTextSentiment_ == null ? com.google.cloud.dialogflow.v2beta1.Sentiment.getDefaultInstance() : queryTextSentiment_;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentOrBuilder getQueryTextSentimentOrBuilder() {
+ return getQueryTextSentiment();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (queryTextSentiment_ != null) {
+ output.writeMessage(1, getQueryTextSentiment());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (queryTextSentiment_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getQueryTextSentiment());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult other = (com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult) obj;
+
+ boolean result = true;
+ result = result && (hasQueryTextSentiment() == other.hasQueryTextSentiment());
+ if (hasQueryTextSentiment()) {
+ result = result && getQueryTextSentiment()
+ .equals(other.getQueryTextSentiment());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryTextSentiment()) {
+ hash = (37 * hash) + QUERY_TEXT_SENTIMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryTextSentiment().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * The result of sentiment analysis as configured by + * `sentiment_analysis_request_config`. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SentimentAnalysisResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public boolean hasQueryTextSentiment() {
+ return queryTextSentimentBuilder_ != null || queryTextSentiment_ != null;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Sentiment getQueryTextSentiment() {
+ if (queryTextSentimentBuilder_ == null) {
+ return queryTextSentiment_ == null ? com.google.cloud.dialogflow.v2beta1.Sentiment.getDefaultInstance() : queryTextSentiment_;
+ } else {
+ return queryTextSentimentBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public Builder setQueryTextSentiment(com.google.cloud.dialogflow.v2beta1.Sentiment value) {
+ if (queryTextSentimentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ queryTextSentiment_ = value;
+ onChanged();
+ } else {
+ queryTextSentimentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public Builder setQueryTextSentiment(
+ com.google.cloud.dialogflow.v2beta1.Sentiment.Builder builderForValue) {
+ if (queryTextSentimentBuilder_ == null) {
+ queryTextSentiment_ = builderForValue.build();
+ onChanged();
+ } else {
+ queryTextSentimentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public Builder mergeQueryTextSentiment(com.google.cloud.dialogflow.v2beta1.Sentiment value) {
+ if (queryTextSentimentBuilder_ == null) {
+ if (queryTextSentiment_ != null) {
+ queryTextSentiment_ =
+ com.google.cloud.dialogflow.v2beta1.Sentiment.newBuilder(queryTextSentiment_).mergeFrom(value).buildPartial();
+ } else {
+ queryTextSentiment_ = value;
+ }
+ onChanged();
+ } else {
+ queryTextSentimentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public Builder clearQueryTextSentiment() {
+ if (queryTextSentimentBuilder_ == null) {
+ queryTextSentiment_ = null;
+ onChanged();
+ } else {
+ queryTextSentiment_ = null;
+ queryTextSentimentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.Sentiment.Builder getQueryTextSentimentBuilder() {
+
+ onChanged();
+ return getQueryTextSentimentFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SentimentOrBuilder getQueryTextSentimentOrBuilder() {
+ if (queryTextSentimentBuilder_ != null) {
+ return queryTextSentimentBuilder_.getMessageOrBuilder();
+ } else {
+ return queryTextSentiment_ == null ?
+ com.google.cloud.dialogflow.v2beta1.Sentiment.getDefaultInstance() : queryTextSentiment_;
+ }
+ }
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Sentiment, com.google.cloud.dialogflow.v2beta1.Sentiment.Builder, com.google.cloud.dialogflow.v2beta1.SentimentOrBuilder>
+ getQueryTextSentimentFieldBuilder() {
+ if (queryTextSentimentBuilder_ == null) {
+ queryTextSentimentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.Sentiment, com.google.cloud.dialogflow.v2beta1.Sentiment.Builder, com.google.cloud.dialogflow.v2beta1.SentimentOrBuilder>(
+ getQueryTextSentiment(),
+ getParentForChildren(),
+ isClean());
+ queryTextSentiment_ = null;
+ }
+ return queryTextSentimentBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SentimentAnalysisResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SentimentAnalysisResult)
+ private static final com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ boolean hasQueryTextSentiment();
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.Sentiment getQueryTextSentiment();
+ /**
+ * + * The sentiment analysis result for `query_text`. + *+ * + *
.google.cloud.dialogflow.v2beta1.Sentiment query_text_sentiment = 1;
+ */
+ com.google.cloud.dialogflow.v2beta1.SentimentOrBuilder getQueryTextSentimentOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java
new file mode 100644
index 000000000000..582ce66478c1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java
@@ -0,0 +1,29 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/session.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+public interface SentimentOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Sentiment)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * + * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + * sentiment). + *+ * + *
float score = 1;
+ */
+ float getScore();
+
+ /**
+ * + * A non-negative number in the [0, +inf) range, which represents the absolute + * magnitude of sentiment, regardless of score (positive or negative). + *+ * + *
float magnitude = 2;
+ */
+ float getMagnitude();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java
index 5f15ccf1f5dc..063886dbe4b3 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java
@@ -264,11 +264,9 @@ private EntityOverrideMode(int value) {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -291,11 +289,9 @@ public java.lang.String getName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -773,11 +769,9 @@ public Builder mergeFrom(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -800,11 +794,9 @@ public java.lang.String getName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -828,11 +820,9 @@ public java.lang.String getName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -853,11 +843,9 @@ public Builder setName(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -874,11 +862,9 @@ public Builder clearName() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java
index 97fc6217c776..2c3a44ac030a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java
@@ -13,11 +13,9 @@ public interface SessionEntityTypeOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
@@ -29,11 +27,9 @@ public interface SessionEntityTypeOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions
- * /<Session ID>/entityTypes/<Entity Type Display Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
+ * If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java
index ecc37a3f3691..eef0d37cd2ae 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java
@@ -39,6 +39,16 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_v2beta1_QueryResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentRequest_descriptor;
static final
@@ -69,6 +79,21 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_v2beta1_EventInput_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_Sentiment_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_Sentiment_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -80,99 +105,137 @@ public static void registerAllExtensions(
java.lang.String[] descriptorData = {
"\n-google/cloud/dialogflow/v2beta1/sessio" +
"n.proto\022\037google.cloud.dialogflow.v2beta1" +
- "\032\034google/api/annotations.proto\032-google/c" +
- "loud/dialogflow/v2beta1/context.proto\032,g" +
- "oogle/cloud/dialogflow/v2beta1/intent.pr" +
- "oto\0329google/cloud/dialogflow/v2beta1/ses" +
- "sion_entity_type.proto\032\034google/protobuf/" +
- "struct.proto\032\027google/rpc/status.proto\032\030g" +
- "oogle/type/latlng.proto\"\305\001\n\023DetectIntent" +
- "Request\022\017\n\007session\030\001 \001(\t\022F\n\014query_params" +
- "\030\002 \001(\01320.google.cloud.dialogflow.v2beta1" +
- ".QueryParameters\022@\n\013query_input\030\003 \001(\0132+." +
- "google.cloud.dialogflow.v2beta1.QueryInp" +
- "ut\022\023\n\013input_audio\030\005 \001(\014\"\233\001\n\024DetectIntent" +
- "Response\022\023\n\013response_id\030\001 \001(\t\022B\n\014query_r" +
- "esult\030\002 \001(\0132,.google.cloud.dialogflow.v2" +
- "beta1.QueryResult\022*\n\016webhook_status\030\003 \001(" +
- "\0132\022.google.rpc.Status\"\237\002\n\017QueryParameter" +
- "s\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001" +
- "(\0132\023.google.type.LatLng\022:\n\010contexts\030\003 \003(" +
- "\0132(.google.cloud.dialogflow.v2beta1.Cont" +
- "ext\022\026\n\016reset_contexts\030\004 \001(\010\022P\n\024session_e" +
- "ntity_types\030\005 \003(\01322.google.cloud.dialogf" +
- "low.v2beta1.SessionEntityType\022(\n\007payload" +
- "\030\006 \001(\0132\027.google.protobuf.Struct\"\332\001\n\nQuer" +
- "yInput\022I\n\014audio_config\030\001 \001(\01321.google.cl" +
- "oud.dialogflow.v2beta1.InputAudioConfigH" +
- "\000\022:\n\004text\030\002 \001(\0132*.google.cloud.dialogflo" +
- "w.v2beta1.TextInputH\000\022<\n\005event\030\003 \001(\0132+.g" +
- "oogle.cloud.dialogflow.v2beta1.EventInpu" +
- "tH\000B\007\n\005input\"\307\004\n\013QueryResult\022\022\n\nquery_te" +
- "xt\030\001 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\022%\n\035speec" +
- "h_recognition_confidence\030\002 \001(\002\022\016\n\006action" +
- "\030\003 \001(\t\022+\n\nparameters\030\004 \001(\0132\027.google.prot" +
- "obuf.Struct\022#\n\033all_required_params_prese" +
- "nt\030\005 \001(\010\022\030\n\020fulfillment_text\030\006 \001(\t\022M\n\024fu" +
- "lfillment_messages\030\007 \003(\0132/.google.cloud." +
- "dialogflow.v2beta1.Intent.Message\022\026\n\016web" +
- "hook_source\030\010 \001(\t\0220\n\017webhook_payload\030\t \001" +
- "(\0132\027.google.protobuf.Struct\022A\n\017output_co" +
- "ntexts\030\n \003(\0132(.google.cloud.dialogflow.v" +
- "2beta1.Context\0227\n\006intent\030\013 \001(\0132\'.google." +
- "cloud.dialogflow.v2beta1.Intent\022#\n\033inten" +
- "t_detection_confidence\030\014 \001(\002\0220\n\017diagnost" +
- "ic_info\030\016 \001(\0132\027.google.protobuf.Struct\"\350" +
- "\001\n\034StreamingDetectIntentRequest\022\017\n\007sessi" +
- "on\030\001 \001(\t\022F\n\014query_params\030\002 \001(\01320.google." +
- "cloud.dialogflow.v2beta1.QueryParameters" +
- "\022@\n\013query_input\030\003 \001(\0132+.google.cloud.dia" +
- "logflow.v2beta1.QueryInput\022\030\n\020single_utt" +
- "erance\030\004 \001(\010\022\023\n\013input_audio\030\006 \001(\014\"\375\001\n\035St" +
- "reamingDetectIntentResponse\022\023\n\013response_" +
- "id\030\001 \001(\t\022W\n\022recognition_result\030\002 \001(\0132;.g" +
- "oogle.cloud.dialogflow.v2beta1.Streaming" +
- "RecognitionResult\022B\n\014query_result\030\003 \001(\0132" +
- ",.google.cloud.dialogflow.v2beta1.QueryR" +
- "esult\022*\n\016webhook_status\030\004 \001(\0132\022.google.r" +
- "pc.Status\"\217\002\n\032StreamingRecognitionResult" +
- "\022]\n\014message_type\030\001 \001(\0162G.google.cloud.di" +
- "alogflow.v2beta1.StreamingRecognitionRes" +
- "ult.MessageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010i" +
- "s_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\"X\n\013Mes" +
- "sageType\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016" +
- "\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANC" +
- "E\020\002\"\242\001\n\020InputAudioConfig\022F\n\016audio_encodi" +
- "ng\030\001 \001(\0162..google.cloud.dialogflow.v2bet" +
- "a1.AudioEncoding\022\031\n\021sample_rate_hertz\030\002 " +
- "\001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014phrase_hin" +
- "ts\030\004 \003(\t\"0\n\tTextInput\022\014\n\004text\030\001 \001(\t\022\025\n\rl" +
- "anguage_code\030\002 \001(\t\"^\n\nEventInput\022\014\n\004name" +
- "\030\001 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.prot" +
- "obuf.Struct\022\025\n\rlanguage_code\030\003 \001(\t*\373\001\n\rA" +
- "udioEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFI" +
- "ED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AU" +
- "DIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MU" +
- "LAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_E" +
- "NCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_O" +
- "PUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HEADE" +
- "R_BYTE\020\0072\310\003\n\010Sessions\022\236\002\n\014DetectIntent\0224" +
- ".google.cloud.dialogflow.v2beta1.DetectI" +
- "ntentRequest\0325.google.cloud.dialogflow.v" +
- "2beta1.DetectIntentResponse\"\240\001\202\323\344\223\002\231\001\";/" +
- "v2beta1/{session=projects/*/agent/sessio" +
- "ns/*}:detectIntent:\001*ZW\"R/v2beta1/{sessi" +
- "on=projects/*/agent/environments/*/users" +
- "/*/sessions/*}:detectIntent:\001*\022\232\001\n\025Strea" +
- "mingDetectIntent\022=.google.cloud.dialogfl" +
- "ow.v2beta1.StreamingDetectIntentRequest\032" +
- ">.google.cloud.dialogflow.v2beta1.Stream" +
- "ingDetectIntentResponse(\0010\001B\252\001\n#com.goog" +
- "le.cloud.dialogflow.v2beta1B\014SessionProt" +
- "oP\001ZIgoogle.golang.org/genproto/googleap" +
- "is/cloud/dialogflow/v2beta1;dialogflow\370\001" +
- "\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1" +
- "b\006proto3"
+ "\032\034google/api/annotations.proto\0322google/c" +
+ "loud/dialogflow/v2beta1/audio_config.pro" +
+ "to\032-google/cloud/dialogflow/v2beta1/cont" +
+ "ext.proto\032,google/cloud/dialogflow/v2bet" +
+ "a1/intent.proto\0329google/cloud/dialogflow" +
+ "/v2beta1/session_entity_type.proto\032\034goog" +
+ "le/protobuf/struct.proto\032\027google/rpc/sta" +
+ "tus.proto\032\030google/type/latlng.proto\"\226\002\n\023" +
+ "DetectIntentRequest\022\017\n\007session\030\001 \001(\t\022F\n\014" +
+ "query_params\030\002 \001(\01320.google.cloud.dialog" +
+ "flow.v2beta1.QueryParameters\022@\n\013query_in" +
+ "put\030\003 \001(\0132+.google.cloud.dialogflow.v2be" +
+ "ta1.QueryInput\022O\n\023output_audio_config\030\004 " +
+ "\001(\01322.google.cloud.dialogflow.v2beta1.Ou" +
+ "tputAudioConfig\022\023\n\013input_audio\030\005 \001(\014\"\323\002\n" +
+ "\024DetectIntentResponse\022\023\n\013response_id\030\001 \001" +
+ "(\t\022B\n\014query_result\030\002 \001(\0132,.google.cloud." +
+ "dialogflow.v2beta1.QueryResult\022O\n\031altern" +
+ "ative_query_results\030\005 \003(\0132,.google.cloud" +
+ ".dialogflow.v2beta1.QueryResult\022*\n\016webho" +
+ "ok_status\030\003 \001(\0132\022.google.rpc.Status\022\024\n\014o" +
+ "utput_audio\030\004 \001(\014\022O\n\023output_audio_config" +
+ "\030\006 \001(\01322.google.cloud.dialogflow.v2beta1" +
+ ".OutputAudioConfig\"\251\003\n\017QueryParameters\022\021" +
+ "\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132" +
+ "\023.google.type.LatLng\022:\n\010contexts\030\003 \003(\0132(" +
+ ".google.cloud.dialogflow.v2beta1.Context" +
+ "\022\026\n\016reset_contexts\030\004 \001(\010\022P\n\024session_enti" +
+ "ty_types\030\005 \003(\01322.google.cloud.dialogflow" +
+ ".v2beta1.SessionEntityType\022(\n\007payload\030\006 " +
+ "\001(\0132\027.google.protobuf.Struct\022\034\n\024knowledg" +
+ "e_base_names\030\014 \003(\t\022j\n!sentiment_analysis" +
+ "_request_config\030\n \001(\0132?.google.cloud.dia" +
+ "logflow.v2beta1.SentimentAnalysisRequest" +
+ "Config\"\332\001\n\nQueryInput\022I\n\014audio_config\030\001 " +
+ "\001(\01321.google.cloud.dialogflow.v2beta1.In" +
+ "putAudioConfigH\000\022:\n\004text\030\002 \001(\0132*.google." +
+ "cloud.dialogflow.v2beta1.TextInputH\000\022<\n\005" +
+ "event\030\003 \001(\0132+.google.cloud.dialogflow.v2" +
+ "beta1.EventInputH\000B\007\n\005input\"\362\005\n\013QueryRes" +
+ "ult\022\022\n\nquery_text\030\001 \001(\t\022\025\n\rlanguage_code" +
+ "\030\017 \001(\t\022%\n\035speech_recognition_confidence\030" +
+ "\002 \001(\002\022\016\n\006action\030\003 \001(\t\022+\n\nparameters\030\004 \001(" +
+ "\0132\027.google.protobuf.Struct\022#\n\033all_requir" +
+ "ed_params_present\030\005 \001(\010\022\030\n\020fulfillment_t" +
+ "ext\030\006 \001(\t\022M\n\024fulfillment_messages\030\007 \003(\0132" +
+ "/.google.cloud.dialogflow.v2beta1.Intent" +
+ ".Message\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webh" +
+ "ook_payload\030\t \001(\0132\027.google.protobuf.Stru" +
+ "ct\022A\n\017output_contexts\030\n \003(\0132(.google.clo" +
+ "ud.dialogflow.v2beta1.Context\0227\n\006intent\030" +
+ "\013 \001(\0132\'.google.cloud.dialogflow.v2beta1." +
+ "Intent\022#\n\033intent_detection_confidence\030\014 " +
+ "\001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.google.pr" +
+ "otobuf.Struct\022[\n\031sentiment_analysis_resu" +
+ "lt\030\021 \001(\01328.google.cloud.dialogflow.v2bet" +
+ "a1.SentimentAnalysisResult\022L\n\021knowledge_" +
+ "answers\030\022 \001(\01321.google.cloud.dialogflow." +
+ "v2beta1.KnowledgeAnswers\"\206\003\n\020KnowledgeAn" +
+ "swers\022I\n\007answers\030\001 \003(\01328.google.cloud.di" +
+ "alogflow.v2beta1.KnowledgeAnswers.Answer" +
+ "\032\246\002\n\006Answer\022\016\n\006source\030\001 \001(\t\022\024\n\014faq_quest" +
+ "ion\030\002 \001(\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_confi" +
+ "dence_level\030\004 \001(\0162M.google.cloud.dialogf" +
+ "low.v2beta1.KnowledgeAnswers.Answer.Matc" +
+ "hConfidenceLevel\022\030\n\020match_confidence\030\005 \001" +
+ "(\002\"]\n\024MatchConfidenceLevel\022&\n\"MATCH_CONF" +
+ "IDENCE_LEVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006M" +
+ "EDIUM\020\002\022\010\n\004HIGH\020\003\"\271\002\n\034StreamingDetectInt" +
+ "entRequest\022\017\n\007session\030\001 \001(\t\022F\n\014query_par" +
+ "ams\030\002 \001(\01320.google.cloud.dialogflow.v2be" +
+ "ta1.QueryParameters\022@\n\013query_input\030\003 \001(\013" +
+ "2+.google.cloud.dialogflow.v2beta1.Query" +
+ "Input\022\030\n\020single_utterance\030\004 \001(\010\022O\n\023outpu" +
+ "t_audio_config\030\005 \001(\01322.google.cloud.dial" +
+ "ogflow.v2beta1.OutputAudioConfig\022\023\n\013inpu" +
+ "t_audio\030\006 \001(\014\"\265\003\n\035StreamingDetectIntentR" +
+ "esponse\022\023\n\013response_id\030\001 \001(\t\022W\n\022recognit" +
+ "ion_result\030\002 \001(\0132;.google.cloud.dialogfl" +
+ "ow.v2beta1.StreamingRecognitionResult\022B\n" +
+ "\014query_result\030\003 \001(\0132,.google.cloud.dialo" +
+ "gflow.v2beta1.QueryResult\022O\n\031alternative" +
+ "_query_results\030\007 \003(\0132,.google.cloud.dial" +
+ "ogflow.v2beta1.QueryResult\022*\n\016webhook_st" +
+ "atus\030\004 \001(\0132\022.google.rpc.Status\022\024\n\014output" +
+ "_audio\030\005 \001(\014\022O\n\023output_audio_config\030\006 \001(" +
+ "\01322.google.cloud.dialogflow.v2beta1.Outp" +
+ "utAudioConfig\"\217\002\n\032StreamingRecognitionRe" +
+ "sult\022]\n\014message_type\030\001 \001(\0162G.google.clou" +
+ "d.dialogflow.v2beta1.StreamingRecognitio" +
+ "nResult.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\"X\n" +
+ "\013MessageType\022\034\n\030MESSAGE_TYPE_UNSPECIFIED" +
+ "\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTE" +
+ "RANCE\020\002\"\261\001\n\020InputAudioConfig\022F\n\016audio_en" +
+ "coding\030\001 \001(\0162..google.cloud.dialogflow.v" +
+ "2beta1.AudioEncoding\022\031\n\021sample_rate_hert" +
+ "z\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014phrase" +
+ "_hints\030\004 \003(\t\022\r\n\005model\030\007 \001(\t\"0\n\tTextInput" +
+ "\022\014\n\004text\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^\n" +
+ "\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n\nparameters\030" +
+ "\002 \001(\0132\027.google.protobuf.Struct\022\025\n\rlangua" +
+ "ge_code\030\003 \001(\t\"F\n\036SentimentAnalysisReques" +
+ "tConfig\022$\n\034analyze_query_text_sentiment\030" +
+ "\001 \001(\010\"c\n\027SentimentAnalysisResult\022H\n\024quer" +
+ "y_text_sentiment\030\001 \001(\0132*.google.cloud.di" +
+ "alogflow.v2beta1.Sentiment\"-\n\tSentiment\022" +
+ "\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002*\373\001\n\rAu" +
+ "dioEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIE" +
+ "D\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AUD" +
+ "IO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MUL" +
+ "AW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_EN" +
+ "CODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OP" +
+ "US\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER" +
+ "_BYTE\020\0072\312\003\n\010Sessions\022\236\002\n\014DetectIntent\0224." +
+ "google.cloud.dialogflow.v2beta1.DetectIn" +
+ "tentRequest\0325.google.cloud.dialogflow.v2" +
+ "beta1.DetectIntentResponse\"\240\001\202\323\344\223\002\231\001\";/v" +
+ "2beta1/{session=projects/*/agent/session" +
+ "s/*}:detectIntent:\001*ZW\"R/v2beta1/{sessio" +
+ "n=projects/*/agent/environments/*/users/" +
+ "*/sessions/*}:detectIntent:\001*\022\234\001\n\025Stream" +
+ "ingDetectIntent\022=.google.cloud.dialogflo" +
+ "w.v2beta1.StreamingDetectIntentRequest\032>" +
+ ".google.cloud.dialogflow.v2beta1.Streami" +
+ "ngDetectIntentResponse\"\000(\0010\001B\252\001\n#com.goo" +
+ "gle.cloud.dialogflow.v2beta1B\014SessionPro" +
+ "toP\001ZIgoogle.golang.org/genproto/googlea" +
+ "pis/cloud/dialogflow/v2beta1;dialogflow\370" +
+ "\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta" +
+ "1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -186,6 +249,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(),
com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(),
com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(),
com.google.cloud.dialogflow.v2beta1.SessionEntityTypeProto.getDescriptor(),
@@ -198,19 +262,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
internal_static_google_cloud_dialogflow_v2beta1_DetectIntentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_DetectIntentRequest_descriptor,
- new java.lang.String[] { "Session", "QueryParams", "QueryInput", "InputAudio", });
+ new java.lang.String[] { "Session", "QueryParams", "QueryInput", "OutputAudioConfig", "InputAudio", });
internal_static_google_cloud_dialogflow_v2beta1_DetectIntentResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_google_cloud_dialogflow_v2beta1_DetectIntentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_DetectIntentResponse_descriptor,
- new java.lang.String[] { "ResponseId", "QueryResult", "WebhookStatus", });
+ new java.lang.String[] { "ResponseId", "QueryResult", "AlternativeQueryResults", "WebhookStatus", "OutputAudio", "OutputAudioConfig", });
internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_QueryParameters_descriptor,
- new java.lang.String[] { "TimeZone", "GeoLocation", "Contexts", "ResetContexts", "SessionEntityTypes", "Payload", });
+ new java.lang.String[] { "TimeZone", "GeoLocation", "Contexts", "ResetContexts", "SessionEntityTypes", "Payload", "KnowledgeBaseNames", "SentimentAnalysisRequestConfig", });
internal_static_google_cloud_dialogflow_v2beta1_QueryInput_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_google_cloud_dialogflow_v2beta1_QueryInput_fieldAccessorTable = new
@@ -222,49 +286,80 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
internal_static_google_cloud_dialogflow_v2beta1_QueryResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_QueryResult_descriptor,
- new java.lang.String[] { "QueryText", "LanguageCode", "SpeechRecognitionConfidence", "Action", "Parameters", "AllRequiredParamsPresent", "FulfillmentText", "FulfillmentMessages", "WebhookSource", "WebhookPayload", "OutputContexts", "Intent", "IntentDetectionConfidence", "DiagnosticInfo", });
- internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentRequest_descriptor =
+ new java.lang.String[] { "QueryText", "LanguageCode", "SpeechRecognitionConfidence", "Action", "Parameters", "AllRequiredParamsPresent", "FulfillmentText", "FulfillmentMessages", "WebhookSource", "WebhookPayload", "OutputContexts", "Intent", "IntentDetectionConfidence", "DiagnosticInfo", "SentimentAnalysisResult", "KnowledgeAnswers", });
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor =
getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor,
+ new java.lang.String[] { "Answers", });
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAnswers_Answer_descriptor,
+ new java.lang.String[] { "Source", "FaqQuestion", "Answer", "MatchConfidenceLevel", "MatchConfidence", });
+ internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentRequest_descriptor,
- new java.lang.String[] { "Session", "QueryParams", "QueryInput", "SingleUtterance", "InputAudio", });
+ new java.lang.String[] { "Session", "QueryParams", "QueryInput", "SingleUtterance", "OutputAudioConfig", "InputAudio", });
internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentResponse_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_StreamingDetectIntentResponse_descriptor,
- new java.lang.String[] { "ResponseId", "RecognitionResult", "QueryResult", "WebhookStatus", });
+ new java.lang.String[] { "ResponseId", "RecognitionResult", "QueryResult", "AlternativeQueryResults", "WebhookStatus", "OutputAudio", "OutputAudioConfig", });
internal_static_google_cloud_dialogflow_v2beta1_StreamingRecognitionResult_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_dialogflow_v2beta1_StreamingRecognitionResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_StreamingRecognitionResult_descriptor,
new java.lang.String[] { "MessageType", "Transcript", "IsFinal", "Confidence", });
internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor,
- new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "LanguageCode", "PhraseHints", });
+ new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "LanguageCode", "PhraseHints", "Model", });
internal_static_google_cloud_dialogflow_v2beta1_TextInput_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_dialogflow_v2beta1_TextInput_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_TextInput_descriptor,
new java.lang.String[] { "Text", "LanguageCode", });
internal_static_google_cloud_dialogflow_v2beta1_EventInput_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_dialogflow_v2beta1_EventInput_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_EventInput_descriptor,
new java.lang.String[] { "Name", "Parameters", "LanguageCode", });
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_descriptor,
+ new java.lang.String[] { "AnalyzeQueryTextSentiment", });
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_descriptor,
+ new java.lang.String[] { "QueryTextSentiment", });
+ internal_static_google_cloud_dialogflow_v2beta1_Sentiment_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_cloud_dialogflow_v2beta1_Sentiment_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2beta1_Sentiment_descriptor,
+ new java.lang.String[] { "Score", "Magnitude", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor();
com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor();
com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor();
com.google.cloud.dialogflow.v2beta1.SessionEntityTypeProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java
new file mode 100644
index 000000000000..718bf8285da1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java
@@ -0,0 +1,160 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/audio_config.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Gender of the voice as described in + * [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). + *+ * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.SsmlVoiceGender} + */ +public enum SsmlVoiceGender + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+ * An unspecified gender, which means that the client doesn't care which + * gender the selected voice will have. + *+ * + *
SSML_VOICE_GENDER_UNSPECIFIED = 0;
+ */
+ SSML_VOICE_GENDER_UNSPECIFIED(0),
+ /**
+ * + * A male voice. + *+ * + *
SSML_VOICE_GENDER_MALE = 1;
+ */
+ SSML_VOICE_GENDER_MALE(1),
+ /**
+ * + * A female voice. + *+ * + *
SSML_VOICE_GENDER_FEMALE = 2;
+ */
+ SSML_VOICE_GENDER_FEMALE(2),
+ /**
+ * + * A gender-neutral voice. + *+ * + *
SSML_VOICE_GENDER_NEUTRAL = 3;
+ */
+ SSML_VOICE_GENDER_NEUTRAL(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * + * An unspecified gender, which means that the client doesn't care which + * gender the selected voice will have. + *+ * + *
SSML_VOICE_GENDER_UNSPECIFIED = 0;
+ */
+ public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE = 0;
+ /**
+ * + * A male voice. + *+ * + *
SSML_VOICE_GENDER_MALE = 1;
+ */
+ public static final int SSML_VOICE_GENDER_MALE_VALUE = 1;
+ /**
+ * + * A female voice. + *+ * + *
SSML_VOICE_GENDER_FEMALE = 2;
+ */
+ public static final int SSML_VOICE_GENDER_FEMALE_VALUE = 2;
+ /**
+ * + * A gender-neutral voice. + *+ * + *
SSML_VOICE_GENDER_NEUTRAL = 3;
+ */
+ public static final int SSML_VOICE_GENDER_NEUTRAL_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SsmlVoiceGender valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SsmlVoiceGender forNumber(int value) {
+ switch (value) {
+ case 0: return SSML_VOICE_GENDER_UNSPECIFIED;
+ case 1: return SSML_VOICE_GENDER_MALE;
+ case 2: return SSML_VOICE_GENDER_FEMALE;
+ case 3: return SSML_VOICE_GENDER_NEUTRAL;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapstring session = 1;
@@ -166,13 +180,12 @@ public java.lang.String getSession() {
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -289,6 +302,45 @@ public boolean getSingleUtterance() {
return singleUtterance_;
}
+ public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 5;
+ private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_;
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfig_ != null;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
public static final int INPUT_AUDIO_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString inputAudio_;
/**
@@ -328,6 +380,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (singleUtterance_ != false) {
output.writeBool(4, singleUtterance_);
}
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(5, getOutputAudioConfig());
+ }
if (!inputAudio_.isEmpty()) {
output.writeBytes(6, inputAudio_);
}
@@ -354,6 +409,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, singleUtterance_);
}
+ if (outputAudioConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getOutputAudioConfig());
+ }
if (!inputAudio_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, inputAudio_);
@@ -388,6 +447,11 @@ public boolean equals(final java.lang.Object obj) {
}
result = result && (getSingleUtterance()
== other.getSingleUtterance());
+ result = result && (hasOutputAudioConfig() == other.hasOutputAudioConfig());
+ if (hasOutputAudioConfig()) {
+ result = result && getOutputAudioConfig()
+ .equals(other.getOutputAudioConfig());
+ }
result = result && getInputAudio()
.equals(other.getInputAudio());
result = result && unknownFields.equals(other.unknownFields);
@@ -414,6 +478,10 @@ public int hashCode() {
hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSingleUtterance());
+ if (hasOutputAudioConfig()) {
+ hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputAudioConfig().hashCode();
+ }
hash = (37 * hash) + INPUT_AUDIO_FIELD_NUMBER;
hash = (53 * hash) + getInputAudio().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
@@ -515,7 +583,9 @@ protected Builder newBuilderForType(
* `StreamingDetectIntent` method.
* Multiple request messages should be sent in order:
* 1. The first message must contain `session`, `query_input` plus optionally
- * `query_params` and/or `single_utterance`. The message must not contain `input_audio`.
+ * `query_params` and/or `single_utterance`. If the client wants to receive
+ * an audio response, it should also contain `output_audio_config`.
+ * The message must not contain `input_audio`.
* 2. If `query_input` was set to a streaming input audio config,
* all subsequent messages must contain only `input_audio`.
* Otherwise, finish the request stream.
@@ -572,6 +642,12 @@ public Builder clear() {
}
singleUtterance_ = false;
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
inputAudio_ = com.google.protobuf.ByteString.EMPTY;
return this;
@@ -608,6 +684,11 @@ public com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest buildPar
result.queryInput_ = queryInputBuilder_.build();
}
result.singleUtterance_ = singleUtterance_;
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
result.inputAudio_ = inputAudio_;
onBuilt();
return result;
@@ -663,6 +744,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.StreamingDetectInte
if (other.getSingleUtterance() != false) {
setSingleUtterance(other.getSingleUtterance());
}
+ if (other.hasOutputAudioConfig()) {
+ mergeOutputAudioConfig(other.getOutputAudioConfig());
+ }
if (other.getInputAudio() != com.google.protobuf.ByteString.EMPTY) {
setInputAudio(other.getInputAudio());
}
@@ -700,13 +784,12 @@ public Builder mergeFrom(
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -729,13 +812,12 @@ public java.lang.String getSession() {
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -759,13 +841,12 @@ public java.lang.String getSession() {
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -786,13 +867,12 @@ public Builder setSession(
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -809,13 +889,12 @@ public Builder clearSession() {
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -1233,6 +1312,177 @@ public Builder clearSingleUtterance() {
return this;
}
+ private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder> outputAudioConfigBuilder_;
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ } else {
+ return outputAudioConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputAudioConfig_ = value;
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder builderForValue) {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.newBuilder(outputAudioConfig_).mergeFrom(value).buildPartial();
+ } else {
+ outputAudioConfig_ = value;
+ }
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder clearOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ onChanged();
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() {
+
+ onChanged();
+ return getOutputAudioConfigFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null ?
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ }
+ }
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>(
+ getOutputAudioConfig(),
+ getParentForChildren(),
+ isClean());
+ outputAudioConfig_ = null;
+ }
+ return outputAudioConfigBuilder_;
+ }
+
private com.google.protobuf.ByteString inputAudio_ = com.google.protobuf.ByteString.EMPTY;
/**
* diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java index 7a9b17788fde..fc6ef8a1b600 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java @@ -13,13 +13,12 @@ public interface StreamingDetectIntentRequestOrBuilder extends * Format of the session name: * `projects/<Project ID>/agent/sessions/<Session ID>`, or * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>`. Note: Environments and users are under - * construction and will be available soon. If <Environment ID> is not - * specified, we assume default 'draft' environment. If <User ID> is not - * specified, we are using "-". It’s up to the API caller to choose an - * appropriate <Session ID>. and <User Id>. They can be a random numbers or - * some type of user and session identifiers (preferably hashed). The length - * of the <Session ID> and <User ID> must not exceed 36 characters. + * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume + * default 'draft' environment. If `User ID` is not specified, we are using + * "-". It’s up to the API caller to choose an appropriate `Session ID` and + * `User Id`. They can be a random numbers or some type of user and session + * identifiers (preferably hashed). The length of the `Session ID` and + * `User ID` must not exceed 36 characters. ** *
string session = 1;
@@ -31,13 +30,12 @@ public interface StreamingDetectIntentRequestOrBuilder extends
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`, or
* `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
- * ID>/sessions/<Session ID>`. Note: Environments and users are under
- * construction and will be available soon. If <Environment ID> is not
- * specified, we assume default 'draft' environment. If <User ID> is not
- * specified, we are using "-". It’s up to the API caller to choose an
- * appropriate <Session ID>. and <User Id>. They can be a random numbers or
- * some type of user and session identifiers (preferably hashed). The length
- * of the <Session ID> and <User ID> must not exceed 36 characters.
+ * ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
+ * default 'draft' environment. If `User ID` is not specified, we are using
+ * "-". It’s up to the API caller to choose an appropriate `Session ID` and
+ * `User Id`. They can be a random numbers or some type of user and session
+ * identifiers (preferably hashed). The length of the `Session ID` and
+ * `User ID` must not exceed 36 characters.
*
*
* string session = 1;
@@ -123,6 +121,37 @@ public interface StreamingDetectIntentRequestOrBuilder extends
*/
boolean getSingleUtterance();
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ boolean hasOutputAudioConfig();
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig();
+ /**
+ * + * Optional. Instructs the speech synthesizer how to generate the output + * audio. If this field is not set and agent-level speech synthesizer is not + * configured, no output audio is generated. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 5;
+ */
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
+
/**
* * Optional. The input audio content to be recognized. Must be sent if diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java index afa9054dde97..b03f28215385 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java @@ -12,8 +12,12 @@ * contain `recognition_result`. Each `recognition_result` represents a more * complete transcript of what the user said. The last `recognition_result` * has `is_final` set to `true`. - * 2. The next message contains `response_id`, `query_result` - * and optionally `webhook_status` if a WebHook was called. + * 2. The next message contains `response_id`, `query_result`, + * `alternative_query_results` and optionally `webhook_status` if a WebHook + * was called. + * 3. If `output_audio_config` was specified in the request or agent-level + * speech synthesizer is configured, all subsequent messages contain + * `output_audio` and `output_audio_config`. ** * Protobuf type {@code google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse} @@ -29,6 +33,8 @@ private StreamingDetectIntentResponse(com.google.protobuf.GeneratedMessageV3.Bui } private StreamingDetectIntentResponse() { responseId_ = ""; + alternativeQueryResults_ = java.util.Collections.emptyList(); + outputAudio_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -107,6 +113,33 @@ private StreamingDetectIntentResponse( break; } + case 42: { + + outputAudio_ = input.readBytes(); + break; + } + case 50: { + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder subBuilder = null; + if (outputAudioConfig_ != null) { + subBuilder = outputAudioConfig_.toBuilder(); + } + outputAudioConfig_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputAudioConfig_); + outputAudioConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + alternativeQueryResults_ = new java.util.ArrayList
- * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -222,7 +260,8 @@ public boolean hasQueryResult() {
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -232,7 +271,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult() {
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -241,6 +281,91 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr
return getQueryResult();
}
+ public static final int ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER = 7;
+ private java.util.List+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public java.util.List+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>
+ getAlternativeQueryResultsOrBuilderList() {
+ return alternativeQueryResults_;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public int getAlternativeQueryResultsCount() {
+ return alternativeQueryResults_.size();
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index) {
+ return alternativeQueryResults_.get(index);
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(
+ int index) {
+ return alternativeQueryResults_.get(index);
+ }
+
public static final int WEBHOOK_STATUS_FIELD_NUMBER = 4;
private com.google.rpc.Status webhookStatus_;
/**
@@ -274,6 +399,58 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
return getWebhookStatus();
}
+ public static final int OUTPUT_AUDIO_FIELD_NUMBER = 5;
+ private com.google.protobuf.ByteString outputAudio_;
+ /**
+ * + * The audio data bytes encoded as specified in the request. + *+ * + *
bytes output_audio = 5;
+ */
+ public com.google.protobuf.ByteString getOutputAudio() {
+ return outputAudio_;
+ }
+
+ public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_;
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfig_ != null;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -298,6 +475,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (webhookStatus_ != null) {
output.writeMessage(4, getWebhookStatus());
}
+ if (!outputAudio_.isEmpty()) {
+ output.writeBytes(5, outputAudio_);
+ }
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(6, getOutputAudioConfig());
+ }
+ for (int i = 0; i < alternativeQueryResults_.size(); i++) {
+ output.writeMessage(7, alternativeQueryResults_.get(i));
+ }
unknownFields.writeTo(output);
}
@@ -321,6 +507,18 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWebhookStatus());
}
+ if (!outputAudio_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, outputAudio_);
+ }
+ if (outputAudioConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getOutputAudioConfig());
+ }
+ for (int i = 0; i < alternativeQueryResults_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, alternativeQueryResults_.get(i));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -349,11 +547,20 @@ public boolean equals(final java.lang.Object obj) {
result = result && getQueryResult()
.equals(other.getQueryResult());
}
+ result = result && getAlternativeQueryResultsList()
+ .equals(other.getAlternativeQueryResultsList());
result = result && (hasWebhookStatus() == other.hasWebhookStatus());
if (hasWebhookStatus()) {
result = result && getWebhookStatus()
.equals(other.getWebhookStatus());
}
+ result = result && getOutputAudio()
+ .equals(other.getOutputAudio());
+ result = result && (hasOutputAudioConfig() == other.hasOutputAudioConfig());
+ if (hasOutputAudioConfig()) {
+ result = result && getOutputAudioConfig()
+ .equals(other.getOutputAudioConfig());
+ }
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@@ -375,10 +582,20 @@ public int hashCode() {
hash = (37 * hash) + QUERY_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getQueryResult().hashCode();
}
+ if (getAlternativeQueryResultsCount() > 0) {
+ hash = (37 * hash) + ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAlternativeQueryResultsList().hashCode();
+ }
if (hasWebhookStatus()) {
hash = (37 * hash) + WEBHOOK_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getWebhookStatus().hashCode();
}
+ hash = (37 * hash) + OUTPUT_AUDIO_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputAudio().hashCode();
+ if (hasOutputAudioConfig()) {
+ hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputAudioConfig().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -481,8 +698,12 @@ protected Builder newBuilderForType(
* contain `recognition_result`. Each `recognition_result` represents a more
* complete transcript of what the user said. The last `recognition_result`
* has `is_final` set to `true`.
- * 2. The next message contains `response_id`, `query_result`
- * and optionally `webhook_status` if a WebHook was called.
+ * 2. The next message contains `response_id`, `query_result`,
+ * `alternative_query_results` and optionally `webhook_status` if a WebHook
+ * was called.
+ * 3. If `output_audio_config` was specified in the request or agent-level
+ * speech synthesizer is configured, all subsequent messages contain
+ * `output_audio` and `output_audio_config`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse}
@@ -516,6 +737,7 @@ private Builder(
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
+ getAlternativeQueryResultsFieldBuilder();
}
}
public Builder clear() {
@@ -534,12 +756,26 @@ public Builder clear() {
queryResult_ = null;
queryResultBuilder_ = null;
}
+ if (alternativeQueryResultsBuilder_ == null) {
+ alternativeQueryResults_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ alternativeQueryResultsBuilder_.clear();
+ }
if (webhookStatusBuilder_ == null) {
webhookStatus_ = null;
} else {
webhookStatus_ = null;
webhookStatusBuilder_ = null;
}
+ outputAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
return this;
}
@@ -562,6 +798,8 @@ public com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse build()
public com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse buildPartial() {
com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse result = new com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
result.responseId_ = responseId_;
if (recognitionResultBuilder_ == null) {
result.recognitionResult_ = recognitionResult_;
@@ -573,11 +811,27 @@ public com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse buildPa
} else {
result.queryResult_ = queryResultBuilder_.build();
}
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ alternativeQueryResults_ = java.util.Collections.unmodifiableList(alternativeQueryResults_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.alternativeQueryResults_ = alternativeQueryResults_;
+ } else {
+ result.alternativeQueryResults_ = alternativeQueryResultsBuilder_.build();
+ }
if (webhookStatusBuilder_ == null) {
result.webhookStatus_ = webhookStatus_;
} else {
result.webhookStatus_ = webhookStatusBuilder_.build();
}
+ result.outputAudio_ = outputAudio_;
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@@ -629,9 +883,41 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.StreamingDetectInte
if (other.hasQueryResult()) {
mergeQueryResult(other.getQueryResult());
}
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (!other.alternativeQueryResults_.isEmpty()) {
+ if (alternativeQueryResults_.isEmpty()) {
+ alternativeQueryResults_ = other.alternativeQueryResults_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.addAll(other.alternativeQueryResults_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.alternativeQueryResults_.isEmpty()) {
+ if (alternativeQueryResultsBuilder_.isEmpty()) {
+ alternativeQueryResultsBuilder_.dispose();
+ alternativeQueryResultsBuilder_ = null;
+ alternativeQueryResults_ = other.alternativeQueryResults_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ alternativeQueryResultsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getAlternativeQueryResultsFieldBuilder() : null;
+ } else {
+ alternativeQueryResultsBuilder_.addAllMessages(other.alternativeQueryResults_);
+ }
+ }
+ }
if (other.hasWebhookStatus()) {
mergeWebhookStatus(other.getWebhookStatus());
}
+ if (other.getOutputAudio() != com.google.protobuf.ByteString.EMPTY) {
+ setOutputAudio(other.getOutputAudio());
+ }
+ if (other.hasOutputAudioConfig()) {
+ mergeOutputAudioConfig(other.getOutputAudioConfig());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -658,6 +944,7 @@ public Builder mergeFrom(
}
return this;
}
+ private int bitField0_;
private java.lang.Object responseId_ = "";
/**
@@ -911,7 +1198,8 @@ public com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResultOrBuilder g
com.google.cloud.dialogflow.v2beta1.QueryResult, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder, com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder> queryResultBuilder_;
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -921,7 +1209,8 @@ public boolean hasQueryResult() {
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -935,7 +1224,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult() {
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -955,7 +1245,8 @@ public Builder setQueryResult(com.google.cloud.dialogflow.v2beta1.QueryResult va
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -973,7 +1264,8 @@ public Builder setQueryResult(
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -995,7 +1287,8 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.v2beta1.QueryResult
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -1013,7 +1306,8 @@ public Builder clearQueryResult() {
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -1025,7 +1319,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getQueryResultBui
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -1040,7 +1335,8 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr
}
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -1059,6 +1355,426 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr
return queryResultBuilder_;
}
+ private java.util.List+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public java.util.List+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public int getAlternativeQueryResultsCount() {
+ if (alternativeQueryResultsBuilder_ == null) {
+ return alternativeQueryResults_.size();
+ } else {
+ return alternativeQueryResultsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ return alternativeQueryResults_.get(index);
+ } else {
+ return alternativeQueryResultsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder setAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult value) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.set(index, value);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder setAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder addAlternativeQueryResults(com.google.cloud.dialogflow.v2beta1.QueryResult value) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(value);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder addAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult value) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(index, value);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder addAlternativeQueryResults(
+ com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(builderForValue.build());
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder addAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder addAllAlternativeQueryResults(
+ java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.QueryResult> values) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, alternativeQueryResults_);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder clearAlternativeQueryResults() {
+ if (alternativeQueryResultsBuilder_ == null) {
+ alternativeQueryResults_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public Builder removeAlternativeQueryResults(int index) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.remove(index);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getAlternativeQueryResultsBuilder(
+ int index) {
+ return getAlternativeQueryResultsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(
+ int index) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ return alternativeQueryResults_.get(index); } else {
+ return alternativeQueryResultsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>
+ getAlternativeQueryResultsOrBuilderList() {
+ if (alternativeQueryResultsBuilder_ != null) {
+ return alternativeQueryResultsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(alternativeQueryResults_);
+ }
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQueryResultsBuilder() {
+ return getAlternativeQueryResultsFieldBuilder().addBuilder(
+ com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance());
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQueryResultsBuilder(
+ int index) {
+ return getAlternativeQueryResultsFieldBuilder().addBuilder(
+ index, com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance());
+ }
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ public java.util.List+ * The audio data bytes encoded as specified in the request. + *+ * + *
bytes output_audio = 5;
+ */
+ public com.google.protobuf.ByteString getOutputAudio() {
+ return outputAudio_;
+ }
+ /**
+ * + * The audio data bytes encoded as specified in the request. + *+ * + *
bytes output_audio = 5;
+ */
+ public Builder setOutputAudio(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ outputAudio_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The audio data bytes encoded as specified in the request. + *+ * + *
bytes output_audio = 5;
+ */
+ public Builder clearOutputAudio() {
+
+ outputAudio_ = getDefaultInstance().getOutputAudio();
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2beta1.OutputAudioConfig outputAudioConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder> outputAudioConfigBuilder_;
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ } else {
+ return outputAudioConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputAudioConfig_ = value;
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder builderForValue) {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2beta1.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.newBuilder(outputAudioConfig_).mergeFrom(value).buildPartial();
+ } else {
+ outputAudioConfig_ = value;
+ }
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder clearOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ onChanged();
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() {
+
+ onChanged();
+ return getOutputAudioConfigFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null ?
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
+ }
+ }
+ /**
+ * + * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2beta1.OutputAudioConfig, com.google.cloud.dialogflow.v2beta1.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder>(
+ getOutputAudioConfig(),
+ getParentForChildren(),
+ isClean());
+ outputAudioConfig_ = null;
+ }
+ return outputAudioConfigBuilder_;
+ }
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java
index ccbd13762425..7ca610e951d6 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java
@@ -54,7 +54,8 @@ public interface StreamingDetectIntentResponseOrBuilder extends
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -62,7 +63,8 @@ public interface StreamingDetectIntentResponseOrBuilder extends
boolean hasQueryResult();
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
@@ -70,13 +72,88 @@ public interface StreamingDetectIntentResponseOrBuilder extends
com.google.cloud.dialogflow.v2beta1.QueryResult getQueryResult();
/**
* - * The result of the conversational query or event processing. + * The selected results of the conversational query or event processing. + * See `alternative_query_results` for additional potential results. ** *
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;
*/
com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOrBuilder();
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ java.util.List+ * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index);
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ int getAlternativeQueryResultsCount();
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>
+ getAlternativeQueryResultsOrBuilderList();
+ /**
+ * + * If Knowledge Connectors are enabled, there could be more than one result + * returned for a given query or event and this field will contain all results + * except for the top one which is captured in query_result. The alternative + * results are ordered by decreasing + * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are + * disabled this field will be empty at which point those additional results + * will be surfaced here. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;
+ */
+ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(
+ int index);
+
/**
* * Specifies the status of the webhook request. @@ -101,4 +178,44 @@ public interface StreamingDetectIntentResponseOrBuilder extends ** *.google.rpc.Status webhook_status = 4;
*/ com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder(); + + /** + *+ * The audio data bytes encoded as specified in the request. + *+ * + *bytes output_audio = 5;
+ */ + com.google.protobuf.ByteString getOutputAudio(); + + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + boolean hasOutputAudioConfig(); + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfig(); + /** + *+ * Instructs the speech synthesizer how to generate the output audio. This + * field is populated from the agent-level speech synthesizer configuration, + * if enabled. + *+ * + *.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;
+ */ + com.google.cloud.dialogflow.v2beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java new file mode 100644 index 000000000000..6948be0ea398 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java @@ -0,0 +1,1158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/audio_config.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + *+ * Configuration of how speech should be synthesized. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig} + */ +public final class SynthesizeSpeechConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) + SynthesizeSpeechConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SynthesizeSpeechConfig.newBuilder() to construct. + private SynthesizeSpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private SynthesizeSpeechConfig() { + speakingRate_ = 0D; + pitch_ = 0D; + volumeGainDb_ = 0D; + effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SynthesizeSpeechConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + speakingRate_ = input.readDouble(); + break; + } + case 17: { + + pitch_ = input.readDouble(); + break; + } + case 25: { + + volumeGainDb_ = input.readDouble(); + break; + } + case 34: { + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder subBuilder = null; + if (voice_ != null) { + subBuilder = voice_.toBuilder(); + } + voice_ = input.readMessage(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(voice_); + voice_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + effectsProfileId_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.class, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder.class); + } + + private int bitField0_; + public static final int SPEAKING_RATE_FIELD_NUMBER = 1; + private double speakingRate_; + /** + *+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + *+ * + *double speaking_rate = 1;
+ */ + public double getSpeakingRate() { + return speakingRate_; + } + + public static final int PITCH_FIELD_NUMBER = 2; + private double pitch_; + /** + *+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + *+ * + *double pitch = 2;
+ */ + public double getPitch() { + return pitch_; + } + + public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 3; + private double volumeGainDb_; + /** + *+ * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + *+ * + *double volume_gain_db = 3;
+ */ + public double getVolumeGainDb() { + return volumeGainDb_; + } + + public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList effectsProfileId_; + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public com.google.protobuf.ProtocolStringList + getEffectsProfileIdList() { + return effectsProfileId_; + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public int getEffectsProfileIdCount() { + return effectsProfileId_.size(); + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public java.lang.String getEffectsProfileId(int index) { + return effectsProfileId_.get(index); + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index) { + return effectsProfileId_.getByteString(index); + } + + public static final int VOICE_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice_; + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public boolean hasVoice() { + return voice_ != null; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams getVoice() { + return voice_ == null ? com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.getDefaultInstance() : voice_; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { + return getVoice(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (speakingRate_ != 0D) { + output.writeDouble(1, speakingRate_); + } + if (pitch_ != 0D) { + output.writeDouble(2, pitch_); + } + if (volumeGainDb_ != 0D) { + output.writeDouble(3, volumeGainDb_); + } + if (voice_ != null) { + output.writeMessage(4, getVoice()); + } + for (int i = 0; i < effectsProfileId_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, effectsProfileId_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (speakingRate_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, speakingRate_); + } + if (pitch_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, pitch_); + } + if (volumeGainDb_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, volumeGainDb_); + } + if (voice_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getVoice()); + } + { + int dataSize = 0; + for (int i = 0; i < effectsProfileId_.size(); i++) { + dataSize += computeStringSizeNoTag(effectsProfileId_.getRaw(i)); + } + size += dataSize; + size += 1 * getEffectsProfileIdList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig other = (com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getSpeakingRate()) + == java.lang.Double.doubleToLongBits( + other.getSpeakingRate())); + result = result && ( + java.lang.Double.doubleToLongBits(getPitch()) + == java.lang.Double.doubleToLongBits( + other.getPitch())); + result = result && ( + java.lang.Double.doubleToLongBits(getVolumeGainDb()) + == java.lang.Double.doubleToLongBits( + other.getVolumeGainDb())); + result = result && getEffectsProfileIdList() + .equals(other.getEffectsProfileIdList()); + result = result && (hasVoice() == other.hasVoice()); + if (hasVoice()) { + result = result && getVoice() + .equals(other.getVoice()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = (37 * hash) + PITCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPitch())); + hash = (37 * hash) + VOLUME_GAIN_DB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolumeGainDb())); + if (getEffectsProfileIdCount() > 0) { + hash = (37 * hash) + EFFECTS_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEffectsProfileIdList().hashCode(); + } + if (hasVoice()) { + hash = (37 * hash) + VOICE_FIELD_NUMBER; + hash = (53 * hash) + getVoice().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *+ * Configuration of how speech should be synthesized. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builderimplements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.class, com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + speakingRate_ = 0D; + + pitch_ = 0D; + + volumeGainDb_ = 0D; + + effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (voiceBuilder_ == null) { + voice_ = null; + } else { + voice_ = null; + voiceBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor; + } + + public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.getDefaultInstance(); + } + + public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig build() { + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig result = new com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.speakingRate_ = speakingRate_; + result.pitch_ = pitch_; + result.volumeGainDb_ = volumeGainDb_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.effectsProfileId_ = effectsProfileId_; + if (voiceBuilder_ == null) { + result.voice_ = voice_; + } else { + result.voice_ = voiceBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig other) { + if (other == com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.getDefaultInstance()) return this; + if (other.getSpeakingRate() != 0D) { + setSpeakingRate(other.getSpeakingRate()); + } + if (other.getPitch() != 0D) { + setPitch(other.getPitch()); + } + if (other.getVolumeGainDb() != 0D) { + setVolumeGainDb(other.getVolumeGainDb()); + } + if (!other.effectsProfileId_.isEmpty()) { + if (effectsProfileId_.isEmpty()) { + effectsProfileId_ = other.effectsProfileId_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEffectsProfileIdIsMutable(); + effectsProfileId_.addAll(other.effectsProfileId_); + } + onChanged(); + } + if (other.hasVoice()) { + mergeVoice(other.getVoice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private double speakingRate_ ; + /** + * + * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + *+ * + *double speaking_rate = 1;
+ */ + public double getSpeakingRate() { + return speakingRate_; + } + /** + *+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + *+ * + *double speaking_rate = 1;
+ */ + public Builder setSpeakingRate(double value) { + + speakingRate_ = value; + onChanged(); + return this; + } + /** + *+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + *+ * + *double speaking_rate = 1;
+ */ + public Builder clearSpeakingRate() { + + speakingRate_ = 0D; + onChanged(); + return this; + } + + private double pitch_ ; + /** + *+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + *+ * + *double pitch = 2;
+ */ + public double getPitch() { + return pitch_; + } + /** + *+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + *+ * + *double pitch = 2;
+ */ + public Builder setPitch(double value) { + + pitch_ = value; + onChanged(); + return this; + } + /** + *+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + *+ * + *double pitch = 2;
+ */ + public Builder clearPitch() { + + pitch_ = 0D; + onChanged(); + return this; + } + + private double volumeGainDb_ ; + /** + *+ * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + *+ * + *double volume_gain_db = 3;
+ */ + public double getVolumeGainDb() { + return volumeGainDb_; + } + /** + *+ * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + *+ * + *double volume_gain_db = 3;
+ */ + public Builder setVolumeGainDb(double value) { + + volumeGainDb_ = value; + onChanged(); + return this; + } + /** + *+ * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + *+ * + *double volume_gain_db = 3;
+ */ + public Builder clearVolumeGainDb() { + + volumeGainDb_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEffectsProfileIdIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); + bitField0_ |= 0x00000008; + } + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public com.google.protobuf.ProtocolStringList + getEffectsProfileIdList() { + return effectsProfileId_.getUnmodifiableView(); + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public int getEffectsProfileIdCount() { + return effectsProfileId_.size(); + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public java.lang.String getEffectsProfileId(int index) { + return effectsProfileId_.get(index); + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index) { + return effectsProfileId_.getByteString(index); + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public Builder setEffectsProfileId( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); + effectsProfileId_.set(index, value); + onChanged(); + return this; + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public Builder addEffectsProfileId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); + effectsProfileId_.add(value); + onChanged(); + return this; + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public Builder addAllEffectsProfileId( + java.lang.Iterablevalues) { + ensureEffectsProfileIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectsProfileId_); + onChanged(); + return this; + } + /** + * + * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public Builder clearEffectsProfileId() { + effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + public Builder addEffectsProfileIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEffectsProfileIdIsMutable(); + effectsProfileId_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder> voiceBuilder_; + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public boolean hasVoice() { + return voiceBuilder_ != null || voice_ != null; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams getVoice() { + if (voiceBuilder_ == null) { + return voice_ == null ? com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.getDefaultInstance() : voice_; + } else { + return voiceBuilder_.getMessage(); + } + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public Builder setVoice(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams value) { + if (voiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voice_ = value; + onChanged(); + } else { + voiceBuilder_.setMessage(value); + } + + return this; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public Builder setVoice( + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder builderForValue) { + if (voiceBuilder_ == null) { + voice_ = builderForValue.build(); + onChanged(); + } else { + voiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public Builder mergeVoice(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams value) { + if (voiceBuilder_ == null) { + if (voice_ != null) { + voice_ = + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.newBuilder(voice_).mergeFrom(value).buildPartial(); + } else { + voice_ = value; + } + onChanged(); + } else { + voiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public Builder clearVoice() { + if (voiceBuilder_ == null) { + voice_ = null; + onChanged(); + } else { + voice_ = null; + voiceBuilder_ = null; + } + + return this; + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder getVoiceBuilder() { + + onChanged(); + return getVoiceFieldBuilder().getBuilder(); + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { + if (voiceBuilder_ != null) { + return voiceBuilder_.getMessageOrBuilder(); + } else { + return voice_ == null ? + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.getDefaultInstance() : voice_; + } + } + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder> + getVoiceFieldBuilder() { + if (voiceBuilder_ == null) { + voiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder>( + getVoice(), + getParentForChildren(), + isClean()); + voice_ = null; + } + return voiceBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) + private static final com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser () { + public SynthesizeSpeechConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java new file mode 100644 index 000000000000..f2f3b1c0be3b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/audio_config.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface SynthesizeSpeechConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + * native speed supported by the specific voice. 2.0 is twice as fast, and + * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + * other values < 0.25 or > 4.0 will return an error. + *+ * + *double speaking_rate = 1;
+ */ + double getSpeakingRate(); + + /** + *+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + * semitones from the original pitch. -20 means decrease 20 semitones from the + * original pitch. + *+ * + *double pitch = 2;
+ */ + double getPitch(); + + /** + *+ * Optional. Volume gain (in dB) of the normal native volume supported by the + * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + * will play at approximately half the amplitude of the normal native signal + * amplitude. A value of +6.0 (dB) will play at approximately twice the + * amplitude of the normal native signal amplitude. We strongly recommend not + * to exceed +10 (dB) as there's usually no effective increase in loudness for + * any value greater than that. + *+ * + *double volume_gain_db = 3;
+ */ + double getVolumeGainDb(); + + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + java.util.List+ getEffectsProfileIdList(); + /** + * + * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + int getEffectsProfileIdCount(); + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + java.lang.String getEffectsProfileId(int index); + /** + *+ * Optional. An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top of + * each other in the order they are given. + *+ * + *repeated string effects_profile_id = 5;
+ */ + com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index); + + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + boolean hasVoice(); + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams getVoice(); + /** + *+ * Optional. The desired voice of the synthesized audio. + *+ * + *.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
+ */ + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java index 4ab91ac3e97d..f99f8e2a81d7 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java @@ -111,10 +111,8 @@ private UpdateSessionEntityTypeRequest( * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type * Display Name>` or `projects/<Project ID>/agent/environments/<Environment * ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display - * Name>`. - * Note: Environments and users are under construction and will be available - * soon. If <Environment ID> is not specified, we assume default 'draft' - * environment. If <User ID> is not specified, we assume default '-' user. + * Name>`. If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. *
.google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -128,10 +126,8 @@ public boolean hasSessionEntityType() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -145,10 +141,8 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -529,10 +523,8 @@ public Builder mergeFrom(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -546,10 +538,8 @@ public boolean hasSessionEntityType() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -567,10 +557,8 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -594,10 +582,8 @@ public Builder setSessionEntityType(com.google.cloud.dialogflow.v2beta1.SessionE
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -619,10 +605,8 @@ public Builder setSessionEntityType(
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -648,10 +632,8 @@ public Builder mergeSessionEntityType(com.google.cloud.dialogflow.v2beta1.Sessio
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -673,10 +655,8 @@ public Builder clearSessionEntityType() {
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -692,10 +672,8 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder getSessionE
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -714,10 +692,8 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSession
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java
index 66048a2fd8dc..af47f9774259 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java
@@ -13,10 +13,8 @@ public interface UpdateSessionEntityTypeRequestOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -28,10 +26,8 @@ public interface UpdateSessionEntityTypeRequestOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
@@ -43,10 +39,8 @@ public interface UpdateSessionEntityTypeRequestOrBuilder extends
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>` or `projects/<Project ID>/agent/environments/<Environment
* ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
- * Name>`.
- * Note: Environments and users are under construction and will be available
- * soon. If <Environment ID> is not specified, we assume default 'draft'
- * environment. If <User ID> is not specified, we assume default '-' user.
+ * Name>`. If `Environment ID` is not specified, we assume default 'draft'
+ * environment. If `User ID` is not specified, we assume default '-' user.
*
*
* .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_type = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java
new file mode 100644
index 000000000000..2d521b9a543e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java
@@ -0,0 +1,698 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2beta1/audio_config.proto
+
+package com.google.cloud.dialogflow.v2beta1;
+
+/**
+ * + * Description of which voice to use for speech synthesis. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.VoiceSelectionParams} + */ +public final class VoiceSelectionParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.VoiceSelectionParams) + VoiceSelectionParamsOrBuilder { +private static final long serialVersionUID = 0L; + // Use VoiceSelectionParams.newBuilder() to construct. + private VoiceSelectionParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private VoiceSelectionParams() { + name_ = ""; + ssmlGender_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VoiceSelectionParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + ssmlGender_ = rawValue; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.class, com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SSML_GENDER_FIELD_NUMBER = 2;
+ private int ssmlGender_;
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public int getSsmlGenderValue() {
+ return ssmlGender_;
+ }
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender getSsmlGender() {
+ com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender result = com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender.valueOf(ssmlGender_);
+ return result == null ? com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (ssmlGender_ != com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, ssmlGender_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (ssmlGender_ != com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, ssmlGender_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams other = (com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && ssmlGender_ == other.ssmlGender_;
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + SSML_GENDER_FIELD_NUMBER;
+ hash = (53 * hash) + ssmlGender_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + * Description of which voice to use for speech synthesis. + *+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.VoiceSelectionParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int ssmlGender_ = 0;
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public int getSsmlGenderValue() {
+ return ssmlGender_;
+ }
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public Builder setSsmlGenderValue(int value) {
+ ssmlGender_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender getSsmlGender() {
+ com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender result = com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender.valueOf(ssmlGender_);
+ return result == null ? com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public Builder setSsmlGender(com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ ssmlGender_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ public Builder clearSsmlGender() {
+
+ ssmlGender_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.VoiceSelectionParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.VoiceSelectionParams)
+ private static final com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams();
+ }
+
+ public static com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * Optional. The name of the voice. If not set, the service will choose a + * voice based on the other parameters such as language_code and gender. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ int getSsmlGenderValue();
+ /**
+ * + * Optional. The preferred gender of the voice. If not set, the service will + * choose a voice based on the other parameters such as language_code and + * name. Note that this is only a preference, not requirement. If a + * voice of the appropriate gender is not available, the synthesizer should + * substitute a voice with a different gender rather than failing the request. + *+ * + *
.google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2;
+ */
+ com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender getSsmlGender();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java
index 37563a7ad253..c1991146e466 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java
@@ -45,27 +45,30 @@ public static void registerAllExtensions(
"oogle/cloud/dialogflow/v2beta1/intent.pr" +
"oto\032-google/cloud/dialogflow/v2beta1/ses" +
"sion.proto\032\034google/protobuf/struct.proto" +
- "\"\340\001\n\016WebhookRequest\022\017\n\007session\030\004 \001(\t\022\023\n\013" +
+ "\"\261\002\n\016WebhookRequest\022\017\n\007session\030\004 \001(\t\022\023\n\013" +
"response_id\030\001 \001(\t\022B\n\014query_result\030\002 \001(\0132" +
",.google.cloud.dialogflow.v2beta1.QueryR" +
- "esult\022d\n\036original_detect_intent_request\030" +
- "\003 \001(\0132<.google.cloud.dialogflow.v2beta1." +
- "OriginalDetectIntentRequest\"\302\002\n\017WebhookR" +
- "esponse\022\030\n\020fulfillment_text\030\001 \001(\t\022M\n\024ful" +
- "fillment_messages\030\002 \003(\0132/.google.cloud.d" +
- "ialogflow.v2beta1.Intent.Message\022\016\n\006sour" +
- "ce\030\003 \001(\t\022(\n\007payload\030\004 \001(\0132\027.google.proto" +
- "buf.Struct\022A\n\017output_contexts\030\005 \003(\0132(.go" +
- "ogle.cloud.dialogflow.v2beta1.Context\022I\n" +
- "\024followup_event_input\030\006 \001(\0132+.google.clo" +
- "ud.dialogflow.v2beta1.EventInput\"W\n\033Orig" +
- "inalDetectIntentRequest\022\016\n\006source\030\001 \001(\t\022" +
- "(\n\007payload\030\003 \001(\0132\027.google.protobuf.Struc" +
- "tB\252\001\n#com.google.cloud.dialogflow.v2beta" +
- "1B\014WebhookProtoP\001ZIgoogle.golang.org/gen" +
- "proto/googleapis/cloud/dialogflow/v2beta" +
- "1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dial" +
- "ogflow.V2beta1b\006proto3"
+ "esult\022O\n\031alternative_query_results\030\005 \003(\013" +
+ "2,.google.cloud.dialogflow.v2beta1.Query" +
+ "Result\022d\n\036original_detect_intent_request" +
+ "\030\003 \001(\0132<.google.cloud.dialogflow.v2beta1" +
+ ".OriginalDetectIntentRequest\"\333\002\n\017Webhook" +
+ "Response\022\030\n\020fulfillment_text\030\001 \001(\t\022M\n\024fu" +
+ "lfillment_messages\030\002 \003(\0132/.google.cloud." +
+ "dialogflow.v2beta1.Intent.Message\022\016\n\006sou" +
+ "rce\030\003 \001(\t\022(\n\007payload\030\004 \001(\0132\027.google.prot" +
+ "obuf.Struct\022A\n\017output_contexts\030\005 \003(\0132(.g" +
+ "oogle.cloud.dialogflow.v2beta1.Context\022I" +
+ "\n\024followup_event_input\030\006 \001(\0132+.google.cl" +
+ "oud.dialogflow.v2beta1.EventInput\022\027\n\017end" +
+ "_interaction\030\010 \001(\010\"h\n\033OriginalDetectInte" +
+ "ntRequest\022\016\n\006source\030\001 \001(\t\022\017\n\007version\030\002 \001" +
+ "(\t\022(\n\007payload\030\003 \001(\0132\027.google.protobuf.St" +
+ "ructB\252\001\n#com.google.cloud.dialogflow.v2b" +
+ "eta1B\014WebhookProtoP\001ZIgoogle.golang.org/" +
+ "genproto/googleapis/cloud/dialogflow/v2b" +
+ "eta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.D" +
+ "ialogflow.V2beta1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -89,19 +92,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
internal_static_google_cloud_dialogflow_v2beta1_WebhookRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_WebhookRequest_descriptor,
- new java.lang.String[] { "Session", "ResponseId", "QueryResult", "OriginalDetectIntentRequest", });
+ new java.lang.String[] { "Session", "ResponseId", "QueryResult", "AlternativeQueryResults", "OriginalDetectIntentRequest", });
internal_static_google_cloud_dialogflow_v2beta1_WebhookResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_google_cloud_dialogflow_v2beta1_WebhookResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_WebhookResponse_descriptor,
- new java.lang.String[] { "FulfillmentText", "FulfillmentMessages", "Source", "Payload", "OutputContexts", "FollowupEventInput", });
+ new java.lang.String[] { "FulfillmentText", "FulfillmentMessages", "Source", "Payload", "OutputContexts", "FollowupEventInput", "EndInteraction", });
internal_static_google_cloud_dialogflow_v2beta1_OriginalDetectIntentRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_google_cloud_dialogflow_v2beta1_OriginalDetectIntentRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_OriginalDetectIntentRequest_descriptor,
- new java.lang.String[] { "Source", "Payload", });
+ new java.lang.String[] { "Source", "Version", "Payload", });
com.google.api.AnnotationsProto.getDescriptor();
com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor();
com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java
index 3417425b879e..bc9d91b222e7 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java
@@ -22,6 +22,7 @@ private WebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder
private WebhookRequest() {
session_ = "";
responseId_ = "";
+ alternativeQueryResults_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -93,6 +94,15 @@ private WebhookRequest(
session_ = s;
break;
}
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ alternativeQueryResults_ = new java.util.ArrayList+ * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public java.util.List+ * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>
+ getAlternativeQueryResultsOrBuilderList() {
+ return alternativeQueryResults_;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public int getAlternativeQueryResultsCount() {
+ return alternativeQueryResults_.size();
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index) {
+ return alternativeQueryResults_.get(index);
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(
+ int index) {
+ return alternativeQueryResults_.get(index);
+ }
+
public static final int ORIGINAL_DETECT_INTENT_REQUEST_FIELD_NUMBER = 3;
private com.google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest originalDetectIntentRequest_;
/**
@@ -303,6 +372,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!getSessionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, session_);
}
+ for (int i = 0; i < alternativeQueryResults_.size(); i++) {
+ output.writeMessage(5, alternativeQueryResults_.get(i));
+ }
unknownFields.writeTo(output);
}
@@ -325,6 +397,10 @@ public int getSerializedSize() {
if (!getSessionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, session_);
}
+ for (int i = 0; i < alternativeQueryResults_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, alternativeQueryResults_.get(i));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -350,6 +426,8 @@ public boolean equals(final java.lang.Object obj) {
result = result && getQueryResult()
.equals(other.getQueryResult());
}
+ result = result && getAlternativeQueryResultsList()
+ .equals(other.getAlternativeQueryResultsList());
result = result && (hasOriginalDetectIntentRequest() == other.hasOriginalDetectIntentRequest());
if (hasOriginalDetectIntentRequest()) {
result = result && getOriginalDetectIntentRequest()
@@ -374,6 +452,10 @@ public int hashCode() {
hash = (37 * hash) + QUERY_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getQueryResult().hashCode();
}
+ if (getAlternativeQueryResultsCount() > 0) {
+ hash = (37 * hash) + ALTERNATIVE_QUERY_RESULTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAlternativeQueryResultsList().hashCode();
+ }
if (hasOriginalDetectIntentRequest()) {
hash = (37 * hash) + ORIGINAL_DETECT_INTENT_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getOriginalDetectIntentRequest().hashCode();
@@ -507,6 +589,7 @@ private Builder(
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
+ getAlternativeQueryResultsFieldBuilder();
}
}
public Builder clear() {
@@ -521,6 +604,12 @@ public Builder clear() {
queryResult_ = null;
queryResultBuilder_ = null;
}
+ if (alternativeQueryResultsBuilder_ == null) {
+ alternativeQueryResults_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ alternativeQueryResultsBuilder_.clear();
+ }
if (originalDetectIntentRequestBuilder_ == null) {
originalDetectIntentRequest_ = null;
} else {
@@ -549,6 +638,8 @@ public com.google.cloud.dialogflow.v2beta1.WebhookRequest build() {
public com.google.cloud.dialogflow.v2beta1.WebhookRequest buildPartial() {
com.google.cloud.dialogflow.v2beta1.WebhookRequest result = new com.google.cloud.dialogflow.v2beta1.WebhookRequest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
result.session_ = session_;
result.responseId_ = responseId_;
if (queryResultBuilder_ == null) {
@@ -556,11 +647,21 @@ public com.google.cloud.dialogflow.v2beta1.WebhookRequest buildPartial() {
} else {
result.queryResult_ = queryResultBuilder_.build();
}
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ alternativeQueryResults_ = java.util.Collections.unmodifiableList(alternativeQueryResults_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.alternativeQueryResults_ = alternativeQueryResults_;
+ } else {
+ result.alternativeQueryResults_ = alternativeQueryResultsBuilder_.build();
+ }
if (originalDetectIntentRequestBuilder_ == null) {
result.originalDetectIntentRequest_ = originalDetectIntentRequest_;
} else {
result.originalDetectIntentRequest_ = originalDetectIntentRequestBuilder_.build();
}
+ result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@@ -613,6 +714,32 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.WebhookRequest othe
if (other.hasQueryResult()) {
mergeQueryResult(other.getQueryResult());
}
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (!other.alternativeQueryResults_.isEmpty()) {
+ if (alternativeQueryResults_.isEmpty()) {
+ alternativeQueryResults_ = other.alternativeQueryResults_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.addAll(other.alternativeQueryResults_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.alternativeQueryResults_.isEmpty()) {
+ if (alternativeQueryResultsBuilder_.isEmpty()) {
+ alternativeQueryResultsBuilder_.dispose();
+ alternativeQueryResultsBuilder_ = null;
+ alternativeQueryResults_ = other.alternativeQueryResults_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ alternativeQueryResultsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getAlternativeQueryResultsFieldBuilder() : null;
+ } else {
+ alternativeQueryResultsBuilder_.addAllMessages(other.alternativeQueryResults_);
+ }
+ }
+ }
if (other.hasOriginalDetectIntentRequest()) {
mergeOriginalDetectIntentRequest(other.getOriginalDetectIntentRequest());
}
@@ -642,6 +769,7 @@ public Builder mergeFrom(
}
return this;
}
+ private int bitField0_;
private java.lang.Object session_ = "";
/**
@@ -998,6 +1126,318 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr
return queryResultBuilder_;
}
+ private java.util.List+ * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public java.util.List+ * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public int getAlternativeQueryResultsCount() {
+ if (alternativeQueryResultsBuilder_ == null) {
+ return alternativeQueryResults_.size();
+ } else {
+ return alternativeQueryResultsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ return alternativeQueryResults_.get(index);
+ } else {
+ return alternativeQueryResultsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder setAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult value) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.set(index, value);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder setAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder addAlternativeQueryResults(com.google.cloud.dialogflow.v2beta1.QueryResult value) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(value);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder addAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult value) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(index, value);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder addAlternativeQueryResults(
+ com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(builderForValue.build());
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder addAlternativeQueryResults(
+ int index, com.google.cloud.dialogflow.v2beta1.QueryResult.Builder builderForValue) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder addAllAlternativeQueryResults(
+ java.lang.Iterable extends com.google.cloud.dialogflow.v2beta1.QueryResult> values) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, alternativeQueryResults_);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder clearAlternativeQueryResults() {
+ if (alternativeQueryResultsBuilder_ == null) {
+ alternativeQueryResults_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public Builder removeAlternativeQueryResults(int index) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ ensureAlternativeQueryResultsIsMutable();
+ alternativeQueryResults_.remove(index);
+ onChanged();
+ } else {
+ alternativeQueryResultsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getAlternativeQueryResultsBuilder(
+ int index) {
+ return getAlternativeQueryResultsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(
+ int index) {
+ if (alternativeQueryResultsBuilder_ == null) {
+ return alternativeQueryResults_.get(index); } else {
+ return alternativeQueryResultsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>
+ getAlternativeQueryResultsOrBuilderList() {
+ if (alternativeQueryResultsBuilder_ != null) {
+ return alternativeQueryResultsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(alternativeQueryResults_);
+ }
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQueryResultsBuilder() {
+ return getAlternativeQueryResultsFieldBuilder().addBuilder(
+ com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance());
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQueryResultsBuilder(
+ int index) {
+ return getAlternativeQueryResultsFieldBuilder().addBuilder(
+ index, com.google.cloud.dialogflow.v2beta1.QueryResult.getDefaultInstance());
+ }
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ public java.util.List+ * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ java.util.List+ * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResults(int index);
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ int getAlternativeQueryResultsCount();
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ java.util.List extends com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder>
+ getAlternativeQueryResultsOrBuilderList();
+ /**
+ * + * Alternative query results from KnowledgeService. + *+ * + *
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5;
+ */
+ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResultsOrBuilder(
+ int index);
+
/**
* * Optional. The contents of the original request that was passed to diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java index c94087813bde..85e7f49b1e74 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java @@ -24,6 +24,7 @@ private WebhookResponse() { fulfillmentMessages_ = java.util.Collections.emptyList(); source_ = ""; outputContexts_ = java.util.Collections.emptyList(); + endInteraction_ = false; } @java.lang.Override @@ -113,6 +114,11 @@ private WebhookResponse( break; } + case 64: { + + endInteraction_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -482,6 +488,21 @@ public com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getFollowupEventI return getFollowupEventInput(); } + public static final int END_INTERACTION_FIELD_NUMBER = 8; + private boolean endInteraction_; + /** + *+ * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *bool end_interaction = 8;
+ */ + public boolean getEndInteraction() { + return endInteraction_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,6 +533,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (followupEventInput_ != null) { output.writeMessage(6, getFollowupEventInput()); } + if (endInteraction_ != false) { + output.writeBool(8, endInteraction_); + } unknownFields.writeTo(output); } @@ -542,6 +566,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFollowupEventInput()); } + if (endInteraction_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, endInteraction_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -576,6 +604,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getFollowupEventInput() .equals(other.getFollowupEventInput()); } + result = result && (getEndInteraction() + == other.getEndInteraction()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -607,6 +637,9 @@ public int hashCode() { hash = (37 * hash) + FOLLOWUP_EVENT_INPUT_FIELD_NUMBER; hash = (53 * hash) + getFollowupEventInput().hashCode(); } + hash = (37 * hash) + END_INTERACTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEndInteraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -770,6 +803,8 @@ public Builder clear() { followupEventInput_ = null; followupEventInputBuilder_ = null; } + endInteraction_ = false; + return this; } @@ -824,6 +859,7 @@ public com.google.cloud.dialogflow.v2beta1.WebhookResponse buildPartial() { } else { result.followupEventInput_ = followupEventInputBuilder_.build(); } + result.endInteraction_ = endInteraction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -932,6 +968,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.WebhookResponse oth if (other.hasFollowupEventInput()) { mergeFollowupEventInput(other.getFollowupEventInput()); } + if (other.getEndInteraction() != false) { + setEndInteraction(other.getEndInteraction()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2306,6 +2345,50 @@ public com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getFollowupEventI } return followupEventInputBuilder_; } + + private boolean endInteraction_ ; + /** + *+ * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *bool end_interaction = 8;
+ */ + public boolean getEndInteraction() { + return endInteraction_; + } + /** + *+ * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *bool end_interaction = 8;
+ */ + public Builder setEndInteraction(boolean value) { + + endInteraction_ = value; + onChanged(); + return this; + } + /** + *+ * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *bool end_interaction = 8;
+ */ + public Builder clearEndInteraction() { + + endInteraction_ = false; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java index 8805973f2753..900bed87b53f 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java @@ -258,4 +258,15 @@ com.google.cloud.dialogflow.v2beta1.ContextOrBuilder getOutputContextsOrBuilder( *.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;
*/ com.google.cloud.dialogflow.v2beta1.EventInputOrBuilder getFollowupEventInputOrBuilder(); + + /** + *+ * Optional. Indicates that this intent ends an interaction. Some integrations + * (e.g., Actions on Google or Dialogflow phone gateway) use this information + * to close interaction with an end user. Default is false. + *+ * + *bool end_interaction = 8;
+ */ + boolean getEndInteraction(); } diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto index aca63b2c8d2b..e647a868cee3 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,7 +43,8 @@ option objc_class_prefix = "DF"; // // You can create an agent using both Dialogflow Standard Edition and // Dialogflow Enterprise Edition. For details, see -// [Dialogflow Editions](/dialogflow-enterprise/docs/editions). +// [Dialogflow +// Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions). // // You can save your agent for backup or versioning by exporting the agent by // using the [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved @@ -241,9 +242,11 @@ message ExportAgentRequest { // Format: `projects/`. string parent = 1; - // Optional. The Google Cloud Storage URI to export the agent to. - // Note: The URI must start with - // "gs://". If left unspecified, the serialized agent is returned inline. + // Optional. The + // [Google Cloud Storage](https://cloud.google.com/storage/docs/) + // URI to export the agent to. + // The format of this URI must be `gs:// / `. + // If left unspecified, the serialized agent is returned inline. string agent_uri = 2; } @@ -258,17 +261,17 @@ message ExportAgentResponse { // The exported agent. // // Example for how to export an agent to a zip file via a command line: - // - // curl \ - // 'https://dialogflow.googleapis.com/v2beta1/projects/ /agent:export'\ + // curl \ + // 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\ // -X POST \ - // -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + // -H 'Authorization: Bearer '$(gcloud auth application-default + // print-access-token) \ // -H 'Accept: application/json' \ // -H 'Content-Type: application/json' \ // --compressed \ // --data-binary '{}' \ // | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - // | base64 --decode >bytes agent_content = 2; } } @@ -288,17 +291,17 @@ message ImportAgentRequest { // The agent to import. // // Example for how to import an agent via the command line: - // - // curl \ - // 'https://dialogflow.googleapis.com/v2beta1/projects/+ // | base64 --decode > <agent zip file> /agent:import\ + // curl \ + // 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\ // -X POST \ - // -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + // -H 'Authorization: Bearer '$(gcloud auth application-default + // print-access-token) \ // -H 'Accept: application/json' \ // -H 'Content-Type: application/json' \ // --compressed \ // --data-binary "{ - // 'agentContent': '$(catbytes agent_content = 3; } } @@ -318,17 +321,17 @@ message RestoreAgentRequest { // The agent to restore. // // Example for how to restore an agent via the command line: - // - // curl \ - // 'https://dialogflow.googleapis.com/v2beta1/projects/| base64 -w 0)' - // }" + // 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + // }" /agent:restore\ + // curl \ + // 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\ // -X POST \ - // -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + // -H 'Authorization: Bearer '$(gcloud auth application-default + // print-access-token) \ // -H 'Accept: application/json' \ // -H 'Content-Type: application/json' \ // --compressed \ // --data-binary "{ - // 'agentContent': '$(cat