From 484a2f00046ec6306c6ef6b86484b72600f09981 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Sat, 30 Mar 2019 01:19:16 -0700 Subject: [PATCH] Regenerate dialogflow client (#4823) --- .../cloud/dialogflow/v2/AgentsGrpc.java | 197 ++- .../cloud/dialogflow/v2/ContextsGrpc.java | 69 +- .../cloud/dialogflow/v2/EntityTypesGrpc.java | 114 +- .../cloud/dialogflow/v2/IntentsGrpc.java | 85 +- .../dialogflow/v2/SessionEntityTypesGrpc.java | 23 +- .../cloud/dialogflow/v2/SessionsGrpc.java | 35 +- .../cloud/dialogflow/v2beta1/AgentsGrpc.java | 162 +-- .../dialogflow/v2beta1/ContextsGrpc.java | 69 +- .../dialogflow/v2beta1/DocumentsGrpc.java | 302 +++- .../dialogflow/v2beta1/EntityTypesGrpc.java | 119 +- .../cloud/dialogflow/v2beta1/IntentsGrpc.java | 85 +- .../v2beta1/KnowledgeBasesGrpc.java | 135 ++ .../v2beta1/SessionEntityTypesGrpc.java | 23 +- .../dialogflow/v2beta1/SessionsGrpc.java | 35 +- .../com/google/cloud/dialogflow/v2/Agent.java | 85 +- .../cloud/dialogflow/v2/AgentOrBuilder.java | 24 +- .../cloud/dialogflow/v2/AgentProto.java | 111 +- .../cloud/dialogflow/v2/AudioConfigProto.java | 106 ++ .../cloud/dialogflow/v2/AudioEncoding.java | 4 +- .../v2/BatchCreateEntitiesRequest.java | 101 +- .../BatchCreateEntitiesRequestOrBuilder.java | 24 +- .../v2/BatchDeleteEntitiesRequest.java | 55 +- .../BatchDeleteEntitiesRequestOrBuilder.java | 14 +- .../v2/BatchDeleteEntityTypesRequest.java | 6 +- .../v2/BatchDeleteIntentsRequest.java | 6 +- .../v2/BatchUpdateEntitiesRequest.java | 129 +- .../BatchUpdateEntitiesRequestOrBuilder.java | 32 +- .../v2/BatchUpdateEntityTypesRequest.java | 79 +- ...atchUpdateEntityTypesRequestOrBuilder.java | 20 +- .../v2/BatchUpdateEntityTypesResponse.java | 6 +- .../v2/BatchUpdateIntentsRequest.java | 55 +- .../BatchUpdateIntentsRequestOrBuilder.java | 14 +- .../v2/BatchUpdateIntentsResponse.java | 6 +- .../google/cloud/dialogflow/v2/Context.java | 82 +- .../cloud/dialogflow/v2/ContextOrBuilder.java | 21 +- .../cloud/dialogflow/v2/ContextProto.java | 99 +- .../dialogflow/v2/CreateContextRequest.java | 6 +- .../v2/CreateEntityTypeRequest.java | 55 +- .../v2/CreateEntityTypeRequestOrBuilder.java | 14 +- .../dialogflow/v2/CreateIntentRequest.java | 55 +- .../v2/CreateIntentRequestOrBuilder.java | 14 +- .../v2/CreateSessionEntityTypeRequest.java | 6 +- .../v2/DeleteAllContextsRequest.java | 6 +- .../dialogflow/v2/DeleteContextRequest.java | 6 +- .../v2/DeleteEntityTypeRequest.java | 6 +- .../dialogflow/v2/DeleteIntentRequest.java | 27 +- .../v2/DeleteIntentRequestOrBuilder.java | 6 +- .../v2/DeleteSessionEntityTypeRequest.java | 6 +- .../dialogflow/v2/DetectIntentRequest.java | 292 ++++ .../v2/DetectIntentRequestOrBuilder.java | 37 + .../dialogflow/v2/DetectIntentResponse.java | 443 +++++- .../v2/DetectIntentResponseOrBuilder.java | 65 +- .../cloud/dialogflow/v2/EntityType.java | 329 +++-- .../dialogflow/v2/EntityTypeOrBuilder.java | 30 +- .../cloud/dialogflow/v2/EntityTypeProto.java | 209 +-- .../cloud/dialogflow/v2/EventInput.java | 54 +- .../dialogflow/v2/EventInputOrBuilder.java | 12 +- .../dialogflow/v2/ExportAgentRequest.java | 62 +- .../v2/ExportAgentRequestOrBuilder.java | 16 +- .../dialogflow/v2/ExportAgentResponse.java | 42 +- .../v2/ExportAgentResponseOrBuilder.java | 9 +- .../cloud/dialogflow/v2/GetAgentRequest.java | 6 +- .../dialogflow/v2/GetContextRequest.java | 6 +- .../dialogflow/v2/GetEntityTypeRequest.java | 55 +- .../v2/GetEntityTypeRequestOrBuilder.java | 14 +- .../cloud/dialogflow/v2/GetIntentRequest.java | 55 +- .../v2/GetIntentRequestOrBuilder.java | 14 +- .../v2/GetSessionEntityTypeRequest.java | 6 +- .../dialogflow/v2/ImportAgentRequest.java | 50 +- .../v2/ImportAgentRequestOrBuilder.java | 11 +- .../cloud/dialogflow/v2/InputAudioConfig.java | 118 +- .../v2/InputAudioConfigOrBuilder.java | 34 +- .../google/cloud/dialogflow/v2/Intent.java | 939 ++++++++---- .../cloud/dialogflow/v2/IntentOrBuilder.java | 70 +- .../cloud/dialogflow/v2/IntentProto.java | 355 ++--- .../dialogflow/v2/ListContextsRequest.java | 6 +- .../dialogflow/v2/ListContextsResponse.java | 6 +- .../dialogflow/v2/ListEntityTypesRequest.java | 55 +- .../v2/ListEntityTypesRequestOrBuilder.java | 14 +- .../v2/ListEntityTypesResponse.java | 6 +- .../dialogflow/v2/ListIntentsRequest.java | 55 +- .../v2/ListIntentsRequestOrBuilder.java | 14 +- .../dialogflow/v2/ListIntentsResponse.java | 6 +- .../v2/ListSessionEntityTypesRequest.java | 6 +- .../v2/ListSessionEntityTypesResponse.java | 6 +- .../v2/OriginalDetectIntentRequest.java | 336 ++++- .../OriginalDetectIntentRequestOrBuilder.java | 65 +- .../dialogflow/v2/OutputAudioConfig.java | 943 ++++++++++++ .../v2/OutputAudioConfigOrBuilder.java | 78 + .../dialogflow/v2/OutputAudioEncoding.java | 182 +++ .../cloud/dialogflow/v2/QueryParameters.java | 458 +++++- .../v2/QueryParametersOrBuilder.java | 71 +- .../cloud/dialogflow/v2/QueryResult.java | 428 +++++- .../dialogflow/v2/QueryResultOrBuilder.java | 71 +- .../dialogflow/v2/RestoreAgentRequest.java | 50 +- .../v2/RestoreAgentRequestOrBuilder.java | 11 +- .../dialogflow/v2/SearchAgentsRequest.java | 6 +- .../dialogflow/v2/SearchAgentsResponse.java | 6 +- .../google/cloud/dialogflow/v2/Sentiment.java | 603 ++++++++ .../v2/SentimentAnalysisRequestConfig.java | 529 +++++++ ...ntimentAnalysisRequestConfigOrBuilder.java | 23 + .../v2/SentimentAnalysisResult.java | 706 +++++++++ .../v2/SentimentAnalysisResultOrBuilder.java | 41 + .../dialogflow/v2/SentimentOrBuilder.java | 34 + .../dialogflow/v2/SessionEntityType.java | 34 +- .../v2/SessionEntityTypeOrBuilder.java | 4 + .../dialogflow/v2/SessionEntityTypeProto.java | 119 +- .../cloud/dialogflow/v2/SessionProto.java | 254 ++-- .../cloud/dialogflow/v2/SsmlVoiceGender.java | 174 +++ .../v2/StreamingDetectIntentRequest.java | 312 +++- ...StreamingDetectIntentRequestOrBuilder.java | 41 +- .../v2/StreamingDetectIntentResponse.java | 375 +++++ ...treamingDetectIntentResponseOrBuilder.java | 48 + .../v2/StreamingRecognitionResult.java | 34 +- .../StreamingRecognitionResultOrBuilder.java | 7 +- .../dialogflow/v2/SynthesizeSpeechConfig.java | 1275 +++++++++++++++++ .../v2/SynthesizeSpeechConfigOrBuilder.java | 135 ++ .../google/cloud/dialogflow/v2/TextInput.java | 56 +- .../dialogflow/v2/TextInputOrBuilder.java | 16 +- .../dialogflow/v2/TrainAgentRequest.java | 6 +- .../dialogflow/v2/UpdateContextRequest.java | 6 +- .../v2/UpdateEntityTypeRequest.java | 67 +- .../v2/UpdateEntityTypeRequestOrBuilder.java | 17 +- .../dialogflow/v2/UpdateIntentRequest.java | 67 +- .../v2/UpdateIntentRequestOrBuilder.java | 17 +- .../v2/UpdateSessionEntityTypeRequest.java | 6 +- .../dialogflow/v2/VoiceSelectionParams.java | 766 ++++++++++ .../v2/VoiceSelectionParamsOrBuilder.java | 62 + .../cloud/dialogflow/v2/WebhookProto.java | 33 +- .../cloud/dialogflow/v2/WebhookRequest.java | 28 +- .../v2/WebhookRequestOrBuilder.java | 8 +- .../google/cloud/dialogflow/v2/agent.proto | 125 +- .../cloud/dialogflow/v2/audio_config.proto | 126 ++ .../google/cloud/dialogflow/v2/context.proto | 53 +- .../cloud/dialogflow/v2/entity_type.proto | 197 ++- .../google/cloud/dialogflow/v2/intent.proto | 178 ++- .../google/cloud/dialogflow/v2/session.proto | 165 ++- .../dialogflow/v2/session_entity_type.proto | 57 +- .../google/cloud/dialogflow/v2/webhook.proto | 28 +- .../cloud/dialogflow/v2beta1/Agent.java | 85 +- .../dialogflow/v2beta1/AgentOrBuilder.java | 24 +- .../cloud/dialogflow/v2beta1/AgentProto.java | 117 +- .../dialogflow/v2beta1/AudioConfigProto.java | 82 +- .../dialogflow/v2beta1/AudioEncoding.java | 6 +- .../v2beta1/BatchCreateEntitiesRequest.java | 101 +- .../BatchCreateEntitiesRequestOrBuilder.java | 24 +- .../v2beta1/BatchDeleteEntitiesRequest.java | 55 +- .../BatchDeleteEntitiesRequestOrBuilder.java | 14 +- .../BatchDeleteEntityTypesRequest.java | 6 +- .../v2beta1/BatchDeleteIntentsRequest.java | 6 +- .../v2beta1/BatchUpdateEntitiesRequest.java | 129 +- .../BatchUpdateEntitiesRequestOrBuilder.java | 32 +- .../BatchUpdateEntityTypesRequest.java | 79 +- ...atchUpdateEntityTypesRequestOrBuilder.java | 20 +- .../BatchUpdateEntityTypesResponse.java | 6 +- .../v2beta1/BatchUpdateIntentsRequest.java | 55 +- .../BatchUpdateIntentsRequestOrBuilder.java | 14 +- .../v2beta1/BatchUpdateIntentsResponse.java | 6 +- .../cloud/dialogflow/v2beta1/Context.java | 131 +- .../dialogflow/v2beta1/ContextOrBuilder.java | 35 +- .../dialogflow/v2beta1/ContextProto.java | 129 +- .../v2beta1/CreateContextRequest.java | 6 +- .../v2beta1/CreateDocumentRequest.java | 6 +- .../v2beta1/CreateEntityTypeRequest.java | 55 +- .../CreateEntityTypeRequestOrBuilder.java | 14 +- .../v2beta1/CreateIntentRequest.java | 55 +- .../v2beta1/CreateIntentRequestOrBuilder.java | 14 +- .../v2beta1/CreateKnowledgeBaseRequest.java | 34 +- .../CreateKnowledgeBaseRequestOrBuilder.java | 8 +- .../CreateSessionEntityTypeRequest.java | 6 +- .../v2beta1/DeleteAllContextsRequest.java | 6 +- .../v2beta1/DeleteContextRequest.java | 6 +- .../v2beta1/DeleteDocumentRequest.java | 6 +- .../v2beta1/DeleteEntityTypeRequest.java | 6 +- .../v2beta1/DeleteIntentRequest.java | 27 +- .../v2beta1/DeleteIntentRequestOrBuilder.java | 6 +- .../v2beta1/DeleteKnowledgeBaseRequest.java | 6 +- .../DeleteSessionEntityTypeRequest.java | 6 +- .../v2beta1/DetectIntentResponse.java | 56 +- .../DetectIntentResponseOrBuilder.java | 14 +- .../cloud/dialogflow/v2beta1/Document.java | 144 +- .../dialogflow/v2beta1/DocumentOrBuilder.java | 22 +- .../dialogflow/v2beta1/DocumentProto.java | 157 +- .../cloud/dialogflow/v2beta1/EntityType.java | 329 +++-- .../v2beta1/EntityTypeOrBuilder.java | 30 +- .../dialogflow/v2beta1/EntityTypeProto.java | 215 +-- .../cloud/dialogflow/v2beta1/EventInput.java | 54 +- .../v2beta1/EventInputOrBuilder.java | 12 +- .../v2beta1/ExportAgentRequest.java | 6 +- .../v2beta1/ExportAgentResponse.java | 6 +- .../dialogflow/v2beta1/GetAgentRequest.java | 6 +- .../dialogflow/v2beta1/GetContextRequest.java | 6 +- .../v2beta1/GetDocumentRequest.java | 6 +- .../v2beta1/GetEntityTypeRequest.java | 55 +- .../GetEntityTypeRequestOrBuilder.java | 14 +- .../dialogflow/v2beta1/GetIntentRequest.java | 55 +- .../v2beta1/GetIntentRequestOrBuilder.java | 14 +- .../v2beta1/GetSessionEntityTypeRequest.java | 6 +- .../v2beta1/ImportAgentRequest.java | 6 +- .../dialogflow/v2beta1/InputAudioConfig.java | 54 +- .../v2beta1/InputAudioConfigOrBuilder.java | 14 +- .../cloud/dialogflow/v2beta1/Intent.java | 932 ++++++++---- .../dialogflow/v2beta1/IntentOrBuilder.java | 68 +- .../cloud/dialogflow/v2beta1/IntentProto.java | 402 +++--- .../dialogflow/v2beta1/KnowledgeAnswers.java | 30 +- .../dialogflow/v2beta1/KnowledgeBase.java | 4 + .../v2beta1/KnowledgeBaseProto.java | 115 +- .../v2beta1/ListContextsRequest.java | 6 +- .../v2beta1/ListContextsResponse.java | 6 +- .../v2beta1/ListDocumentsRequest.java | 6 +- .../v2beta1/ListDocumentsResponse.java | 6 +- .../v2beta1/ListEntityTypesRequest.java | 55 +- .../ListEntityTypesRequestOrBuilder.java | 14 +- .../v2beta1/ListEntityTypesResponse.java | 6 +- .../v2beta1/ListIntentsRequest.java | 55 +- .../v2beta1/ListIntentsRequestOrBuilder.java | 14 +- .../v2beta1/ListIntentsResponse.java | 6 +- .../v2beta1/ListKnowledgeBasesRequest.java | 34 +- .../ListKnowledgeBasesRequestOrBuilder.java | 8 +- .../v2beta1/ListKnowledgeBasesResponse.java | 6 +- .../ListSessionEntityTypesRequest.java | 6 +- .../ListSessionEntityTypesResponse.java | 6 +- .../v2beta1/OriginalDetectIntentRequest.java | 192 ++- .../OriginalDetectIntentRequestOrBuilder.java | 48 +- .../v2beta1/OutputAudioEncoding.java | 2 +- .../dialogflow/v2beta1/QueryParameters.java | 177 +-- .../v2beta1/QueryParametersOrBuilder.java | 42 +- .../cloud/dialogflow/v2beta1/QueryResult.java | 88 +- .../v2beta1/QueryResultOrBuilder.java | 23 +- .../v2beta1/ReloadDocumentRequest.java | 613 ++++++++ .../ReloadDocumentRequestOrBuilder.java | 35 + .../v2beta1/RestoreAgentRequest.java | 6 +- .../v2beta1/SearchAgentsRequest.java | 6 +- .../v2beta1/SearchAgentsResponse.java | 6 +- .../dialogflow/v2beta1/SessionEntityType.java | 34 +- .../v2beta1/SessionEntityTypeOrBuilder.java | 4 + .../v2beta1/SessionEntityTypeProto.java | 148 +- .../dialogflow/v2beta1/SessionProto.java | 279 ++-- .../dialogflow/v2beta1/SsmlVoiceGender.java | 2 +- .../StreamingDetectIntentResponse.java | 48 +- ...treamingDetectIntentResponseOrBuilder.java | 12 +- .../v2beta1/StreamingRecognitionResult.java | 34 +- .../StreamingRecognitionResultOrBuilder.java | 7 +- .../cloud/dialogflow/v2beta1/TextInput.java | 56 +- .../v2beta1/TextInputOrBuilder.java | 16 +- .../dialogflow/v2beta1/TrainAgentRequest.java | 6 +- .../v2beta1/UpdateContextRequest.java | 6 +- .../v2beta1/UpdateDocumentRequest.java | 989 +++++++++++++ .../UpdateDocumentRequestOrBuilder.java | 78 + .../v2beta1/UpdateEntityTypeRequest.java | 67 +- .../UpdateEntityTypeRequestOrBuilder.java | 17 +- .../v2beta1/UpdateIntentRequest.java | 67 +- .../v2beta1/UpdateIntentRequestOrBuilder.java | 17 +- .../v2beta1/UpdateKnowledgeBaseRequest.java | 996 +++++++++++++ .../UpdateKnowledgeBaseRequestOrBuilder.java | 78 + .../UpdateSessionEntityTypeRequest.java | 6 +- .../dialogflow/v2beta1/WebhookProto.java | 66 +- .../dialogflow/v2beta1/WebhookRequest.java | 28 +- .../v2beta1/WebhookRequestOrBuilder.java | 8 +- .../cloud/dialogflow/v2beta1/agent.proto | 76 +- .../dialogflow/v2beta1/audio_config.proto | 159 +- .../cloud/dialogflow/v2beta1/context.proto | 61 +- .../cloud/dialogflow/v2beta1/document.proto | 93 +- .../dialogflow/v2beta1/entity_type.proto | 198 ++- .../cloud/dialogflow/v2beta1/intent.proto | 178 ++- .../dialogflow/v2beta1/knowledge_base.proto | 56 +- .../cloud/dialogflow/v2beta1/session.proto | 172 +-- .../v2beta1/session_entity_type.proto | 57 +- .../cloud/dialogflow/v2beta1/webhook.proto | 26 +- .../cloud/dialogflow/v2/AgentsClient.java | 59 +- .../cloud/dialogflow/v2/ContextsClient.java | 12 +- .../dialogflow/v2/EntityTypesClient.java | 218 ++- .../cloud/dialogflow/v2/IntentsClient.java | 72 +- .../v2/SessionEntityTypesClient.java | 10 +- .../cloud/dialogflow/v2/package-info.java | 23 +- .../v2/stub/AgentsStubSettings.java | 5 +- .../v2/stub/ContextsStubSettings.java | 5 +- .../v2/stub/EntityTypesStubSettings.java | 5 +- .../v2/stub/IntentsStubSettings.java | 5 +- .../stub/SessionEntityTypesStubSettings.java | 5 +- .../v2/stub/SessionsStubSettings.java | 5 +- .../dialogflow/v2beta1/AgentsClient.java | 56 +- .../dialogflow/v2beta1/ContextsClient.java | 12 +- .../dialogflow/v2beta1/EntityTypesClient.java | 218 ++- .../dialogflow/v2beta1/IntentsClient.java | 76 +- .../v2beta1/KnowledgeBasesClient.java | 16 +- .../v2beta1/SessionEntityTypesClient.java | 10 +- .../dialogflow/v2beta1/package-info.java | 20 +- .../v2beta1/stub/AgentsStubSettings.java | 5 +- .../v2beta1/stub/ContextsStubSettings.java | 5 +- .../v2beta1/stub/DocumentsStubSettings.java | 5 +- .../v2beta1/stub/EntityTypesStubSettings.java | 5 +- .../v2beta1/stub/IntentsStubSettings.java | 5 +- .../stub/KnowledgeBasesStubSettings.java | 5 +- .../stub/SessionEntityTypesStubSettings.java | 5 +- .../v2beta1/stub/SessionsStubSettings.java | 5 +- .../dialogflow/v2/SessionsClientTest.java | 13 +- .../google-cloud-dialogflow/synth.metadata | 6 +- 298 files changed, 19816 insertions(+), 6730 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java create mode 100644 google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java index 660f52db6dcd..4816ead9aff8 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java @@ -15,26 +15,25 @@ * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * 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.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ @javax.annotation.Generated( @@ -387,26 +386,25 @@ public static AgentsFutureStub newFutureStub(io.grpc.Channel channel) { * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * 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.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public abstract static class AgentsImplBase implements io.grpc.BindableService { @@ -448,8 +446,7 @@ public void searchAgents( * *
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void trainAgent( @@ -463,9 +460,7 @@ public void trainAgent( * *
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> **/ public void exportAgent( @@ -482,8 +477,7 @@ public void exportAgent( * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void importAgent( @@ -499,8 +493,7 @@ public void importAgent( * Restores the specified agent from a ZIP file. * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void restoreAgent( @@ -561,26 +554,25 @@ public final io.grpc.ServerServiceDefinition bindService() { * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * 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.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public static final class AgentsStub extends io.grpc.stub.AbstractStub
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void trainAgent( @@ -658,9 +649,7 @@ public void trainAgent( * *
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> **/ public void exportAgent( @@ -680,8 +669,7 @@ public void exportAgent( * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void importAgent( @@ -700,8 +688,7 @@ public void importAgent( * Restores the specified agent from a ZIP file. * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void restoreAgent( @@ -722,26 +709,25 @@ public void restoreAgent( * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * 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.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public static final class AgentsBlockingStub @@ -794,8 +780,7 @@ public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents( * *
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation trainAgent( @@ -809,9 +794,7 @@ public com.google.longrunning.Operation trainAgent( * *
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> **/ public com.google.longrunning.Operation exportAgent( @@ -828,8 +811,7 @@ public com.google.longrunning.Operation exportAgent( * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public com.google.longrunning.Operation importAgent( @@ -845,8 +827,7 @@ public com.google.longrunning.Operation importAgent( * Restores the specified agent from a ZIP file. * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public com.google.longrunning.Operation restoreAgent( @@ -864,26 +845,25 @@ public com.google.longrunning.Operation restoreAgent( * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2.Intents], - * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity - * Types][google.cloud.dialogflow.v2.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage - * the flow of a conversation and match user input to predefined intents and - * actions. + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], + * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to + * manage the flow of a conversation and match user input to predefined intents + * 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.v2.Agents.ExportAgent] - * method. You can import a saved agent by using the - * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. + * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved + * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public static final class AgentsFutureStub extends io.grpc.stub.AbstractStub
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> **/ public com.google.common.util.concurrent.ListenableFuture
* Creates a context. + * If the specified context already exists, overrides the context. **/ public void createContext( @@ -543,13 +546,14 @@ public final io.grpc.ServerServiceDefinition bindService() { * geographic location, and so on. * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * */ public static final class ContextsStub extends io.grpc.stub.AbstractStub
* Creates a context. + * If the specified context already exists, overrides the context. **/ public void createContext( @@ -676,13 +681,14 @@ public void deleteAllContexts( * geographic location, and so on. * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * */ public static final class ContextsBlockingStub @@ -731,6 +737,7 @@ public com.google.cloud.dialogflow.v2.Context getContext( * *
* Creates a context. + * If the specified context already exists, overrides the context. **/ public com.google.cloud.dialogflow.v2.Context createContext( @@ -791,13 +798,14 @@ public com.google.protobuf.Empty deleteAllContexts( * geographic location, and so on. * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * */ public static final class ContextsFutureStub @@ -848,6 +856,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
* Creates a context. + * If the specified context already exists, overrides the context. **/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java index ef7b24e3861b..ad31d01b0e79 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java @@ -29,10 +29,10 @@ * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ @javax.annotation.Generated( @@ -663,10 +663,10 @@ public static EntityTypesFutureStub newFutureStub(io.grpc.Channel channel) { * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public abstract static class EntityTypesImplBase implements io.grpc.BindableService { @@ -742,9 +742,7 @@ public void deleteEntityType( * *
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> **/ public void batchUpdateEntityTypes( @@ -758,8 +756,7 @@ public void batchUpdateEntityTypes( * *
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntityTypes( @@ -772,8 +769,7 @@ public void batchDeleteEntityTypes( * * *
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -787,10 +783,10 @@ public void batchCreateEntities( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchUpdateEntities( @@ -804,8 +800,7 @@ public void batchUpdateEntities( * *
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntities( @@ -906,10 +901,10 @@ public final io.grpc.ServerServiceDefinition bindService() { * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class EntityTypesStub extends io.grpc.stub.AbstractStub
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> **/ public void batchUpdateEntityTypes( @@ -1031,8 +1024,7 @@ public void batchUpdateEntityTypes( * *
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntityTypes( @@ -1048,8 +1040,7 @@ public void batchDeleteEntityTypes( * * *
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -1066,10 +1057,10 @@ public void batchCreateEntities( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchUpdateEntities( @@ -1086,8 +1077,7 @@ public void batchUpdateEntities( * *
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntities( @@ -1122,10 +1112,10 @@ public void batchDeleteEntities( * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class EntityTypesBlockingStub @@ -1214,9 +1204,7 @@ public com.google.protobuf.Empty deleteEntityType( * *
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> **/ public com.google.longrunning.Operation batchUpdateEntityTypes( @@ -1230,8 +1218,7 @@ public com.google.longrunning.Operation batchUpdateEntityTypes( * *
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation batchDeleteEntityTypes( @@ -1244,8 +1231,7 @@ public com.google.longrunning.Operation batchDeleteEntityTypes( * * *
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -1259,10 +1245,10 @@ public com.google.longrunning.Operation batchCreateEntities( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation batchUpdateEntities( @@ -1276,8 +1262,7 @@ public com.google.longrunning.Operation batchUpdateEntities( * *
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation batchDeleteEntities( @@ -1309,10 +1294,10 @@ public com.google.longrunning.Operation batchDeleteEntities( * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class EntityTypesFutureStub @@ -1405,9 +1390,7 @@ protected EntityTypesFutureStub build( * *
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> **/ public com.google.common.util.concurrent.ListenableFuture
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -1452,10 +1433,10 @@ protected EntityTypesFutureStub build( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public void deleteIntent( @@ -553,8 +555,7 @@ public void deleteIntent( * *
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> **/ public void batchUpdateIntents( @@ -634,16 +635,16 @@ public final io.grpc.ServerServiceDefinition bindService() { * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -656,7 +657,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * * **Training phrases** - provide examples of user input to train the * Dialogflow API agent to better match intents. * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * */ public static final class IntentsStub extends io.grpc.stub.AbstractStub
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public void deleteIntent( @@ -759,8 +761,7 @@ public void deleteIntent( * *
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> **/ public void batchUpdateIntents( @@ -797,16 +798,16 @@ public void batchDeleteIntents( * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -819,7 +820,8 @@ public void batchDeleteIntents( * * **Training phrases** - provide examples of user input to train the * Dialogflow API agent to better match intents. * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * */ public static final class IntentsBlockingStub @@ -892,7 +894,7 @@ public com.google.cloud.dialogflow.v2.Intent updateIntent( * * *
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public com.google.protobuf.Empty deleteIntent( @@ -906,8 +908,7 @@ public com.google.protobuf.Empty deleteIntent( * *
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> **/ public com.google.longrunning.Operation batchUpdateIntents( @@ -938,16 +939,16 @@ public com.google.longrunning.Operation batchDeleteIntents( * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -960,7 +961,8 @@ public com.google.longrunning.Operation batchDeleteIntents( * * **Training phrases** - provide examples of user input to train the * Dialogflow API agent to better match intents. * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * */ public static final class IntentsFutureStub extends io.grpc.stub.AbstractStub
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public com.google.common.util.concurrent.ListenableFuture
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]> **/ public com.google.common.util.concurrent.ListenableFuture
* Creates a session entity type. + * If the specified session entity type already exists, overrides the session + * entity type. **/ public void createSessionEntityType( @@ -500,7 +504,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class SessionEntityTypesStub @@ -558,6 +563,8 @@ public void getSessionEntityType( * *
* Creates a session entity type. + * If the specified session entity type already exists, overrides the session + * entity type. **/ public void createSessionEntityType( @@ -617,7 +624,8 @@ public void deleteSessionEntityType( * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class SessionEntityTypesBlockingStub @@ -668,6 +676,8 @@ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType( * *
* Creates a session entity type. + * If the specified session entity type already exists, overrides the session + * entity type. **/ public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType( @@ -716,7 +726,8 @@ public com.google.protobuf.Empty deleteSessionEntityType( * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class SessionEntityTypesFutureStub @@ -769,6 +780,8 @@ protected SessionEntityTypesFutureStub build( * *
* Creates a session entity type. + * If the specified session entity type already exists, overrides the session + * entity type. **/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java index fe74e5d15682..f4eeda859deb 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java @@ -15,10 +15,9 @@ * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ @javax.annotation.Generated( @@ -171,10 +170,9 @@ public static SessionsFutureStub newFutureStub(io.grpc.Channel channel) { * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public abstract static class SessionsImplBase implements io.grpc.BindableService { @@ -240,10 +238,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public static final class SessionsStub extends io.grpc.stub.AbstractStub
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public static final class SessionsBlockingStub @@ -348,10 +344,9 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntent( * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public static final class SessionsFutureStub 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 10c766c26f93..6cedf3eeaacb 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 @@ -15,11 +15,8 @@ * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2beta1.Intents], - * [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity - * Types][google.cloud.dialogflow.v2beta1.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2beta1.Intents], [Contexts][google.cloud.dialogflow.v2beta1.Contexts], + * [Entity Types][google.cloud.dialogflow.v2beta1.EntityTypes], [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to * manage the flow of a conversation and match user input to predefined intents * and actions. * You can create an agent using both Dialogflow Standard Edition and @@ -27,15 +24,16 @@ * [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. + * 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. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ @javax.annotation.Generated( @@ -399,11 +397,8 @@ public static AgentsFutureStub newFutureStub(io.grpc.Channel channel) { * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2beta1.Intents], - * [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity - * Types][google.cloud.dialogflow.v2beta1.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2beta1.Intents], [Contexts][google.cloud.dialogflow.v2beta1.Contexts], + * [Entity Types][google.cloud.dialogflow.v2beta1.EntityTypes], [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to * manage the flow of a conversation and match user input to predefined intents * and actions. * You can create an agent using both Dialogflow Standard Edition and @@ -411,15 +406,16 @@ public static AgentsFutureStub newFutureStub(io.grpc.Channel channel) { * [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. + * 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. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public abstract static class AgentsImplBase implements io.grpc.BindableService { @@ -461,8 +457,7 @@ public void searchAgents( * *
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void trainAgent( @@ -476,9 +471,7 @@ public void trainAgent( * *
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> **/ public void exportAgent( @@ -495,8 +488,7 @@ public void exportAgent( * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void importAgent( @@ -512,8 +504,7 @@ public void importAgent( * Restores the specified agent from a ZIP file. * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void restoreAgent( @@ -574,11 +565,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2beta1.Intents], - * [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity - * Types][google.cloud.dialogflow.v2beta1.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2beta1.Intents], [Contexts][google.cloud.dialogflow.v2beta1.Contexts], + * [Entity Types][google.cloud.dialogflow.v2beta1.EntityTypes], [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to * manage the flow of a conversation and match user input to predefined intents * and actions. * You can create an agent using both Dialogflow Standard Edition and @@ -586,15 +574,16 @@ public final io.grpc.ServerServiceDefinition bindService() { * [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. + * 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. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public static final class AgentsStub extends io.grpc.stub.AbstractStub
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void trainAgent( @@ -672,9 +660,7 @@ public void trainAgent( * *
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> **/ public void exportAgent( @@ -694,8 +680,7 @@ public void exportAgent( * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void importAgent( @@ -714,8 +699,7 @@ public void importAgent( * Restores the specified agent from a ZIP file. * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public void restoreAgent( @@ -736,11 +720,8 @@ public void restoreAgent( * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2beta1.Intents], - * [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity - * Types][google.cloud.dialogflow.v2beta1.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2beta1.Intents], [Contexts][google.cloud.dialogflow.v2beta1.Contexts], + * [Entity Types][google.cloud.dialogflow.v2beta1.EntityTypes], [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to * manage the flow of a conversation and match user input to predefined intents * and actions. * You can create an agent using both Dialogflow Standard Edition and @@ -748,15 +729,16 @@ public void restoreAgent( * [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. + * 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. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public static final class AgentsBlockingStub @@ -809,8 +791,7 @@ public com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse searchAgents( * *
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation trainAgent( @@ -824,9 +805,7 @@ public com.google.longrunning.Operation trainAgent( * *
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> **/ public com.google.longrunning.Operation exportAgent( @@ -843,8 +822,7 @@ public com.google.longrunning.Operation exportAgent( * Uploads new intents and entity types without deleting the existing ones. * Intents and entity types with the same name are replaced with the new * versions from ImportAgentRequest. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public com.google.longrunning.Operation importAgent( @@ -860,8 +838,7 @@ public com.google.longrunning.Operation importAgent( * Restores the specified agent from a ZIP file. * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * */ public com.google.longrunning.Operation restoreAgent( @@ -879,11 +856,8 @@ public com.google.longrunning.Operation restoreAgent( * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add - * [Intents][google.cloud.dialogflow.v2beta1.Intents], - * [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity - * Types][google.cloud.dialogflow.v2beta1.EntityTypes], - * [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to + * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2beta1.Intents], [Contexts][google.cloud.dialogflow.v2beta1.Contexts], + * [Entity Types][google.cloud.dialogflow.v2beta1.EntityTypes], [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to * manage the flow of a conversation and match user input to predefined intents * and actions. * You can create an agent using both Dialogflow Standard Edition and @@ -891,15 +865,16 @@ public com.google.longrunning.Operation restoreAgent( * [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. + * 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. * Dialogflow provides several - * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common - * conversation scenarios such as determining a date and time, converting - * currency, and so on. + * [prebuilt + * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt) + * for common conversation scenarios such as determining a date and time, + * converting currency, and so on. * For more information about agents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/agents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * */ public static final class AgentsFutureStub extends io.grpc.stub.AbstractStub
* Trains the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
* Exports the specified agent to a ZIP file. - * Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> **/ public com.google.common.util.concurrent.ListenableFuture
* Creates a context. + * If the specified context already exists, overrides the context. **/ public void createContext( @@ -547,13 +550,14 @@ public final io.grpc.ServerServiceDefinition bindService() { * geographic location, and so on. * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * */ public static final class ContextsStub extends io.grpc.stub.AbstractStub
* Creates a context. + * If the specified context already exists, overrides the context. **/ public void createContext( @@ -680,13 +685,14 @@ public void deleteAllContexts( * geographic location, and so on. * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * */ public static final class ContextsBlockingStub @@ -735,6 +741,7 @@ public com.google.cloud.dialogflow.v2beta1.Context getContext( * *
* Creates a context. + * If the specified context already exists, overrides the context. **/ public com.google.cloud.dialogflow.v2beta1.Context createContext( @@ -795,13 +802,14 @@ public com.google.protobuf.Empty deleteAllContexts( * geographic location, and so on. * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * */ public static final class ContextsFutureStub @@ -852,6 +860,7 @@ protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
* Creates a context. + * If the specified context already exists, overrides the context. **/ public com.google.common.util.concurrent.ListenableFuture< 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 index 0e433ea82dec..ec95517fc3af 100644 --- 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 @@ -253,6 +253,120 @@ private DocumentsGrpc() {} return getDeleteDocumentMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateDocumentMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, + com.google.longrunning.Operation> + METHOD_UPDATE_DOCUMENT = getUpdateDocumentMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, + com.google.longrunning.Operation> + getUpdateDocumentMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, + com.google.longrunning.Operation> + getUpdateDocumentMethod() { + return getUpdateDocumentMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, + com.google.longrunning.Operation> + getUpdateDocumentMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, + com.google.longrunning.Operation> + getUpdateDocumentMethod; + if ((getUpdateDocumentMethod = DocumentsGrpc.getUpdateDocumentMethod) == null) { + synchronized (DocumentsGrpc.class) { + if ((getUpdateDocumentMethod = DocumentsGrpc.getUpdateDocumentMethod) == null) { + DocumentsGrpc.getUpdateDocumentMethod = + getUpdateDocumentMethod = + io.grpc.MethodDescriptor + .
* Creates a new document. * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public void createDocument( @@ -329,8 +442,7 @@ public void createDocument( *
* Deletes the specified document. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public void deleteDocument( @@ -339,6 +451,39 @@ public void deleteDocument( asyncUnimplementedUnaryCall(getDeleteDocumentMethodHelper(), responseObserver); } + /** + * + * + *
+ * Updates the specified document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void updateDocument( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Reloads the specified document from its specified source, content_uri or + * content. The previously loaded content of the document will be deleted. + * Note: Even when the content of the document has not changed, there still + * may be side effects because of internal implementation changes. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void reloadDocument( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request, + io.grpc.stub.StreamObserver
* Creates a new document. * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public void createDocument( @@ -451,8 +607,7 @@ public void createDocument( *
* Deletes the specified document. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public void deleteDocument( @@ -463,6 +618,45 @@ public void deleteDocument( request, responseObserver); } + + /** + * + * + *
+ * Updates the specified document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void updateDocument( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request, + io.grpc.stub.StreamObserver
+ * Reloads the specified document from its specified source, content_uri or + * content. The previously loaded content of the document will be deleted. + * Note: Even when the content of the document has not changed, there still + * may be side effects because of internal implementation changes. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public void reloadDocument( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request, + io.grpc.stub.StreamObserver
* Creates a new document. * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public com.google.longrunning.Operation createDocument( @@ -536,8 +729,7 @@ public com.google.longrunning.Operation createDocument( *
* Deletes the specified document. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public com.google.longrunning.Operation deleteDocument( @@ -545,6 +737,39 @@ public com.google.longrunning.Operation deleteDocument( return blockingUnaryCall( getChannel(), getDeleteDocumentMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+ * Updates the specified document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.longrunning.Operation updateDocument( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateDocumentMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Reloads the specified document from its specified source, content_uri or + * content. The previously loaded content of the document will be deleted. + * Note: Even when the content of the document has not changed, there still + * may be side effects because of internal implementation changes. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.longrunning.Operation reloadDocument( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request) { + return blockingUnaryCall( + getChannel(), getReloadDocumentMethodHelper(), getCallOptions(), request); + } } /** @@ -603,8 +828,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions *
* Creates a new document. * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], - * metadata: - * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * 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]> + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> **/ public com.google.common.util.concurrent.ListenableFuture
+ * Updates the specified document. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Reloads the specified document from its specified source, content_uri or + * content. The previously loaded content of the document will be deleted. + * Note: Even when the content of the document has not changed, there still + * may be side effects because of internal implementation changes. + * Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + *+ */ + public com.google.common.util.concurrent.ListenableFuture
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> **/ public void batchUpdateEntityTypes( @@ -765,8 +761,7 @@ public void batchUpdateEntityTypes( * *
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntityTypes( @@ -779,8 +774,7 @@ public void batchDeleteEntityTypes( * * *
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -794,10 +788,10 @@ public void batchCreateEntities( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchUpdateEntities( @@ -811,8 +805,7 @@ public void batchUpdateEntities( * *
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntities( @@ -914,11 +907,10 @@ public final io.grpc.ServerServiceDefinition bindService() { * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] - * type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class EntityTypesStub extends io.grpc.stub.AbstractStub
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> **/ public void batchUpdateEntityTypes( @@ -1043,8 +1033,7 @@ public void batchUpdateEntityTypes( * *
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntityTypes( @@ -1060,8 +1049,7 @@ public void batchDeleteEntityTypes( * * *
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -1078,10 +1066,10 @@ public void batchCreateEntities( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchUpdateEntities( @@ -1098,8 +1086,7 @@ public void batchUpdateEntities( * *
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public void batchDeleteEntities( @@ -1134,11 +1121,10 @@ public void batchDeleteEntities( * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] - * type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class EntityTypesBlockingStub @@ -1227,9 +1213,7 @@ public com.google.protobuf.Empty deleteEntityType( * *
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> **/ public com.google.longrunning.Operation batchUpdateEntityTypes( @@ -1243,8 +1227,7 @@ public com.google.longrunning.Operation batchUpdateEntityTypes( * *
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation batchDeleteEntityTypes( @@ -1257,8 +1240,7 @@ public com.google.longrunning.Operation batchDeleteEntityTypes( * * *
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -1272,10 +1254,10 @@ public com.google.longrunning.Operation batchCreateEntities( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation batchUpdateEntities( @@ -1289,8 +1271,7 @@ public com.google.longrunning.Operation batchUpdateEntities( * *
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.longrunning.Operation batchDeleteEntities( @@ -1322,11 +1303,10 @@ public com.google.longrunning.Operation batchDeleteEntities( * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] - * type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] type. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class EntityTypesFutureStub @@ -1419,9 +1399,7 @@ protected EntityTypesFutureStub build( * *
* Updates/Creates multiple entity types in the specified agent. - * Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> **/ public com.google.common.util.concurrent.ListenableFuture
* Deletes entity types in the specified agent. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
- * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ @@ -1467,10 +1443,10 @@ protected EntityTypesFutureStub build( * * *
- * Updates entities in the specified entity type (replaces the existing - * collection of entries). - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
* Deletes entities in the specified entity type. - * Operation <response: [google.protobuf.Empty][google.protobuf.Empty], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> **/ public com.google.common.util.concurrent.ListenableFuture
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public void deleteIntent( @@ -568,8 +570,7 @@ public void deleteIntent( * *
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> **/ public void batchUpdateIntents( @@ -649,16 +650,16 @@ public final io.grpc.ServerServiceDefinition bindService() { * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -671,7 +672,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * * **Training phrases** - provide examples of user input to train the * Dialogflow API agent to better match intents. * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * */ public static final class IntentsStub extends io.grpc.stub.AbstractStub
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public void deleteIntent( @@ -774,8 +776,7 @@ public void deleteIntent( * *
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> **/ public void batchUpdateIntents( @@ -812,16 +813,16 @@ public void batchDeleteIntents( * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -834,7 +835,8 @@ public void batchDeleteIntents( * * **Training phrases** - provide examples of user input to train the * Dialogflow API agent to better match intents. * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * */ public static final class IntentsBlockingStub @@ -907,7 +909,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent updateIntent( * * *
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public com.google.protobuf.Empty deleteIntent( @@ -921,8 +923,7 @@ public com.google.protobuf.Empty deleteIntent( * *
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> **/ public com.google.longrunning.Operation batchUpdateIntents( @@ -953,16 +954,16 @@ public com.google.longrunning.Operation batchDeleteIntents( * An intent represents a mapping between input from a user and an action to * be taken by your application. When you pass user input to the * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method, the Dialogflow API analyzes the input and searches for a matching - * intent. If no match is found, the Dialogflow API returns a fallback intent - * (`is_fallback` = true). + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the + * Dialogflow API analyzes the input and searches + * for a matching intent. If no match is found, the Dialogflow API returns a + * fallback intent (`is_fallback` = true). * You can provide additional information for the Dialogflow API to use to * match user input to an intent by adding the following to your intent. * * **Contexts** - provide additional context for intent analysis. For * example, if an intent is related to an object in your application that * plays music, you can provide a context to determine when to match the - * intent if the user input is “turn it off”. You can include a context + * intent if the user input is "turn it off". You can include a context * that matches the intent when there is previous user input of * "play music", and not when there is previous user input of * "turn on the light". @@ -975,7 +976,8 @@ public com.google.longrunning.Operation batchDeleteIntents( * * **Training phrases** - provide examples of user input to train the * Dialogflow API agent to better match intents. * For more information about intents, see the - * [Dialogflow documentation](https://dialogflow.com/docs/intents). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * */ public static final class IntentsFutureStub extends io.grpc.stub.AbstractStub
- * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. **/ public com.google.common.util.concurrent.ListenableFuture
* Updates/Creates multiple intents in the specified agent. - * Operation <response: - * [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> + * Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]> **/ public com.google.common.util.concurrent.ListenableFuture
+ * Updates the specified knowledge base. + *+ */ + public void updateKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified knowledge base. + *+ */ + public void updateKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver
+ * Updates the specified knowledge base. + *+ */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase updateKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateKnowledgeBaseMethodHelper(), getCallOptions(), request); + } } /** @@ -626,12 +738,28 @@ protected KnowledgeBasesFutureStub build( return futureUnaryCall( getChannel().newCall(getDeleteKnowledgeBaseMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+ * Updates the specified knowledge base. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.KnowledgeBase> + updateKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateKnowledgeBaseMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_LIST_KNOWLEDGE_BASES = 0; private static final int METHODID_GET_KNOWLEDGE_BASE = 1; private static final int METHODID_CREATE_KNOWLEDGE_BASE = 2; private static final int METHODID_DELETE_KNOWLEDGE_BASE = 3; + private static final int METHODID_UPDATE_KNOWLEDGE_BASE = 4; private static final class MethodHandlers
* Creates a session entity type. + * If the specified session entity type already exists, overrides the + * session entity type. **/ public void createSessionEntityType( @@ -505,7 +509,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class SessionEntityTypesStub @@ -564,6 +569,8 @@ public void getSessionEntityType( * *
* Creates a session entity type. + * If the specified session entity type already exists, overrides the + * session entity type. **/ public void createSessionEntityType( @@ -623,7 +630,8 @@ public void deleteSessionEntityType( * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class SessionEntityTypesBlockingStub @@ -675,6 +683,8 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp * *
* Creates a session entity type. + * If the specified session entity type already exists, overrides the + * session entity type. **/ public com.google.cloud.dialogflow.v2beta1.SessionEntityType createSessionEntityType( @@ -723,7 +733,8 @@ public com.google.protobuf.Empty deleteSessionEntityType( * favorites, preferences, playlists, and so on. You can redefine a session * entity type at the session level. * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * */ public static final class SessionEntityTypesFutureStub @@ -777,6 +788,8 @@ protected SessionEntityTypesFutureStub build( * *
* Creates a session entity type. + * If the specified session entity type already exists, overrides the + * session entity type. **/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java index c2585047c4bf..bcab04a862c1 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java @@ -15,10 +15,9 @@ * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ @javax.annotation.Generated( @@ -171,10 +170,9 @@ public static SessionsFutureStub newFutureStub(io.grpc.Channel channel) { * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public abstract static class SessionsImplBase implements io.grpc.BindableService { @@ -241,10 +239,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public static final class SessionsStub extends io.grpc.stub.AbstractStub
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public static final class SessionsBlockingStub @@ -350,10 +346,9 @@ public com.google.cloud.dialogflow.v2beta1.DetectIntentResponse detectIntent( * *
* A session represents an interaction with a user. You retrieve user input - * and pass it to the - * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) - * method to determine user intent and respond. + * and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or + * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method to determine + * user intent and respond. **/ public static final class SessionsFutureStub diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java index a28024a7a21a..3039d2e8ab7a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java @@ -408,9 +408,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
* Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -431,9 +432,10 @@ public java.lang.String getDefaultLanguageCode() {
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -605,7 +607,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -627,7 +631,9 @@ public java.lang.String getAvatarUri() {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -698,7 +704,7 @@ public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -1390,9 +1396,10 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -1413,9 +1420,10 @@ public java.lang.String getDefaultLanguageCode() {
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -1436,9 +1444,10 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -1457,9 +1466,10 @@ public Builder setDefaultLanguageCode(java.lang.String value) {
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -1475,9 +1485,10 @@ public Builder clearDefaultLanguageCode() {
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -1856,7 +1867,9 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -1878,7 +1891,9 @@ public java.lang.String getAvatarUri() {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -1900,7 +1915,9 @@ public com.google.protobuf.ByteString getAvatarUriBytes() {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -1920,7 +1937,9 @@ public Builder setAvatarUri(java.lang.String value) {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -1937,7 +1956,9 @@ public Builder clearAvatarUri() {
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -2081,7 +2102,7 @@ public Builder clearMatchMode() {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -2099,7 +2120,7 @@ public float getClassificationThreshold() {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -2120,7 +2141,7 @@ public Builder setClassificationThreshold(float value) {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java
index 454fb4a67a4f..665e4c0ed3dd 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java
@@ -57,9 +57,10 @@ public interface AgentOrBuilder
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -70,9 +71,10 @@ public interface AgentOrBuilder
*
* * Required. The default language of the agent as a language tag. See - * [Language Support](https://dialogflow.com/docs/reference/language) for a - * list of the currently supported language codes. - * This field cannot be set by the `Update` method. + * [Language + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. This field cannot be + * set by the `Update` method. ** *
string default_language_code = 3;
@@ -178,7 +180,9 @@ public interface AgentOrBuilder
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -190,7 +194,9 @@ public interface AgentOrBuilder
* * Optional. The URI of the agent's avatar. * Avatars are used throughout the Dialogflow console and in the self-hosted - * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + * [Web + * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo) + * integration. ** *
string avatar_uri = 7;
@@ -236,7 +242,7 @@ public interface AgentOrBuilder
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java
index 6270f3a34ce5..f5f5bbfe90a2 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java
@@ -59,60 +59,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n&google/cloud/dialogflow/v2/agent.proto"
+ "\022\032google.cloud.dialogflow.v2\032\034google/api"
- + "/annotations.proto\032#google/longrunning/o"
- + "perations.proto\032\033google/protobuf/empty.p"
- + "roto\032 google/protobuf/field_mask.proto\032\034"
- + "google/protobuf/struct.proto\"\375\002\n\005Agent\022\016"
- + "\n\006parent\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\035\n\025"
- + "default_language_code\030\003 \001(\t\022 \n\030supported"
- + "_language_codes\030\004 \003(\t\022\021\n\ttime_zone\030\005 \001(\t"
- + "\022\023\n\013description\030\006 \001(\t\022\022\n\navatar_uri\030\007 \001("
- + "\t\022\026\n\016enable_logging\030\010 \001(\010\022?\n\nmatch_mode\030"
- + "\t \001(\0162+.google.cloud.dialogflow.v2.Agent"
- + ".MatchMode\022 \n\030classification_threshold\030\n"
- + " \001(\002\"V\n\tMatchMode\022\032\n\026MATCH_MODE_UNSPECIF"
- + "IED\020\000\022\025\n\021MATCH_MODE_HYBRID\020\001\022\026\n\022MATCH_MO"
- + "DE_ML_ONLY\020\002\"!\n\017GetAgentRequest\022\016\n\006paren"
- + "t\030\001 \001(\t\"L\n\023SearchAgentsRequest\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\"b\n\024SearchAgentsResponse\0221\n\006agents\030"
- + "\001 \003(\0132!.google.cloud.dialogflow.v2.Agent"
- + "\022\027\n\017next_page_token\030\002 \001(\t\"#\n\021TrainAgentR"
- + "equest\022\016\n\006parent\030\001 \001(\t\"7\n\022ExportAgentReq"
- + "uest\022\016\n\006parent\030\001 \001(\t\022\021\n\tagent_uri\030\002 \001(\t\""
- + "L\n\023ExportAgentResponse\022\023\n\tagent_uri\030\001 \001("
- + "\tH\000\022\027\n\ragent_content\030\002 \001(\014H\000B\007\n\005agent\"[\n"
- + "\022ImportAgentRequest\022\016\n\006parent\030\001 \001(\t\022\023\n\ta"
- + "gent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014H"
- + "\000B\007\n\005agent\"\\\n\023RestoreAgentRequest\022\016\n\006par"
- + "ent\030\001 \001(\t\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\ragent_"
- + "content\030\003 \001(\014H\000B\007\n\005agent2\356\006\n\006Agents\022\201\001\n\010"
- + "GetAgent\022+.google.cloud.dialogflow.v2.Ge"
- + "tAgentRequest\032!.google.cloud.dialogflow."
- + "v2.Agent\"%\202\323\344\223\002\037\022\035/v2/{parent=projects/*"
- + "}/agent\022\237\001\n\014SearchAgents\022/.google.cloud."
- + "dialogflow.v2.SearchAgentsRequest\0320.goog"
- + "le.cloud.dialogflow.v2.SearchAgentsRespo"
- + "nse\",\202\323\344\223\002&\022$/v2/{parent=projects/*}/age"
- + "nt:search\022\212\001\n\nTrainAgent\022-.google.cloud."
- + "dialogflow.v2.TrainAgentRequest\032\035.google"
- + ".longrunning.Operation\".\202\323\344\223\002(\"#/v2/{par"
- + "ent=projects/*}/agent:train:\001*\022\215\001\n\013Expor"
- + "tAgent\022..google.cloud.dialogflow.v2.Expo"
- + "rtAgentRequest\032\035.google.longrunning.Oper"
- + "ation\"/\202\323\344\223\002)\"$/v2/{parent=projects/*}/a"
- + "gent:export:\001*\022\215\001\n\013ImportAgent\022..google."
- + "cloud.dialogflow.v2.ImportAgentRequest\032\035"
- + ".google.longrunning.Operation\"/\202\323\344\223\002)\"$/"
- + "v2/{parent=projects/*}/agent:import:\001*\022\220"
- + "\001\n\014RestoreAgent\022/.google.cloud.dialogflo"
- + "w.v2.RestoreAgentRequest\032\035.google.longru"
- + "nning.Operation\"0\202\323\344\223\002*\"%/v2/{parent=pro"
- + "jects/*}/agent:restore:\001*B\231\001\n\036com.google"
- + ".cloud.dialogflow.v2B\nAgentProtoP\001ZDgoog"
- + "le.golang.org/genproto/googleapis/cloud/"
- + "dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Googl"
- + "e.Cloud.Dialogflow.V2b\006proto3"
+ + "/annotations.proto\032\031google/api/resource."
+ + "proto\032#google/longrunning/operations.pro"
+ + "to\032\033google/protobuf/empty.proto\032 google/"
+ + "protobuf/field_mask.proto\032\034google/protob"
+ + "uf/struct.proto\"\375\002\n\005Agent\022\016\n\006parent\030\001 \001("
+ + "\t\022\024\n\014display_name\030\002 \001(\t\022\035\n\025default_langu"
+ + "age_code\030\003 \001(\t\022 \n\030supported_language_cod"
+ + "es\030\004 \003(\t\022\021\n\ttime_zone\030\005 \001(\t\022\023\n\013descripti"
+ + "on\030\006 \001(\t\022\022\n\navatar_uri\030\007 \001(\t\022\026\n\016enable_l"
+ + "ogging\030\010 \001(\010\022?\n\nmatch_mode\030\t \001(\0162+.googl"
+ + "e.cloud.dialogflow.v2.Agent.MatchMode\022 \n"
+ + "\030classification_threshold\030\n \001(\002\"V\n\tMatch"
+ + "Mode\022\032\n\026MATCH_MODE_UNSPECIFIED\020\000\022\025\n\021MATC"
+ + "H_MODE_HYBRID\020\001\022\026\n\022MATCH_MODE_ML_ONLY\020\002\""
+ + "!\n\017GetAgentRequest\022\016\n\006parent\030\001 \001(\t\"L\n\023Se"
+ + "archAgentsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpag"
+ + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"b\n\024Sear"
+ + "chAgentsResponse\0221\n\006agents\030\001 \003(\0132!.googl"
+ + "e.cloud.dialogflow.v2.Agent\022\027\n\017next_page"
+ + "_token\030\002 \001(\t\"#\n\021TrainAgentRequest\022\016\n\006par"
+ + "ent\030\001 \001(\t\"7\n\022ExportAgentRequest\022\016\n\006paren"
+ + "t\030\001 \001(\t\022\021\n\tagent_uri\030\002 \001(\t\"L\n\023ExportAgen"
+ + "tResponse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_"
+ + "content\030\002 \001(\014H\000B\007\n\005agent\"[\n\022ImportAgentR"
+ + "equest\022\016\n\006parent\030\001 \001(\t\022\023\n\tagent_uri\030\002 \001("
+ + "\tH\000\022\027\n\ragent_content\030\003 \001(\014H\000B\007\n\005agent\"\\\n"
+ + "\023RestoreAgentRequest\022\016\n\006parent\030\001 \001(\t\022\023\n\t"
+ + "agent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014"
+ + "H\000B\007\n\005agent2\356\006\n\006Agents\022\201\001\n\010GetAgent\022+.go"
+ + "ogle.cloud.dialogflow.v2.GetAgentRequest"
+ + "\032!.google.cloud.dialogflow.v2.Agent\"%\202\323\344"
+ + "\223\002\037\022\035/v2/{parent=projects/*}/agent\022\237\001\n\014S"
+ + "earchAgents\022/.google.cloud.dialogflow.v2"
+ + ".SearchAgentsRequest\0320.google.cloud.dial"
+ + "ogflow.v2.SearchAgentsResponse\",\202\323\344\223\002&\022$"
+ + "/v2/{parent=projects/*}/agent:search\022\212\001\n"
+ + "\nTrainAgent\022-.google.cloud.dialogflow.v2"
+ + ".TrainAgentRequest\032\035.google.longrunning."
+ + "Operation\".\202\323\344\223\002(\"#/v2/{parent=projects/"
+ + "*}/agent:train:\001*\022\215\001\n\013ExportAgent\022..goog"
+ + "le.cloud.dialogflow.v2.ExportAgentReques"
+ + "t\032\035.google.longrunning.Operation\"/\202\323\344\223\002)"
+ + "\"$/v2/{parent=projects/*}/agent:export:\001"
+ + "*\022\215\001\n\013ImportAgent\022..google.cloud.dialogf"
+ + "low.v2.ImportAgentRequest\032\035.google.longr"
+ + "unning.Operation\"/\202\323\344\223\002)\"$/v2/{parent=pr"
+ + "ojects/*}/agent:import:\001*\022\220\001\n\014RestoreAge"
+ + "nt\022/.google.cloud.dialogflow.v2.RestoreA"
+ + "gentRequest\032\035.google.longrunning.Operati"
+ + "on\"0\202\323\344\223\002*\"%/v2/{parent=projects/*}/agen"
+ + "t:restore:\001*B\231\001\n\036com.google.cloud.dialog"
+ + "flow.v2B\nAgentProtoP\001ZDgoogle.golang.org"
+ + "/genproto/googleapis/cloud/dialogflow/v2"
+ + ";dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialo"
+ + "gflow.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -126,6 +127,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -219,6 +221,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java
new file mode 100644
index 000000000000..aad2a2d27800
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java
@@ -0,0 +1,106 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public final class AudioConfigProto {
+ private AudioConfigProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n-google/cloud/dialogflow/v2/audio_confi"
+ + "g.proto\022\032google.cloud.dialogflow.v2\032\034goo"
+ + "gle/api/annotations.proto\"f\n\024VoiceSelect"
+ + "ionParams\022\014\n\004name\030\001 \001(\t\022@\n\013ssml_gender\030\002"
+ + " \001(\0162+.google.cloud.dialogflow.v2.SsmlVo"
+ + "iceGender\"\263\001\n\026SynthesizeSpeechConfig\022\025\n\r"
+ + "speaking_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016vo"
+ + "lume_gain_db\030\003 \001(\001\022\032\n\022effects_profile_id"
+ + "\030\005 \003(\t\022?\n\005voice\030\004 \001(\01320.google.cloud.dia"
+ + "logflow.v2.VoiceSelectionParams\"\315\001\n\021Outp"
+ + "utAudioConfig\022G\n\016audio_encoding\030\001 \001(\0162/."
+ + "google.cloud.dialogflow.v2.OutputAudioEn"
+ + "coding\022\031\n\021sample_rate_hertz\030\002 \001(\005\022T\n\030syn"
+ + "thesize_speech_config\030\003 \001(\01322.google.clo"
+ + "ud.dialogflow.v2.SynthesizeSpeechConfig*"
+ + "\215\001\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER"
+ + "_UNSPECIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE"
+ + "\020\001\022\034\n\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML"
+ + "_VOICE_GENDER_NEUTRAL\020\003*\244\001\n\023OutputAudioE"
+ + "ncoding\022%\n!OUTPUT_AUDIO_ENCODING_UNSPECI"
+ + "FIED\020\000\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_1"
+ + "6\020\001\022\035\n\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022\"\n\036OU"
+ + "TPUT_AUDIO_ENCODING_OGG_OPUS\020\003B\237\001\n\036com.g"
+ + "oogle.cloud.dialogflow.v2B\020AudioConfigPr"
+ + "otoP\001ZDgoogle.golang.org/genproto/google"
+ + "apis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002"
+ + "\002DF\252\002\032Google.Cloud.Dialogflow.V2b\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(),
+ },
+ assigner);
+ internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor,
+ new java.lang.String[] {
+ "Name", "SsmlGender",
+ });
+ internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor,
+ new java.lang.String[] {
+ "SpeakingRate", "Pitch", "VolumeGainDb", "EffectsProfileId", "Voice",
+ });
+ internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor,
+ new java.lang.String[] {
+ "AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java
index 0d5eae3a29d6..29d255466510 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java
@@ -8,7 +8,9 @@
*
* * 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-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java index 4b27bfb8d786..4f3c3ffa8226 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchCreateEntitiesRequest} @@ -169,7 +168,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
- * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -181,7 +180,7 @@ public java.util.List- * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -194,7 +193,7 @@ public java.util.List- * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -206,7 +205,7 @@ public int getEntitiesCount() {
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -218,7 +217,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) {
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -235,9 +234,10 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -259,9 +259,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -462,8 +463,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchCreateEntitiesRequest} @@ -794,7 +794,7 @@ private void ensureEntitiesIsMutable() { * * *
- * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -810,7 +810,7 @@ public java.util.List- * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -826,7 +826,7 @@ public int getEntitiesCount() {
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -842,7 +842,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) {
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -864,7 +864,7 @@ public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType.
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -884,7 +884,7 @@ public Builder setEntities(
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -906,7 +906,7 @@ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity valu
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -928,7 +928,7 @@ public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType.
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -948,7 +948,7 @@ public Builder addEntities(
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -968,7 +968,7 @@ public Builder addEntities(
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -988,7 +988,7 @@ public Builder addAllEntities(
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1007,7 +1007,7 @@ public Builder clearEntities() {
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1026,7 +1026,7 @@ public Builder removeEntities(int index) {
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1038,7 +1038,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuild
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1055,7 +1055,7 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1072,7 +1072,7 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1085,7 +1085,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1098,7 +1098,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1132,9 +1132,10 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1156,9 +1157,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1180,9 +1182,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1202,9 +1205,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1221,9 +1225,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java
index e33bcb515ae6..da357a3084e2 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java
@@ -35,7 +35,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -45,7 +45,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -55,7 +55,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -65,7 +65,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -76,7 +76,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of entities to create. + * Required. The entities to create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -89,9 +89,10 @@ public interface BatchCreateEntitiesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -103,9 +104,10 @@ public interface BatchCreateEntitiesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java
index 294a66a45fb1..0a73102f8462 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. + * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest} @@ -227,9 +226,10 @@ public com.google.protobuf.ByteString getEntityValuesBytes(int index) { *
* Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -251,9 +251,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -459,8 +460,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. + * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest} @@ -911,9 +911,10 @@ public Builder addEntityValuesBytes(com.google.protobuf.ByteString value) { *
* Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -935,9 +936,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -959,9 +961,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -981,9 +984,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1000,9 +1004,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java
index 224d83c894f5..6e1c99166d70 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java
@@ -86,9 +86,10 @@ public interface BatchDeleteEntitiesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -100,9 +101,10 @@ public interface BatchDeleteEntitiesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java
index c858aad5730e..d38732b78f7b 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. + * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest} @@ -387,8 +386,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. + * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java index ad18b500879c..6ea14fcc7572 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. + * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteIntentsRequest} @@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. + * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteIntentsRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java index 2405d9544383..170436eeee2c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java @@ -7,8 +7,7 @@ * * *
- * The response message for - * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest} @@ -139,8 +138,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -160,8 +159,8 @@ public java.lang.String getParent() {
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -184,7 +183,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -196,7 +195,7 @@ public java.util.List- * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -209,7 +208,7 @@ public java.util.List- * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -221,7 +220,7 @@ public int getEntitiesCount() {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -233,7 +232,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -250,9 +249,10 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -274,9 +274,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -530,8 +531,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The response message for - * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. + * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest} @@ -761,8 +761,8 @@ public Builder mergeFrom( * * *
- * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -782,8 +782,8 @@ public java.lang.String getParent() {
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -803,8 +803,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -822,8 +822,8 @@ public Builder setParent(java.lang.String value) {
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -838,8 +838,8 @@ public Builder clearParent() {
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -876,7 +876,7 @@ private void ensureEntitiesIsMutable() {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -892,7 +892,7 @@ public java.util.List- * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -908,7 +908,7 @@ public int getEntitiesCount() {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -924,7 +924,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -946,7 +946,7 @@ public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType.
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -966,7 +966,7 @@ public Builder setEntities(
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -988,7 +988,7 @@ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity valu
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1010,7 +1010,7 @@ public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType.
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1030,7 +1030,7 @@ public Builder addEntities(
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1050,7 +1050,7 @@ public Builder addEntities(
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1070,7 +1070,7 @@ public Builder addAllEntities(
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1089,7 +1089,7 @@ public Builder clearEntities() {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1108,7 +1108,7 @@ public Builder removeEntities(int index) {
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1120,7 +1120,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuild
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1137,7 +1137,7 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1154,7 +1154,7 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1167,7 +1167,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1180,7 +1180,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -1214,9 +1214,10 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1238,9 +1239,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1262,9 +1264,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1284,9 +1287,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1303,9 +1307,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java
index 82688f04d909..760ff27dd9e5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java
@@ -12,8 +12,8 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -23,8 +23,8 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The name of the entity type to update the entities in. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * Required. The name of the entity type to update or create entities in. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string parent = 1;
@@ -35,7 +35,7 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -45,7 +45,7 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -55,7 +55,7 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -65,7 +65,7 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -76,7 +76,7 @@ public interface BatchUpdateEntitiesRequestOrBuilder
*
*
* - * Required. The collection of new entities to replace the existing entities. + * Required. The entities to update or create. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
@@ -89,9 +89,10 @@ public interface BatchUpdateEntitiesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -103,9 +104,10 @@ public interface BatchUpdateEntitiesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java
index cdc5fb8b4212..919dbe2de9f4 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest} @@ -288,7 +287,7 @@ public com.google.protobuf.ByteString getEntityTypeBatchUriBytes() { * * *
- * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -300,7 +299,7 @@ public boolean hasEntityTypeBatchInline() {
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -315,7 +314,7 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline()
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -336,9 +335,10 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline()
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -360,9 +360,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -642,8 +643,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest} @@ -1094,7 +1094,7 @@ public Builder setEntityTypeBatchUriBytes(com.google.protobuf.ByteString value) * * *
- * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1106,7 +1106,7 @@ public boolean hasEntityTypeBatchInline() {
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1128,7 +1128,7 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline()
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1150,7 +1150,7 @@ public Builder setEntityTypeBatchInline(com.google.cloud.dialogflow.v2.EntityTyp
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1170,7 +1170,7 @@ public Builder setEntityTypeBatchInline(
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1203,7 +1203,7 @@ public Builder mergeEntityTypeBatchInline(
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1228,7 +1228,7 @@ public Builder clearEntityTypeBatchInline() {
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1241,7 +1241,7 @@ public Builder clearEntityTypeBatchInline() {
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1261,7 +1261,7 @@ public Builder clearEntityTypeBatchInline() {
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -1298,9 +1298,10 @@ public Builder clearEntityTypeBatchInline() {
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1322,9 +1323,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1346,9 +1348,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1368,9 +1371,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1387,9 +1391,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java
index 836c411932f9..3371d49373c8 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java
@@ -62,7 +62,7 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -72,7 +72,7 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -82,7 +82,7 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
*
*
* - * The collection of entity type to update or create. + * The collection of entity types to update or create. ** *
.google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
@@ -95,9 +95,10 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -109,9 +110,10 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entity_types`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java
index 49360e322c58..90f7a2239ed8 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java
@@ -7,8 +7,7 @@
*
*
* - * The response message for - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse} @@ -330,8 +329,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The response message for - * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. + * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java index cf7fc3288c8a..af9d0f56304a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsRequest} @@ -340,9 +339,10 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO *
* Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -364,9 +364,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -687,8 +688,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsRequest} @@ -1338,9 +1338,10 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO *
* Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1362,9 +1363,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1386,9 +1388,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1408,9 +1411,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -1427,9 +1431,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java
index 6d48fb80edcd..50d54cc8ab79 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java
@@ -93,9 +93,10 @@ public interface BatchUpdateIntentsRequestOrBuilder
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
@@ -107,9 +108,10 @@ public interface BatchUpdateIntentsRequestOrBuilder
* * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 4;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java
index d2f8508fbe55..480abd75e060 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java
@@ -7,8 +7,7 @@
*
*
* - * The response message for - * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsResponse} @@ -329,8 +328,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The response message for - * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. + * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. ** * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java index 758296097de0..49b23593bbee 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java @@ -119,6 +119,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
* Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -140,6 +142,8 @@ public java.lang.String getName() {
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -164,7 +168,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. ** @@ -181,8 +185,9 @@ public int getLifespanCount() { * *
* Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -195,8 +200,9 @@ public boolean hasParameters() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -209,8 +215,9 @@ public com.google.protobuf.Struct getParameters() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -584,6 +591,8 @@ public Builder mergeFrom(
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -605,6 +614,8 @@ public java.lang.String getName() {
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -626,6 +637,8 @@ public com.google.protobuf.ByteString getNameBytes() {
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -645,6 +658,8 @@ public Builder setName(java.lang.String value) {
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -661,6 +676,8 @@ public Builder clearName() {
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -683,7 +700,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. ** @@ -698,7 +715,7 @@ public int getLifespanCount() { *
* Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. ** @@ -716,7 +733,7 @@ public Builder setLifespanCount(int value) { *
* Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. ** @@ -740,8 +757,9 @@ public Builder clearLifespanCount() { * *
* Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -754,8 +772,9 @@ public boolean hasParameters() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -772,8 +791,9 @@ public com.google.protobuf.Struct getParameters() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -796,8 +816,9 @@ public Builder setParameters(com.google.protobuf.Struct value) {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -817,8 +838,9 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -843,8 +865,9 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -865,8 +888,9 @@ public Builder clearParameters() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -881,8 +905,9 @@ public com.google.protobuf.Struct.Builder getParametersBuilder() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -899,8 +924,9 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java
index dc8f69402013..1995991827df 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java
@@ -14,6 +14,8 @@ public interface ContextOrBuilder
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -25,6 +27,8 @@ public interface ContextOrBuilder
* * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`. + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. ** *
string name = 1;
@@ -37,7 +41,7 @@ public interface ContextOrBuilder
* * Optional. The number of conversational query requests after which the * context expires. If set to `0` (the default) the context expires - * immediately. Contexts expire automatically after 10 minutes even if there + * immediately. Contexts expire automatically after 20 minutes if there * are no matching queries. ** @@ -50,8 +54,9 @@ public interface ContextOrBuilder * *
* Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -62,8 +67,9 @@ public interface ContextOrBuilder
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
@@ -74,8 +80,9 @@ public interface ContextOrBuilder
*
* * Optional. The collection of parameters associated with this context. - * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - * syntax. + * Refer to [this + * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters) + * for syntax. ** *
.google.protobuf.Struct parameters = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java
index 1c7c0d47a069..413804d938a6 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java
@@ -55,54 +55,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n(google/cloud/dialogflow/v2/context.pro"
+ "to\022\032google.cloud.dialogflow.v2\032\034google/a"
- + "pi/annotations.proto\032\033google/protobuf/em"
- + "pty.proto\032 google/protobuf/field_mask.pr"
- + "oto\032\034google/protobuf/struct.proto\"\\\n\007Con"
- + "text\022\014\n\004name\030\001 \001(\t\022\026\n\016lifespan_count\030\002 \001"
- + "(\005\022+\n\nparameters\030\003 \001(\0132\027.google.protobuf"
- + ".Struct\"L\n\023ListContextsRequest\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\"f\n\024ListContextsResponse\0225\n\010context"
- + "s\030\001 \003(\0132#.google.cloud.dialogflow.v2.Con"
- + "text\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetCont"
- + "extRequest\022\014\n\004name\030\001 \001(\t\"\\\n\024CreateContex"
- + "tRequest\022\016\n\006parent\030\001 \001(\t\0224\n\007context\030\002 \001("
- + "\0132#.google.cloud.dialogflow.v2.Context\"}"
- + "\n\024UpdateContextRequest\0224\n\007context\030\001 \001(\0132"
- + "#.google.cloud.dialogflow.v2.Context\022/\n\013"
- + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel"
- + "dMask\"$\n\024DeleteContextRequest\022\014\n\004name\030\001 "
- + "\001(\t\"*\n\030DeleteAllContextsRequest\022\016\n\006paren"
- + "t\030\001 \001(\t2\357\007\n\010Contexts\022\254\001\n\014ListContexts\022/."
- + "google.cloud.dialogflow.v2.ListContextsR"
- + "equest\0320.google.cloud.dialogflow.v2.List"
- + "ContextsResponse\"9\202\323\344\223\0023\0221/v2/{parent=pr"
- + "ojects/*/agent/sessions/*}/contexts\022\233\001\n\n"
- + "GetContext\022-.google.cloud.dialogflow.v2."
- + "GetContextRequest\032#.google.cloud.dialogf"
- + "low.v2.Context\"9\202\323\344\223\0023\0221/v2/{name=projec"
- + "ts/*/agent/sessions/*/contexts/*}\022\252\001\n\rCr"
- + "eateContext\0220.google.cloud.dialogflow.v2"
- + ".CreateContextRequest\032#.google.cloud.dia"
- + "logflow.v2.Context\"B\202\323\344\223\002<\"1/v2/{parent="
- + "projects/*/agent/sessions/*}/contexts:\007c"
- + "ontext\022\262\001\n\rUpdateContext\0220.google.cloud."
- + "dialogflow.v2.UpdateContextRequest\032#.goo"
- + "gle.cloud.dialogflow.v2.Context\"J\202\323\344\223\002D2"
- + "9/v2/{context.name=projects/*/agent/sess"
- + "ions/*/contexts/*}:\007context\022\224\001\n\rDeleteCo"
- + "ntext\0220.google.cloud.dialogflow.v2.Delet"
- + "eContextRequest\032\026.google.protobuf.Empty\""
- + "9\202\323\344\223\0023*1/v2/{name=projects/*/agent/sess"
- + "ions/*/contexts/*}\022\234\001\n\021DeleteAllContexts"
- + "\0224.google.cloud.dialogflow.v2.DeleteAllC"
- + "ontextsRequest\032\026.google.protobuf.Empty\"9"
- + "\202\323\344\223\0023*1/v2/{parent=projects/*/agent/ses"
- + "sions/*}/contextsB\233\001\n\036com.google.cloud.d"
- + "ialogflow.v2B\014ContextProtoP\001ZDgoogle.gol"
- + "ang.org/genproto/googleapis/cloud/dialog"
- + "flow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Clou"
- + "d.Dialogflow.V2b\006proto3"
+ + "pi/annotations.proto\032\031google/api/resourc"
+ + "e.proto\032\033google/protobuf/empty.proto\032 go"
+ + "ogle/protobuf/field_mask.proto\032\034google/p"
+ + "rotobuf/struct.proto\"\\\n\007Context\022\014\n\004name\030"
+ + "\001 \001(\t\022\026\n\016lifespan_count\030\002 \001(\005\022+\n\nparamet"
+ + "ers\030\003 \001(\0132\027.google.protobuf.Struct\"L\n\023Li"
+ + "stContextsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpag"
+ + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"f\n\024List"
+ + "ContextsResponse\0225\n\010contexts\030\001 \003(\0132#.goo"
+ + "gle.cloud.dialogflow.v2.Context\022\027\n\017next_"
+ + "page_token\030\002 \001(\t\"!\n\021GetContextRequest\022\014\n"
+ + "\004name\030\001 \001(\t\"\\\n\024CreateContextRequest\022\016\n\006p"
+ + "arent\030\001 \001(\t\0224\n\007context\030\002 \001(\0132#.google.cl"
+ + "oud.dialogflow.v2.Context\"}\n\024UpdateConte"
+ + "xtRequest\0224\n\007context\030\001 \001(\0132#.google.clou"
+ + "d.dialogflow.v2.Context\022/\n\013update_mask\030\002"
+ + " \001(\0132\032.google.protobuf.FieldMask\"$\n\024Dele"
+ + "teContextRequest\022\014\n\004name\030\001 \001(\t\"*\n\030Delete"
+ + "AllContextsRequest\022\016\n\006parent\030\001 \001(\t2\357\007\n\010C"
+ + "ontexts\022\254\001\n\014ListContexts\022/.google.cloud."
+ + "dialogflow.v2.ListContextsRequest\0320.goog"
+ + "le.cloud.dialogflow.v2.ListContextsRespo"
+ + "nse\"9\202\323\344\223\0023\0221/v2/{parent=projects/*/agen"
+ + "t/sessions/*}/contexts\022\233\001\n\nGetContext\022-."
+ + "google.cloud.dialogflow.v2.GetContextReq"
+ + "uest\032#.google.cloud.dialogflow.v2.Contex"
+ + "t\"9\202\323\344\223\0023\0221/v2/{name=projects/*/agent/se"
+ + "ssions/*/contexts/*}\022\252\001\n\rCreateContext\0220"
+ + ".google.cloud.dialogflow.v2.CreateContex"
+ + "tRequest\032#.google.cloud.dialogflow.v2.Co"
+ + "ntext\"B\202\323\344\223\002<\"1/v2/{parent=projects/*/ag"
+ + "ent/sessions/*}/contexts:\007context\022\262\001\n\rUp"
+ + "dateContext\0220.google.cloud.dialogflow.v2"
+ + ".UpdateContextRequest\032#.google.cloud.dia"
+ + "logflow.v2.Context\"J\202\323\344\223\002D29/v2/{context"
+ + ".name=projects/*/agent/sessions/*/contex"
+ + "ts/*}:\007context\022\224\001\n\rDeleteContext\0220.googl"
+ + "e.cloud.dialogflow.v2.DeleteContextReque"
+ + "st\032\026.google.protobuf.Empty\"9\202\323\344\223\0023*1/v2/"
+ + "{name=projects/*/agent/sessions/*/contex"
+ + "ts/*}\022\234\001\n\021DeleteAllContexts\0224.google.clo"
+ + "ud.dialogflow.v2.DeleteAllContextsReques"
+ + "t\032\026.google.protobuf.Empty\"9\202\323\344\223\0023*1/v2/{"
+ + "parent=projects/*/agent/sessions/*}/cont"
+ + "extsB\233\001\n\036com.google.cloud.dialogflow.v2B"
+ + "\014ContextProtoP\001ZDgoogle.golang.org/genpr"
+ + "oto/googleapis/cloud/dialogflow/v2;dialo"
+ + "gflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow."
+ + "V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -116,6 +117,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
@@ -191,6 +193,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java
index d4d4d4544485..a679fdbc6eac 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. + * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateContextRequest} @@ -371,8 +370,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. + * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java index 20ac1d3ce041..9ed710de073a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. + * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateEntityTypeRequest} @@ -210,9 +209,10 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder *
* Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -234,9 +234,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -440,8 +441,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. + * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateEntityTypeRequest} @@ -905,9 +905,10 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder *
* Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -929,9 +930,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -953,9 +955,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -975,9 +978,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -994,9 +998,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java
index f428a7aa8bb3..339a97cb69ab 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java
@@ -68,9 +68,10 @@ public interface CreateEntityTypeRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -82,9 +83,10 @@ public interface CreateEntityTypeRequestOrBuilder
* * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java
index 241d0c1d55fe..6546a4aea19c 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. + * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateIntentRequest} @@ -216,9 +215,10 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() { *
* Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -240,9 +240,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -486,8 +487,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. + * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateIntentRequest} @@ -956,9 +956,10 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() { *
* Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -980,9 +981,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1004,9 +1006,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1026,9 +1029,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -1045,9 +1049,10 @@ public Builder clearLanguageCode() {
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java
index fc7a5b41f55f..b897895a843c 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java
@@ -68,9 +68,10 @@ public interface CreateIntentRequestOrBuilder
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
@@ -82,9 +83,10 @@ public interface CreateIntentRequestOrBuilder
* * Optional. The language of training phrases, parameters and rich messages * defined in `intent`. If not specified, the agent's default language is - * used. [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * used. [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java
index d1de2cd91168..02e59e87a0f6 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. + * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest} @@ -373,8 +372,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. + * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java index 6c1e14b443b0..1873165d47c0 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. + * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteAllContextsRequest} @@ -301,8 +300,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. + * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteAllContextsRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java index 86d82c2b8f4b..ae33487eb675 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. + * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteContextRequest} @@ -300,8 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. + * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java index 34a748c16217..b57e16220206 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. + * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteEntityTypeRequest} @@ -301,8 +300,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. + * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java index 7d8fe8f59eb1..8d5a74015b78 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. + * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteIntentRequest} @@ -98,7 +97,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -119,7 +119,8 @@ public java.lang.String getName() { * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -300,8 +301,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. + * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteIntentRequest} @@ -461,7 +461,8 @@ public Builder mergeFrom( * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -482,7 +483,8 @@ public java.lang.String getName() { * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -503,7 +505,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -522,7 +525,8 @@ public Builder setName(java.lang.String value) { * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -538,7 +542,8 @@ public Builder clearName() { * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java index fbbd582371e5..7b5c27fd1240 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java @@ -12,7 +12,8 @@ public interface DeleteIntentRequestOrBuilder * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -23,7 +24,8 @@ public interface DeleteIntentRequestOrBuilder * * *
- * Required. The name of the intent to delete. + * Required. The name of the intent to delete. If this intent has direct or + * indirect followup intents, we also delete them. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java index a7ca40dd55b8..0844149e4810 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. + * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest} @@ -304,8 +303,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. + * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java index d3d93e28fc43..74786f648b47 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java @@ -88,6 +88,22 @@ private DetectIntentRequest( queryInput_ = subBuilder.buildPartial(); } + break; + } + case 34: + { + com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; + if (outputAudioConfig_ != null) { + subBuilder = outputAudioConfig_.toBuilder(); + } + outputAudioConfig_ = + input.readMessage( + com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputAudioConfig_); + outputAudioConfig_ = subBuilder.buildPartial(); + } + break; } case 42: @@ -274,6 +290,53 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder return getQueryInput(); } + public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
public static final int INPUT_AUDIO_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString inputAudio_;
/**
@@ -314,6 +377,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (queryInput_ != null) {
output.writeMessage(3, getQueryInput());
}
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(4, getOutputAudioConfig());
+ }
if (!inputAudio_.isEmpty()) {
output.writeBytes(5, inputAudio_);
}
@@ -335,6 +401,9 @@ public int getSerializedSize() {
if (queryInput_ != null) {
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_);
}
@@ -363,6 +432,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasQueryInput()) {
if (!getQueryInput().equals(other.getQueryInput())) return false;
}
+ if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false;
+ if (hasOutputAudioConfig()) {
+ if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false;
+ }
if (!getInputAudio().equals(other.getInputAudio())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
@@ -385,6 +458,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();
@@ -546,6 +623,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;
@@ -586,6 +669,11 @@ public com.google.cloud.dialogflow.v2.DetectIntentRequest buildPartial() {
} else {
result.queryInput_ = queryInputBuilder_.build();
}
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
result.inputAudio_ = inputAudio_;
onBuilt();
return result;
@@ -647,6 +735,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.DetectIntentRequest othe
if (other.hasQueryInput()) {
mergeQueryInput(other.getQueryInput());
}
+ if (other.hasOutputAudioConfig()) {
+ mergeOutputAudioConfig(other.getOutputAudioConfig());
+ }
if (other.getInputAudio() != com.google.protobuf.ByteString.EMPTY) {
setInputAudio(other.getInputAudio());
}
@@ -1194,6 +1285,207 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
return queryInputBuilder_;
}
+ private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder
+ getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.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-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java
index 60c2b3e04da0..347d1495691b 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java
@@ -111,6 +111,43 @@ public interface DetectIntentRequestOrBuilder
*/
com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
+
/**
*
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java
index 41a08676a6cd..399ba759eab2 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java
@@ -24,6 +24,7 @@ private DetectIntentResponse(com.google.protobuf.GeneratedMessageV3.Builder> b
private DetectIntentResponse() {
responseId_ = "";
+ outputAudio_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@@ -85,6 +86,27 @@ private DetectIntentResponse(
webhookStatus_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 34:
+ {
+ outputAudio_ = input.readBytes();
+ break;
+ }
+ case 50:
+ {
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null;
+ if (outputAudioConfig_ != null) {
+ subBuilder = outputAudioConfig_.toBuilder();
+ }
+ outputAudioConfig_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(outputAudioConfig_);
+ outputAudioConfig_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -172,7 +194,8 @@ public com.google.protobuf.ByteString getResponseIdBytes() {
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -184,7 +207,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.v2.QueryResult query_result = 2;
@@ -198,7 +222,8 @@ public com.google.cloud.dialogflow.v2.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.v2.QueryResult query_result = 2;
@@ -213,8 +238,7 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -226,8 +250,7 @@ public boolean hasWebhookStatus() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -239,8 +262,7 @@ public com.google.rpc.Status getWebhookStatus() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -249,6 +271,67 @@ 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. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + *+ * + *
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.v2.OutputAudioConfig outputAudioConfig_;
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance()
+ : outputAudioConfig_;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -272,6 +355,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (webhookStatus_ != null) {
output.writeMessage(3, getWebhookStatus());
}
+ if (!outputAudio_.isEmpty()) {
+ output.writeBytes(4, outputAudio_);
+ }
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(6, getOutputAudioConfig());
+ }
unknownFields.writeTo(output);
}
@@ -290,6 +379,12 @@ public int getSerializedSize() {
if (webhookStatus_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWebhookStatus());
}
+ if (!outputAudio_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, outputAudio_);
+ }
+ if (outputAudioConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputAudioConfig());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -315,6 +410,11 @@ public boolean equals(final java.lang.Object obj) {
if (hasWebhookStatus()) {
if (!getWebhookStatus().equals(other.getWebhookStatus())) return false;
}
+ if (!getOutputAudio().equals(other.getOutputAudio())) return false;
+ if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false;
+ if (hasOutputAudioConfig()) {
+ if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -336,6 +436,12 @@ public int hashCode() {
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;
@@ -495,6 +601,14 @@ public Builder clear() {
webhookStatus_ = null;
webhookStatusBuilder_ = null;
}
+ outputAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
return this;
}
@@ -533,6 +647,12 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse buildPartial() {
} else {
result.webhookStatus_ = webhookStatusBuilder_.build();
}
+ result.outputAudio_ = outputAudio_;
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -593,6 +713,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.DetectIntentResponse oth
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;
@@ -732,7 +858,8 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) {
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -744,7 +871,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.v2.QueryResult query_result = 2;
@@ -762,7 +890,8 @@ public com.google.cloud.dialogflow.v2.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.v2.QueryResult query_result = 2;
@@ -784,7 +913,8 @@ public Builder setQueryResult(com.google.cloud.dialogflow.v2.QueryResult value)
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -804,7 +934,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.v2.QueryResult query_result = 2;
@@ -830,7 +961,8 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.v2.QueryResult value
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -850,7 +982,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.v2.QueryResult query_result = 2;
@@ -864,7 +997,8 @@ public com.google.cloud.dialogflow.v2.QueryResult.Builder getQueryResultBuilder(
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -882,7 +1016,8 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -912,8 +1047,7 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -925,8 +1059,7 @@ public boolean hasWebhookStatus() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -942,8 +1075,7 @@ public com.google.rpc.Status getWebhookStatus() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -965,8 +1097,7 @@ public Builder setWebhookStatus(com.google.rpc.Status value) {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -985,8 +1116,7 @@ public Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue) {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -1010,8 +1140,7 @@ public Builder mergeWebhookStatus(com.google.rpc.Status value) {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -1031,8 +1160,7 @@ public Builder clearWebhookStatus() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -1046,8 +1174,7 @@ public com.google.rpc.Status.Builder getWebhookStatusBuilder() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -1063,8 +1190,7 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -1084,6 +1210,251 @@ 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. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + *+ * + *
bytes output_audio = 4;
+ */
+ public com.google.protobuf.ByteString getOutputAudio() {
+ return outputAudio_;
+ }
+ /**
+ *
+ *
+ * + * The audio data bytes encoded as specified in the request. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + *+ * + *
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. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + *+ * + *
bytes output_audio = 4;
+ */
+ public Builder clearOutputAudio() {
+
+ outputAudio_ = getDefaultInstance().getOutputAudio();
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+ outputAudioConfigBuilder_;
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public boolean hasOutputAudioConfig() {
+ return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance()
+ : outputAudioConfig_;
+ } else {
+ return outputAudioConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputAudioConfig_ = value;
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder builderForValue) {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(outputAudioConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ outputAudioConfig_ = value;
+ }
+ onChanged();
+ } else {
+ outputAudioConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder clearOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ onChanged();
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioConfigBuilder() {
+
+ onChanged();
+ return getOutputAudioConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder
+ getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance()
+ : outputAudioConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>(
+ getOutputAudioConfig(), getParentForChildren(), isClean());
+ outputAudioConfig_ = null;
+ }
+ return outputAudioConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java
index e7383c29b27c..c0b02f4b0afb 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java
@@ -35,7 +35,8 @@ public interface DetectIntentResponseOrBuilder
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -45,7 +46,8 @@ public interface DetectIntentResponseOrBuilder
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -55,7 +57,8 @@ public interface DetectIntentResponseOrBuilder
*
*
* - * 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.v2.QueryResult query_result = 2;
@@ -66,8 +69,7 @@ public interface DetectIntentResponseOrBuilder
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -77,8 +79,7 @@ public interface DetectIntentResponseOrBuilder
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
@@ -88,11 +89,57 @@ public interface DetectIntentResponseOrBuilder
*
*
* - * Specifies the status of the webhook request. `webhook_status` - * is never populated in webhook requests. + * Specifies the status of the webhook request. ** *
.google.rpc.Status webhook_status = 3;
*/
com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder();
+
+ /**
+ *
+ *
+ * + * The audio data bytes encoded as specified in the request. + * Note: The output audio is generated based on the values of default platform + * text responses found in the `query_result.fulfillment_messages` field. If + * multiple default text responses exist, they will be concatenated when + * generating audio. If no default platform text responses exist, the + * generated audio content will be empty. + *+ * + *
bytes output_audio = 4;
+ */
+ com.google.protobuf.ByteString getOutputAudio();
+
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ boolean hasOutputAudioConfig();
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig();
+ /**
+ *
+ *
+ * + * The config used by the speech synthesizer to generate the output audio. + *+ * + *
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java
index 98d6c1abfbc9..a68bcd02c751 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java
@@ -424,12 +424,14 @@ public interface EntityOrBuilder
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -439,12 +441,14 @@ public interface EntityOrBuilder
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -455,8 +459,11 @@ public interface EntityOrBuilder
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -466,8 +473,11 @@ public interface EntityOrBuilder
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -477,8 +487,11 @@ public interface EntityOrBuilder
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -488,8 +501,11 @@ public interface EntityOrBuilder
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -500,7 +516,7 @@ public interface EntityOrBuilder
*
*
* - * Optional. Represents an entity. + * An **entity entry** for an associated entity type. ** * Protobuf type {@code google.cloud.dialogflow.v2.EntityType.Entity} @@ -605,12 +621,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -630,12 +648,14 @@ public java.lang.String getValue() {
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -658,8 +678,11 @@ public com.google.protobuf.ByteString getValueBytes() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -671,8 +694,11 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -684,8 +710,11 @@ public int getSynonymsCount() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -697,8 +726,11 @@ public java.lang.String getSynonyms(int index) {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -887,7 +919,7 @@ protected Builder newBuilderForType(
*
*
* - * Optional. Represents an entity. + * An **entity entry** for an associated entity type. ** * Protobuf type {@code google.cloud.dialogflow.v2.EntityType.Entity} @@ -1072,12 +1104,14 @@ public Builder mergeFrom( * * *
- * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -1097,12 +1131,14 @@ public java.lang.String getValue() {
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -1122,12 +1158,14 @@ public com.google.protobuf.ByteString getValueBytes() {
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -1145,12 +1183,14 @@ public Builder setValue(java.lang.String value) {
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -1165,12 +1205,14 @@ public Builder clearValue() {
*
*
* - * Required. + * Required. The primary value associated with this entity entry. + * For example, if the entity type is *vegetable*, the value could be + * *scallions*. * For `KIND_MAP` entity types: - * A canonical name to be used in place of synonyms. + * * A canonical value to be used in place of synonyms. * For `KIND_LIST` entity types: - * A string that can contain references to other entity types (with or - * without aliases). + * * A string that can contain references to other entity types (with or + * without aliases). ** *
string value = 1;
@@ -1199,8 +1241,11 @@ private void ensureSynonymsIsMutable() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1212,8 +1257,11 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1225,8 +1273,11 @@ public int getSynonymsCount() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1238,8 +1289,11 @@ public java.lang.String getSynonyms(int index) {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1251,8 +1305,11 @@ public com.google.protobuf.ByteString getSynonymsBytes(int index) {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1270,8 +1327,11 @@ public Builder setSynonyms(int index, java.lang.String value) {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1289,8 +1349,11 @@ public Builder addSynonyms(java.lang.String value) {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1305,8 +1368,11 @@ public Builder addAllSynonyms(java.lang.Iterable- * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1321,8 +1387,11 @@ public Builder clearSynonyms() {
*
*
* - * Required. A collection of synonyms. For `KIND_LIST` entity types this - * must contain exactly one synonym equal to `value`. + * Required. A collection of value synonyms. For example, if the entity type + * is *vegetable*, and `value` is *scallions*, a synonym could be *green + * onions*. + * For `KIND_LIST` entity types: + * * This collection must contain exactly one synonym equal to `value`. ** *
repeated string synonyms = 2;
@@ -1397,10 +1466,10 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getDefaultInstanceForTyp
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -1420,10 +1489,10 @@ public java.lang.String getName() {
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -1446,7 +1515,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -1466,7 +1535,7 @@ public java.lang.String getDisplayName() {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -1553,7 +1622,7 @@ public com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode getAutoExpans
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -1565,7 +1634,7 @@ public java.util.List- * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -1578,7 +1647,7 @@ public java.util.List- * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -1590,7 +1659,7 @@ public int getEntitiesCount() {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -1602,7 +1671,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2046,10 +2115,10 @@ public Builder mergeFrom(
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -2069,10 +2138,10 @@ public java.lang.String getName() {
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -2092,10 +2161,10 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -2113,10 +2182,10 @@ public Builder setName(java.lang.String value) {
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -2131,10 +2200,10 @@ public Builder clearName() {
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -2155,7 +2224,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -2175,7 +2244,7 @@ public java.lang.String getDisplayName() {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -2195,7 +2264,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -2213,7 +2282,7 @@ public Builder setDisplayName(java.lang.String value) {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -2228,7 +2297,7 @@ public Builder clearDisplayName() {
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -2430,7 +2499,7 @@ private void ensureEntitiesIsMutable() {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2446,7 +2515,7 @@ public java.util.List- * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2462,7 +2531,7 @@ public int getEntitiesCount() {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2478,7 +2547,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2500,7 +2569,7 @@ public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType.
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2520,7 +2589,7 @@ public Builder setEntities(
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2542,7 +2611,7 @@ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity valu
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2564,7 +2633,7 @@ public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType.
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2584,7 +2653,7 @@ public Builder addEntities(
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2604,7 +2673,7 @@ public Builder addEntities(
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2624,7 +2693,7 @@ public Builder addAllEntities(
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2643,7 +2712,7 @@ public Builder clearEntities() {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2662,7 +2731,7 @@ public Builder removeEntities(int index) {
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2674,7 +2743,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuild
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2691,7 +2760,7 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2708,7 +2777,7 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2721,7 +2790,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -2734,7 +2803,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java
index e387f647c33e..621bc2ea77bb 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java
@@ -12,10 +12,10 @@ public interface EntityTypeOrBuilder
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -25,10 +25,10 @@ public interface EntityTypeOrBuilder
*
*
* - * Required for all methods except `create` (`create` populates the name - * automatically. - * The unique identifier of the entity type. Format: - * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. + * The unique identifier of the entity type. + * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and + * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. + * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. ** *
string name = 1;
@@ -39,7 +39,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -49,7 +49,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Required. The name of the entity. + * Required. The name of the entity type. ** *
string display_name = 2;
@@ -104,7 +104,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -114,7 +114,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -124,7 +124,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -134,7 +134,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
@@ -145,7 +145,7 @@ public interface EntityTypeOrBuilder
*
*
* - * Optional. The collection of entities associated with the entity type. + * Optional. The collection of entity entries associated with the entity type. ** *
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java
index c4ed75488643..a273d1da3363 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java
@@ -83,109 +83,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n,google/cloud/dialogflow/v2/entity_type"
+ ".proto\022\032google.cloud.dialogflow.v2\032\034goog"
- + "le/api/annotations.proto\032#google/longrun"
- + "ning/operations.proto\032\033google/protobuf/e"
- + "mpty.proto\032 google/protobuf/field_mask.p"
- + "roto\032\034google/protobuf/struct.proto\"\304\003\n\nE"
- + "ntityType\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030"
- + "\002 \001(\t\0229\n\004kind\030\003 \001(\0162+.google.cloud.dialo"
- + "gflow.v2.EntityType.Kind\022U\n\023auto_expansi"
- + "on_mode\030\004 \001(\01628.google.cloud.dialogflow."
- + "v2.EntityType.AutoExpansionMode\022?\n\010entit"
- + "ies\030\006 \003(\0132-.google.cloud.dialogflow.v2.E"
- + "ntityType.Entity\032)\n\006Entity\022\r\n\005value\030\001 \001("
- + "\t\022\020\n\010synonyms\030\002 \003(\t\"9\n\004Kind\022\024\n\020KIND_UNSP"
- + "ECIFIED\020\000\022\014\n\010KIND_MAP\020\001\022\r\n\tKIND_LIST\020\002\"Y"
- + "\n\021AutoExpansionMode\022#\n\037AUTO_EXPANSION_MO"
- + "DE_UNSPECIFIED\020\000\022\037\n\033AUTO_EXPANSION_MODE_"
- + "DEFAULT\020\001\"f\n\026ListEntityTypesRequest\022\016\n\006p"
- + "arent\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\021\n\tpa"
- + "ge_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"p\n\027Lis"
- + "tEntityTypesResponse\022<\n\014entity_types\030\001 \003"
- + "(\0132&.google.cloud.dialogflow.v2.EntityTy"
- + "pe\022\027\n\017next_page_token\030\002 \001(\t\";\n\024GetEntity"
- + "TypeRequest\022\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_co"
- + "de\030\002 \001(\t\"}\n\027CreateEntityTypeRequest\022\016\n\006p"
- + "arent\030\001 \001(\t\022;\n\013entity_type\030\002 \001(\0132&.googl"
- + "e.cloud.dialogflow.v2.EntityType\022\025\n\rlang"
- + "uage_code\030\003 \001(\t\"\236\001\n\027UpdateEntityTypeRequ"
- + "est\022;\n\013entity_type\030\001 \001(\0132&.google.cloud."
- + "dialogflow.v2.EntityType\022\025\n\rlanguage_cod"
- + "e\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.pr"
- + "otobuf.FieldMask\"\'\n\027DeleteEntityTypeRequ"
- + "est\022\014\n\004name\030\001 \001(\t\"\376\001\n\035BatchUpdateEntityT"
- + "ypesRequest\022\016\n\006parent\030\001 \001(\t\022\037\n\025entity_ty"
- + "pe_batch_uri\030\002 \001(\tH\000\022O\n\030entity_type_batc"
- + "h_inline\030\003 \001(\0132+.google.cloud.dialogflow"
- + ".v2.EntityTypeBatchH\000\022\025\n\rlanguage_code\030\004"
- + " \001(\t\022/\n\013update_mask\030\005 \001(\0132\032.google.proto"
- + "buf.FieldMaskB\023\n\021entity_type_batch\"^\n\036Ba"
- + "tchUpdateEntityTypesResponse\022<\n\014entity_t"
- + "ypes\030\001 \003(\0132&.google.cloud.dialogflow.v2."
- + "EntityType\"J\n\035BatchDeleteEntityTypesRequ"
- + "est\022\016\n\006parent\030\001 \001(\t\022\031\n\021entity_type_names"
- + "\030\002 \003(\t\"\204\001\n\032BatchCreateEntitiesRequest\022\016\n"
- + "\006parent\030\001 \001(\t\022?\n\010entities\030\002 \003(\0132-.google"
- + ".cloud.dialogflow.v2.EntityType.Entity\022\025"
- + "\n\rlanguage_code\030\003 \001(\t\"\265\001\n\032BatchUpdateEnt"
- + "itiesRequest\022\016\n\006parent\030\001 \001(\t\022?\n\010entities"
- + "\030\002 \003(\0132-.google.cloud.dialogflow.v2.Enti"
- + "tyType.Entity\022\025\n\rlanguage_code\030\003 \001(\t\022/\n\013"
- + "update_mask\030\004 \001(\0132\032.google.protobuf.Fiel"
- + "dMask\"Z\n\032BatchDeleteEntitiesRequest\022\016\n\006p"
- + "arent\030\001 \001(\t\022\025\n\rentity_values\030\002 \003(\t\022\025\n\rla"
- + "nguage_code\030\003 \001(\t\"O\n\017EntityTypeBatch\022<\n\014"
- + "entity_types\030\001 \003(\0132&.google.cloud.dialog"
- + "flow.v2.EntityType2\203\016\n\013EntityTypes\022\255\001\n\017L"
- + "istEntityTypes\0222.google.cloud.dialogflow"
- + ".v2.ListEntityTypesRequest\0323.google.clou"
- + "d.dialogflow.v2.ListEntityTypesResponse\""
- + "1\202\323\344\223\002+\022)/v2/{parent=projects/*/agent}/e"
- + "ntityTypes\022\234\001\n\rGetEntityType\0220.google.cl"
- + "oud.dialogflow.v2.GetEntityTypeRequest\032&"
- + ".google.cloud.dialogflow.v2.EntityType\"1"
- + "\202\323\344\223\002+\022)/v2/{name=projects/*/agent/entit"
- + "yTypes/*}\022\257\001\n\020CreateEntityType\0223.google."
- + "cloud.dialogflow.v2.CreateEntityTypeRequ"
- + "est\032&.google.cloud.dialogflow.v2.EntityT"
- + "ype\">\202\323\344\223\0028\")/v2/{parent=projects/*/agen"
- + "t}/entityTypes:\013entity_type\022\273\001\n\020UpdateEn"
- + "tityType\0223.google.cloud.dialogflow.v2.Up"
- + "dateEntityTypeRequest\032&.google.cloud.dia"
- + "logflow.v2.EntityType\"J\202\323\344\223\002D25/v2/{enti"
- + "ty_type.name=projects/*/agent/entityType"
- + "s/*}:\013entity_type\022\222\001\n\020DeleteEntityType\0223"
- + ".google.cloud.dialogflow.v2.DeleteEntity"
- + "TypeRequest\032\026.google.protobuf.Empty\"1\202\323\344"
- + "\223\002+*)/v2/{name=projects/*/agent/entityTy"
- + "pes/*}\022\264\001\n\026BatchUpdateEntityTypes\0229.goog"
- + "le.cloud.dialogflow.v2.BatchUpdateEntity"
- + "TypesRequest\032\035.google.longrunning.Operat"
- + "ion\"@\202\323\344\223\002:\"5/v2/{parent=projects/*/agen"
- + "t}/entityTypes:batchUpdate:\001*\022\264\001\n\026BatchD"
- + "eleteEntityTypes\0229.google.cloud.dialogfl"
- + "ow.v2.BatchDeleteEntityTypesRequest\032\035.go"
- + "ogle.longrunning.Operation\"@\202\323\344\223\002:\"5/v2/"
- + "{parent=projects/*/agent}/entityTypes:ba"
- + "tchDelete:\001*\022\271\001\n\023BatchCreateEntities\0226.g"
- + "oogle.cloud.dialogflow.v2.BatchCreateEnt"
- + "itiesRequest\032\035.google.longrunning.Operat"
- + "ion\"K\202\323\344\223\002E\"@/v2/{parent=projects/*/agen"
- + "t/entityTypes/*}/entities:batchCreate:\001*"
- + "\022\271\001\n\023BatchUpdateEntities\0226.google.cloud."
- + "dialogflow.v2.BatchUpdateEntitiesRequest"
- + "\032\035.google.longrunning.Operation\"K\202\323\344\223\002E\""
- + "@/v2/{parent=projects/*/agent/entityType"
- + "s/*}/entities:batchUpdate:\001*\022\271\001\n\023BatchDe"
- + "leteEntities\0226.google.cloud.dialogflow.v"
- + "2.BatchDeleteEntitiesRequest\032\035.google.lo"
- + "ngrunning.Operation\"K\202\323\344\223\002E\"@/v2/{parent"
- + "=projects/*/agent/entityTypes/*}/entitie"
- + "s:batchDelete:\001*B\236\001\n\036com.google.cloud.di"
- + "alogflow.v2B\017EntityTypeProtoP\001ZDgoogle.g"
- + "olang.org/genproto/googleapis/cloud/dial"
- + "ogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cl"
- + "oud.Dialogflow.V2b\006proto3"
+ + "le/api/annotations.proto\032\031google/api/res"
+ + "ource.proto\032#google/longrunning/operatio"
+ + "ns.proto\032\033google/protobuf/empty.proto\032 g"
+ + "oogle/protobuf/field_mask.proto\032\034google/"
+ + "protobuf/struct.proto\"\304\003\n\nEntityType\022\014\n\004"
+ + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\0229\n\004kind"
+ + "\030\003 \001(\0162+.google.cloud.dialogflow.v2.Enti"
+ + "tyType.Kind\022U\n\023auto_expansion_mode\030\004 \001(\016"
+ + "28.google.cloud.dialogflow.v2.EntityType"
+ + ".AutoExpansionMode\022?\n\010entities\030\006 \003(\0132-.g"
+ + "oogle.cloud.dialogflow.v2.EntityType.Ent"
+ + "ity\032)\n\006Entity\022\r\n\005value\030\001 \001(\t\022\020\n\010synonyms"
+ + "\030\002 \003(\t\"9\n\004Kind\022\024\n\020KIND_UNSPECIFIED\020\000\022\014\n\010"
+ + "KIND_MAP\020\001\022\r\n\tKIND_LIST\020\002\"Y\n\021AutoExpansi"
+ + "onMode\022#\n\037AUTO_EXPANSION_MODE_UNSPECIFIE"
+ + "D\020\000\022\037\n\033AUTO_EXPANSION_MODE_DEFAULT\020\001\"f\n\026"
+ + "ListEntityTypesRequest\022\016\n\006parent\030\001 \001(\t\022\025"
+ + "\n\rlanguage_code\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005"
+ + "\022\022\n\npage_token\030\004 \001(\t\"p\n\027ListEntityTypesR"
+ + "esponse\022<\n\014entity_types\030\001 \003(\0132&.google.c"
+ + "loud.dialogflow.v2.EntityType\022\027\n\017next_pa"
+ + "ge_token\030\002 \001(\t\";\n\024GetEntityTypeRequest\022\014"
+ + "\n\004name\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"}\n\027C"
+ + "reateEntityTypeRequest\022\016\n\006parent\030\001 \001(\t\022;"
+ + "\n\013entity_type\030\002 \001(\0132&.google.cloud.dialo"
+ + "gflow.v2.EntityType\022\025\n\rlanguage_code\030\003 \001"
+ + "(\t\"\236\001\n\027UpdateEntityTypeRequest\022;\n\013entity"
+ + "_type\030\001 \001(\0132&.google.cloud.dialogflow.v2"
+ + ".EntityType\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013up"
+ + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM"
+ + "ask\"\'\n\027DeleteEntityTypeRequest\022\014\n\004name\030\001"
+ + " \001(\t\"\376\001\n\035BatchUpdateEntityTypesRequest\022\016"
+ + "\n\006parent\030\001 \001(\t\022\037\n\025entity_type_batch_uri\030"
+ + "\002 \001(\tH\000\022O\n\030entity_type_batch_inline\030\003 \001("
+ + "\0132+.google.cloud.dialogflow.v2.EntityTyp"
+ + "eBatchH\000\022\025\n\rlanguage_code\030\004 \001(\t\022/\n\013updat"
+ + "e_mask\030\005 \001(\0132\032.google.protobuf.FieldMask"
+ + "B\023\n\021entity_type_batch\"^\n\036BatchUpdateEnti"
+ + "tyTypesResponse\022<\n\014entity_types\030\001 \003(\0132&."
+ + "google.cloud.dialogflow.v2.EntityType\"J\n"
+ + "\035BatchDeleteEntityTypesRequest\022\016\n\006parent"
+ + "\030\001 \001(\t\022\031\n\021entity_type_names\030\002 \003(\t\"\204\001\n\032Ba"
+ + "tchCreateEntitiesRequest\022\016\n\006parent\030\001 \001(\t"
+ + "\022?\n\010entities\030\002 \003(\0132-.google.cloud.dialog"
+ + "flow.v2.EntityType.Entity\022\025\n\rlanguage_co"
+ + "de\030\003 \001(\t\"\265\001\n\032BatchUpdateEntitiesRequest\022"
+ + "\016\n\006parent\030\001 \001(\t\022?\n\010entities\030\002 \003(\0132-.goog"
+ + "le.cloud.dialogflow.v2.EntityType.Entity"
+ + "\022\025\n\rlanguage_code\030\003 \001(\t\022/\n\013update_mask\030\004"
+ + " \001(\0132\032.google.protobuf.FieldMask\"Z\n\032Batc"
+ + "hDeleteEntitiesRequest\022\016\n\006parent\030\001 \001(\t\022\025"
+ + "\n\rentity_values\030\002 \003(\t\022\025\n\rlanguage_code\030\003"
+ + " \001(\t\"O\n\017EntityTypeBatch\022<\n\014entity_types\030"
+ + "\001 \003(\0132&.google.cloud.dialogflow.v2.Entit"
+ + "yType2\203\016\n\013EntityTypes\022\255\001\n\017ListEntityType"
+ + "s\0222.google.cloud.dialogflow.v2.ListEntit"
+ + "yTypesRequest\0323.google.cloud.dialogflow."
+ + "v2.ListEntityTypesResponse\"1\202\323\344\223\002+\022)/v2/"
+ + "{parent=projects/*/agent}/entityTypes\022\234\001"
+ + "\n\rGetEntityType\0220.google.cloud.dialogflo"
+ + "w.v2.GetEntityTypeRequest\032&.google.cloud"
+ + ".dialogflow.v2.EntityType\"1\202\323\344\223\002+\022)/v2/{"
+ + "name=projects/*/agent/entityTypes/*}\022\257\001\n"
+ + "\020CreateEntityType\0223.google.cloud.dialogf"
+ + "low.v2.CreateEntityTypeRequest\032&.google."
+ + "cloud.dialogflow.v2.EntityType\">\202\323\344\223\0028\")"
+ + "/v2/{parent=projects/*/agent}/entityType"
+ + "s:\013entity_type\022\273\001\n\020UpdateEntityType\0223.go"
+ + "ogle.cloud.dialogflow.v2.UpdateEntityTyp"
+ + "eRequest\032&.google.cloud.dialogflow.v2.En"
+ + "tityType\"J\202\323\344\223\002D25/v2/{entity_type.name="
+ + "projects/*/agent/entityTypes/*}:\013entity_"
+ + "type\022\222\001\n\020DeleteEntityType\0223.google.cloud"
+ + ".dialogflow.v2.DeleteEntityTypeRequest\032\026"
+ + ".google.protobuf.Empty\"1\202\323\344\223\002+*)/v2/{nam"
+ + "e=projects/*/agent/entityTypes/*}\022\264\001\n\026Ba"
+ + "tchUpdateEntityTypes\0229.google.cloud.dial"
+ + "ogflow.v2.BatchUpdateEntityTypesRequest\032"
+ + "\035.google.longrunning.Operation\"@\202\323\344\223\002:\"5"
+ + "/v2/{parent=projects/*/agent}/entityType"
+ + "s:batchUpdate:\001*\022\264\001\n\026BatchDeleteEntityTy"
+ + "pes\0229.google.cloud.dialogflow.v2.BatchDe"
+ + "leteEntityTypesRequest\032\035.google.longrunn"
+ + "ing.Operation\"@\202\323\344\223\002:\"5/v2/{parent=proje"
+ + "cts/*/agent}/entityTypes:batchDelete:\001*\022"
+ + "\271\001\n\023BatchCreateEntities\0226.google.cloud.d"
+ + "ialogflow.v2.BatchCreateEntitiesRequest\032"
+ + "\035.google.longrunning.Operation\"K\202\323\344\223\002E\"@"
+ + "/v2/{parent=projects/*/agent/entityTypes"
+ + "/*}/entities:batchCreate:\001*\022\271\001\n\023BatchUpd"
+ + "ateEntities\0226.google.cloud.dialogflow.v2"
+ + ".BatchUpdateEntitiesRequest\032\035.google.lon"
+ + "grunning.Operation\"K\202\323\344\223\002E\"@/v2/{parent="
+ + "projects/*/agent/entityTypes/*}/entities"
+ + ":batchUpdate:\001*\022\271\001\n\023BatchDeleteEntities\022"
+ + "6.google.cloud.dialogflow.v2.BatchDelete"
+ + "EntitiesRequest\032\035.google.longrunning.Ope"
+ + "ration\"K\202\323\344\223\002E\"@/v2/{parent=projects/*/a"
+ + "gent/entityTypes/*}/entities:batchDelete"
+ + ":\001*B\236\001\n\036com.google.cloud.dialogflow.v2B\017"
+ + "EntityTypeProtoP\001ZDgoogle.golang.org/gen"
+ + "proto/googleapis/cloud/dialogflow/v2;dia"
+ + "logflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflo"
+ + "w.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -199,6 +200,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -336,6 +338,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java
index 83e086fb0409..fe78ec62f02f 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java
@@ -8,10 +8,10 @@
*
* * Events allow for matching intents by event name instead of the natural - * language input. For instance, input `<event: { name: “welcome_event”, - * parameters: { name: “Sam” } }>` can trigger a personalized welcome response. + * language input. For instance, input `<event: { name: "welcome_event", + * parameters: { name: "Sam" } }>` can trigger a personalized welcome response. * The parameter `name` may be used by the agent in the response: - * `“Hello #welcome_event.name! What can I do for you today?”`. + * `"Hello #welcome_event.name! What can I do for you today?"`. ** * Protobuf type {@code google.cloud.dialogflow.v2.EventInput} @@ -207,9 +207,9 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * *
* Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -230,9 +230,9 @@ public java.lang.String getLanguageCode() {
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -436,10 +436,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* * Events allow for matching intents by event name instead of the natural - * language input. For instance, input `<event: { name: “welcome_event”, - * parameters: { name: “Sam” } }>` can trigger a personalized welcome response. + * language input. For instance, input `<event: { name: "welcome_event", + * parameters: { name: "Sam" } }>` can trigger a personalized welcome response. * The parameter `name` may be used by the agent in the response: - * `“Hello #welcome_event.name! What can I do for you today?”`. + * `"Hello #welcome_event.name! What can I do for you today?"`. ** * Protobuf type {@code google.cloud.dialogflow.v2.EventInput} @@ -888,9 +888,9 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * *
* Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -911,9 +911,9 @@ public java.lang.String getLanguageCode() {
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -934,9 +934,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -955,9 +955,9 @@ public Builder setLanguageCode(java.lang.String value) {
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -973,9 +973,9 @@ public Builder clearLanguageCode() {
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java
index dd8de1f8b30e..014630986138 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java
@@ -65,9 +65,9 @@ public interface EventInputOrBuilder
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -78,9 +78,9 @@ public interface EventInputOrBuilder
*
* * Required. The language of this query. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java
index 9140e5026d75..49546244f5f0 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentRequest} @@ -151,9 +150,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
- * 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;
@@ -173,9 +174,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;
@@ -364,8 +367,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentRequest} @@ -631,9 +633,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
- * 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;
@@ -653,9 +657,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;
@@ -675,9 +681,11 @@ public com.google.protobuf.ByteString getAgentUriBytes() {
*
*
* - * 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;
@@ -695,9 +703,11 @@ public Builder setAgentUri(java.lang.String value) {
*
*
* - * 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;
@@ -712,9 +722,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-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java
index 8ebbe4811906..99390ece9888 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java
@@ -35,9 +35,11 @@ public interface ExportAgentRequestOrBuilder
*
*
* - * 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;
@@ -47,9 +49,11 @@ public interface ExportAgentRequestOrBuilder
*
*
* - * 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-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java
index 3ab21493fd74..b8b7dfbb1f0f 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java
@@ -7,8 +7,7 @@
*
*
* - * The response message for - * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentResponse} @@ -197,16 +196,17 @@ public com.google.protobuf.ByteString getAgentUriBytes() { *
* The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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;
@@ -409,8 +409,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The response message for - * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. + * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentResponse} @@ -715,16 +714,17 @@ public Builder setAgentUriBytes(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/v2/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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;
@@ -741,16 +741,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/v2/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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;
@@ -770,16 +771,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/v2/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java
index f73ab566e90e..183ff53e606b 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java
@@ -37,16 +37,17 @@ public interface ExportAgentResponseOrBuilder
* * The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java
index 3734871b8656..e50645f1a4d3 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. + * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetAgentRequest} @@ -300,8 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. + * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetAgentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java index 0cff43a45626..220aa98f29ed 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. + * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetContextRequest} @@ -300,8 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. + * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java index 6ecb7a9eea12..02897be6d41b 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. + * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetEntityTypeRequest} @@ -153,9 +152,10 @@ public com.google.protobuf.ByteString getNameBytes() { *
* Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -177,9 +177,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -368,8 +369,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. + * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetEntityTypeRequest} @@ -637,9 +637,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
* Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -661,9 +662,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -685,9 +687,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -707,9 +710,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -726,9 +730,10 @@ public Builder clearLanguageCode() {
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java
index a14b6e061c54..f3e71fa6c9ec 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java
@@ -37,9 +37,10 @@ public interface GetEntityTypeRequestOrBuilder
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -51,9 +52,10 @@ public interface GetEntityTypeRequestOrBuilder
* * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java
index f1db3564e9fb..221d7802d9b4 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. + * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetIntentRequest} @@ -161,9 +160,10 @@ public com.google.protobuf.ByteString getNameBytes() { *
* Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -185,9 +185,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -417,8 +418,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. + * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetIntentRequest} @@ -691,9 +691,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
* Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -715,9 +716,10 @@ public java.lang.String getLanguageCode() {
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -739,9 +741,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -761,9 +764,10 @@ public Builder setLanguageCode(java.lang.String value) {
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -780,9 +784,10 @@ public Builder clearLanguageCode() {
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java
index 8eb7f35ef562..e67ca2a7eb13 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java
@@ -37,9 +37,10 @@ public interface GetIntentRequestOrBuilder
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
@@ -51,9 +52,10 @@ public interface GetIntentRequestOrBuilder
* * Optional. The language to retrieve training phrases, parameters and rich * messages for. If not specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. ** *
string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java
index a76be727f8a8..28247870b700 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java
@@ -7,8 +7,7 @@
*
*
* - * The request message for - * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. + * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetSessionEntityTypeRequest} @@ -303,8 +302,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
- * The request message for - * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. + * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType]. ** * Protobuf type {@code google.cloud.dialogflow.v2.GetSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java index 8a350090333d..d6999c97caba 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for - * [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. + * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.ImportAgentRequest} @@ -251,16 +250,17 @@ public com.google.protobuf.ByteString getAgentUriBytes() { *
* The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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;
@@ -472,8 +472,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* - * The request message for - * [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. + * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. ** * Protobuf type {@code google.cloud.dialogflow.v2.ImportAgentRequest} @@ -884,16 +883,17 @@ public Builder setAgentUriBytes(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/v2/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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;
@@ -910,16 +910,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/v2/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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;
@@ -939,16 +940,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/v2/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java
index 7d05c8f5ce67..efa899a79d30 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java
@@ -60,16 +60,17 @@ public interface ImportAgentRequestOrBuilder
* * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ + * <pre>curl \ + * 'https://dialogflow.googleapis.com/v2/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-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java
index cac3fc4e88c6..c361c911cb1e 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java
@@ -156,8 +156,10 @@ public com.google.cloud.dialogflow.v2.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;
@@ -174,9 +176,9 @@ public int getSampleRateHertz() {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -198,9 +200,9 @@ public java.lang.String getLanguageCode() {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -225,7 +227,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * 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. ** @@ -240,7 +244,9 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { *
* 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. ** @@ -255,7 +261,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. ** @@ -270,7 +278,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. ** @@ -749,8 +759,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;
@@ -763,8 +775,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;
@@ -780,8 +794,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;
@@ -800,9 +816,9 @@ public Builder clearSampleRateHertz() {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -824,9 +840,9 @@ public java.lang.String getLanguageCode() {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -848,9 +864,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -870,9 +886,9 @@ public Builder setLanguageCode(java.lang.String value) {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -889,9 +905,9 @@ public Builder clearLanguageCode() {
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -922,7 +938,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. ** @@ -937,7 +955,9 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { *
* 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. ** @@ -952,7 +972,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. ** @@ -967,7 +989,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. ** @@ -982,7 +1006,9 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(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. ** @@ -1003,7 +1029,9 @@ public Builder setPhraseHints(int index, java.lang.String value) { *
* 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. ** @@ -1024,7 +1052,9 @@ public Builder addPhraseHints(java.lang.String value) { *
* 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. ** @@ -1042,7 +1072,9 @@ public Builder addAllPhraseHints(java.lang.Iterable
* 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. ** @@ -1060,7 +1092,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. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java index d6935735ebeb..f1b0da5bf5fc 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java @@ -34,8 +34,10 @@ public interface InputAudioConfigOrBuilder * *
* 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;
@@ -48,9 +50,9 @@ public interface InputAudioConfigOrBuilder
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -62,9 +64,9 @@ public interface InputAudioConfigOrBuilder
* * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language - * Support](https://dialogflow.com/docs/languages) for a list of the - * currently supported language codes. Note that queries in the same session - * do not necessarily need to specify the same language. + * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * for a list of the currently supported language codes. Note that queries in + * the same session do not necessarily need to specify the same language. ** *
string language_code = 3;
@@ -77,7 +79,9 @@ public interface InputAudioConfigOrBuilder
* * 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. ** @@ -90,7 +94,9 @@ public interface InputAudioConfigOrBuilder *
* 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. ** @@ -103,7 +109,9 @@ public interface InputAudioConfigOrBuilder *
* 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. ** @@ -116,7 +124,9 @@ public interface InputAudioConfigOrBuilder *
* 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. ** diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java index 5871d2ac67a7..e4dfd8946eeb 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java @@ -449,7 +449,7 @@ public interface TrainingPhraseOrBuilder * * *
- * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -459,7 +459,7 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -491,9 +491,20 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -503,9 +514,20 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -515,9 +537,20 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -527,9 +560,20 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -540,9 +584,20 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -553,7 +608,7 @@ public interface TrainingPhraseOrBuilder
*
*
* - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. *@@ -566,7 +621,7 @@ public interface TrainingPhraseOrBuilder * * *
- * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. ** * Protobuf type {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase} @@ -718,10 +773,15 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { *
* Templates are not annotated with entity types, but they can contain * @-prefixed entity type names as substrings. + * Template mode has been deprecated. Example mode is the only supported + * way to create new training phrases. If you have existing training + * phrases that you've created in template mode, those will continue to + * work. ** - *
TEMPLATE = 2;
+ * TEMPLATE = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
TEMPLATE(2),
UNRECOGNIZED(-1),
;
@@ -753,9 +813,13 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
* * Templates are not annotated with entity types, but they can contain * @-prefixed entity type names as substrings. + * Template mode has been deprecated. Example mode is the only supported + * way to create new training phrases. If you have existing training + * phrases that you've created in template mode, those will continue to + * work. ** - *
TEMPLATE = 2;
+ * TEMPLATE = 2 [deprecated = true];
*/
public static final int TEMPLATE_VALUE = 2;
@@ -841,9 +905,7 @@ public interface PartOrBuilder
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -853,9 +915,7 @@ public interface PartOrBuilder
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -866,9 +926,8 @@ public interface PartOrBuilder
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -878,9 +937,8 @@ public interface PartOrBuilder
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -893,6 +951,7 @@ public interface PartOrBuilder
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -904,6 +963,7 @@ public interface PartOrBuilder
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -914,8 +974,10 @@ public interface PartOrBuilder
*
*
* - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * manually annotate the part. When creating an annotated part with the + * API, you must set this to true. ** *
bool user_defined = 4;
@@ -1038,9 +1100,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1060,9 +1120,7 @@ public java.lang.String getText() {
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1085,9 +1143,8 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1107,9 +1164,8 @@ public java.lang.String getEntityType() {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1134,6 +1190,7 @@ public com.google.protobuf.ByteString getEntityTypeBytes() {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1155,6 +1212,7 @@ public java.lang.String getAlias() {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1177,8 +1235,10 @@ public com.google.protobuf.ByteString getAliasBytes() {
*
*
* - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * manually annotate the part. When creating an annotated part with the + * API, you must set this to true. ** *
bool user_defined = 4;
@@ -1565,9 +1625,7 @@ public Builder mergeFrom(
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1587,9 +1645,7 @@ public java.lang.String getText() {
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1609,9 +1665,7 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1629,9 +1683,7 @@ public Builder setText(java.lang.String value) {
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1646,9 +1698,7 @@ public Builder clearText() {
*
*
* - * Required. The text corresponding to the example or template, - * if there are no annotations. For - * annotated examples, it is the text for one of the example's parts. + * Required. The text for this part. ** *
string text = 1;
@@ -1669,9 +1719,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1691,9 +1740,8 @@ public java.lang.String getEntityType() {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1713,9 +1761,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1733,9 +1780,8 @@ public Builder setEntityType(java.lang.String value) {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1750,9 +1796,8 @@ public Builder clearEntityType() {
*
*
* - * Optional. The entity type name prefixed with `@`. This field is - * required for the annotated part of the text and applies only to - * examples. + * Optional. The entity type name prefixed with `@`. + * This field is required for annotated parts of the training phrase. ** *
string entity_type = 2;
@@ -1775,6 +1820,7 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1796,6 +1842,7 @@ public java.lang.String getAlias() {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1817,6 +1864,7 @@ public com.google.protobuf.ByteString getAliasBytes() {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1836,6 +1884,7 @@ public Builder setAlias(java.lang.String value) {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1852,6 +1901,7 @@ public Builder clearAlias() {
* * Optional. The parameter name for the value extracted from the * annotated part of the example. + * This field is required for annotated parts of the training phrase. ** *
string alias = 3;
@@ -1872,8 +1922,10 @@ public Builder setAliasBytes(com.google.protobuf.ByteString value) {
*
*
* - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * manually annotate the part. When creating an annotated part with the + * API, you must set this to true. ** *
bool user_defined = 4;
@@ -1885,8 +1937,10 @@ public boolean getUserDefined() {
*
*
* - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * manually annotate the part. When creating an annotated part with the + * API, you must set this to true. ** *
bool user_defined = 4;
@@ -1901,8 +1955,10 @@ public Builder setUserDefined(boolean value) {
*
*
* - * Optional. Indicates whether the text was manually annotated by the - * developer. + * Optional. Indicates whether the text was manually annotated. + * This field is set to true when the Dialogflow Console is used to + * manually annotate the part. When creating an annotated part with the + * API, you must set this to true. ** *
bool user_defined = 4;
@@ -1974,7 +2030,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getDefaultInsta
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -1994,7 +2050,7 @@ public java.lang.String getName() {
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -2049,9 +2105,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2064,9 +2131,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2080,9 +2158,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2094,9 +2183,20 @@ public int getPartsCount() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2108,9 +2208,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int in
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2126,7 +2237,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar
*
*
* - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. *@@ -2335,7 +2446,7 @@ protected Builder newBuilderForType( * * *
- * Represents an example or template that the agent is trained on. + * Represents an example that the agent is trained on. ** * Protobuf type {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase} @@ -2559,7 +2670,7 @@ public Builder mergeFrom( * * *
- * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -2579,7 +2690,7 @@ public java.lang.String getName() {
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -2599,7 +2710,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -2617,7 +2728,7 @@ public Builder setName(java.lang.String value) {
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -2632,7 +2743,7 @@ public Builder clearName() {
*
*
* - * Required. The unique identifier of this training phrase. + * Output only. The unique identifier of this training phrase. ** *
string name = 1;
@@ -2748,9 +2859,20 @@ private void ensurePartsIsMutable() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2767,9 +2889,20 @@ private void ensurePartsIsMutable() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2785,9 +2918,20 @@ public int getPartsCount() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2803,9 +2947,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int in
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2828,9 +2983,20 @@ public Builder setParts(
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2851,9 +3017,20 @@ public Builder setParts(
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2875,9 +3052,20 @@ public Builder addParts(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Par
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2900,9 +3088,20 @@ public Builder addParts(
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2922,9 +3121,20 @@ public Builder addParts(
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2945,9 +3155,20 @@ public Builder addParts(
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2968,9 +3189,20 @@ public Builder addAllParts(
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -2989,9 +3221,20 @@ public Builder clearParts() {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3010,9 +3253,20 @@ public Builder removeParts(int index) {
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3025,9 +3279,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder getPart
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3044,9 +3309,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3064,9 +3340,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3080,9 +3367,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPart
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3098,9 +3396,20 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPart
*
*
* - * Required. The collection of training phrase parts (can be annotated). - * Fields: `entity_type`, `alias` and `user_defined` should be populated - * only for the annotated parts of the training phrase. + * Required. The ordered list of training phrase parts. + * The parts are concatenated in order to form the training phrase. + * Note: The API does not automatically annotate training phrases like the + * Dialogflow Console does. + * Note: Do not forget to include whitespace at part boundaries, + * so the training phrase is well formatted when the parts are concatenated. + * If the training phrase does not need to be annotated with parameters, + * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set. + * If you want to annotate the training phrase, you must create multiple + * parts, where the fields of each part are populated in one of two ways: + * - `Part.text` is set to a part of the phrase that has no parameters. + * - `Part.text` is set to a part of the phrase that you want to annotate, + * and the `entity_type`, `alias`, and `user_defined` fields are all + * set. ** *
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
@@ -3132,7 +3441,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPart
*
*
* - * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. *@@ -3146,7 +3455,7 @@ public int getTimesAddedCount() { * * *
- * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. *@@ -3163,7 +3472,7 @@ public Builder setTimesAddedCount(int value) { * * *
- * Optional. Indicates how many times this example or template was added to + * Optional. Indicates how many times this example was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. *@@ -29116,7 +29425,7 @@ public interface FollowupIntentInfoOrBuilder * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29127,7 +29436,7 @@ public interface FollowupIntentInfoOrBuilder * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29282,7 +29591,7 @@ public com.google.protobuf.ByteString getFollowupIntentNameBytes() { * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29303,7 +29612,7 @@ public java.lang.String getParentFollowupIntentName() { * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29765,7 +30074,7 @@ public Builder setFollowupIntentNameBytes(com.google.protobuf.ByteString value) * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29786,7 +30095,7 @@ public java.lang.String getParentFollowupIntentName() { * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29807,7 +30116,7 @@ public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() { * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29826,7 +30135,7 @@ public Builder setParentFollowupIntentName(java.lang.String value) { * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29842,7 +30151,7 @@ public Builder clearParentFollowupIntentName() { * * *
- * The unique identifier of the followup intent parent. + * The unique identifier of the followup intent's parent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29918,9 +30227,9 @@ public com.google.cloud.dialogflow.v2.Intent.FollowupIntentInfo getDefaultInstan * * *
- * Required for all methods except `create` (`create` populates the name - * automatically. * The unique identifier of this intent. + * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * methods. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -29941,9 +30250,9 @@ public java.lang.String getName() { * * *
- * Required for all methods except `create` (`create` populates the name - * automatically. * The unique identifier of this intent. + * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] + * methods. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -30010,7 +30319,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
- * Required. Indicates whether webhooks are enabled for the intent. + * Optional. Indicates whether webhooks are enabled for the intent. ** *
.google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -30022,7 +30331,7 @@ public int getWebhookStateValue() {
*
*
* - * Required. Indicates whether webhooks are enabled for the intent. + * Optional. Indicates whether webhooks are enabled for the intent. ** *
.google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -30043,7 +30352,9 @@ public com.google.cloud.dialogflow.v2.Intent.WebhookState getWebhookState() {
*
* * Optional. The priority of this intent. Higher numbers represent higher - * priorities. Zero or negative numbers mean that the intent is disabled. + * priorities. If this is zero or unspecified, we use the default + * priority 500000. + * Negative numbers mean that the intent is disabled. ** *
int32 priority = 3;
@@ -30209,7 +30520,7 @@ public com.google.protobuf.ByteString getEventsBytes(int index) {
*
*
* - * Optional. The collection of examples/templates that the agent is + * Optional. The collection of examples that the agent is * trained on. ** @@ -30223,7 +30534,7 @@ public com.google.protobuf.ByteString getEventsBytes(int index) { * * *
- * Optional. The collection of examples/templates that the agent is + * Optional. The collection of examples that the agent is * trained on. ** @@ -30237,7 +30548,7 @@ public com.google.protobuf.ByteString getEventsBytes(int index) { * * *
- * Optional. The collection of examples/templates that the agent is + * Optional. The collection of examples that the agent is * trained on. ** @@ -30250,7 +30561,7 @@ public int getTrainingPhrasesCount() { * * *
- * Optional. The collection of examples/templates that the agent is + * Optional. The collection of examples that the agent is * trained on. ** @@ -30263,7 +30574,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase getTrainingPhrases(i * * *
- * Optional. The collection of examples/templates that the agent is + * Optional. The collection of examples that the agent is * trained on. ** @@ -30281,6 +30592,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTraining * *
* Optional. The name of the action associated with the intent. + * Note: The action name must not contain whitespaces. ** *
string action = 10;
@@ -30301,6 +30613,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;
@@ -30656,8 +30969,9 @@ public int getDefaultResponsePlatformsValue(int index) {
*
*
* - * The unique identifier of the root intent in the chain of followup intents. - * It identifies the correct followup intents chain for this intent. + * Read-only. The unique identifier of the root intent in the chain of + * followup intents. It identifies the correct followup intents chain for + * this intent. We populate this field only in the output. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -30678,8 +30992,9 @@ public java.lang.String getRootFollowupIntentName() { * * *
- * The unique identifier of the root intent in the chain of followup intents. - * It identifies the correct followup intents chain for this intent. + * Read-only. The unique identifier of the root intent in the chain of + * followup intents. It identifies the correct followup intents chain for + * this intent. We populate this field only in the output. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. ** @@ -30703,8 +31018,10 @@ public com.google.protobuf.ByteString getRootFollowupIntentNameBytes() { * * *
- * The unique identifier of the parent intent in the chain of followup - * intents. + * Read-only after creation. The unique identifier of the parent intent in the + * chain of followup intents. You can set this field when creating an intent, + * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to + * make this intent a followup intent. * It identifies the parent followup intent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. *@@ -30726,8 +31043,10 @@ public java.lang.String getParentFollowupIntentName() { * * *
- * The unique identifier of the parent intent in the chain of followup - * intents. + * Read-only after creation. The unique identifier of the parent intent in the + * chain of followup intents. You can set this field when creating an intent, + * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to + * make this intent a followup intent. * It identifies the parent followup intent. * Format: `projects/<Project ID>/agent/intents/<Intent ID>`. *@@ -30753,8 +31072,8 @@ public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() { * * *
- * Optional. Collection of information about all followup intents that have - * name of this intent as a root_name. + * Read-only. Information about all followup intents that have this intent as + * a direct or indirect parent. We populate this field only in the output. ** *
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -30768,8 +31087,8 @@ public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -30783,8 +31102,8 @@ public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -30797,8 +31116,8 @@ public int getFollowupIntentInfoCount() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -30811,8 +31130,8 @@ public com.google.cloud.dialogflow.v2.Intent.FollowupIntentInfo getFollowupInten
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -31676,9 +31995,9 @@ public Builder mergeFrom(
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -31699,9 +32018,9 @@ public java.lang.String getName() {
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -31722,9 +32041,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -31743,9 +32062,9 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -31761,9 +32080,9 @@ public Builder clearName() {
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -31879,7 +32198,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -31891,7 +32210,7 @@ public int getWebhookStateValue() {
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -31905,7 +32224,7 @@ public Builder setWebhookStateValue(int value) {
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -31922,7 +32241,7 @@ public com.google.cloud.dialogflow.v2.Intent.WebhookState getWebhookState() {
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -31940,7 +32259,7 @@ public Builder setWebhookState(com.google.cloud.dialogflow.v2.Intent.WebhookStat
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -31958,7 +32277,9 @@ public Builder clearWebhookState() {
*
*
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
*
* int32 priority = 3;
@@ -31971,7 +32292,9 @@ public int getPriority() {
*
*
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
*
* int32 priority = 3;
@@ -31987,7 +32310,9 @@ public Builder setPriority(int value) {
*
*
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
*
* int32 priority = 3;
@@ -32440,7 +32765,7 @@ private void ensureTrainingPhrasesIsMutable() {
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32458,7 +32783,7 @@ private void ensureTrainingPhrasesIsMutable() {
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32475,7 +32800,7 @@ public int getTrainingPhrasesCount() {
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32492,7 +32817,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase getTrainingPhrases(i
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32516,7 +32841,7 @@ public Builder setTrainingPhrases(
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32537,7 +32862,7 @@ public Builder setTrainingPhrases(
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32560,7 +32885,7 @@ public Builder addTrainingPhrases(com.google.cloud.dialogflow.v2.Intent.Training
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32584,7 +32909,7 @@ public Builder addTrainingPhrases(
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32605,7 +32930,7 @@ public Builder addTrainingPhrases(
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32626,7 +32951,7 @@ public Builder addTrainingPhrases(
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32647,7 +32972,7 @@ public Builder addAllTrainingPhrases(
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32667,7 +32992,7 @@ public Builder clearTrainingPhrases() {
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32687,7 +33012,7 @@ public Builder removeTrainingPhrases(int index) {
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32701,7 +33026,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder getTrainingP
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32719,7 +33044,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder getTrainingP
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32737,7 +33062,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder getTrainingP
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32752,7 +33077,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder getTrainingP
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32768,7 +33093,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder addTrainingP
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -32805,6 +33130,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder addTrainingP
*
*
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
*
* string action = 10;
@@ -32825,6 +33151,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;
@@ -32845,6 +33172,7 @@ public com.google.protobuf.ByteString getActionBytes() {
*
*
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
*
* string action = 10;
@@ -32863,6 +33191,7 @@ public Builder setAction(java.lang.String value) {
*
*
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
*
* string action = 10;
@@ -32878,6 +33207,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;
@@ -34323,8 +34653,9 @@ public Builder addAllDefaultResponsePlatformsValue(
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -34345,8 +34676,9 @@ public java.lang.String getRootFollowupIntentName() {
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -34367,8 +34699,9 @@ public com.google.protobuf.ByteString getRootFollowupIntentNameBytes() {
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -34387,8 +34720,9 @@ public Builder setRootFollowupIntentName(java.lang.String value) {
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -34404,8 +34738,9 @@ public Builder clearRootFollowupIntentName() {
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -34427,8 +34762,10 @@ public Builder setRootFollowupIntentNameBytes(com.google.protobuf.ByteString val
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -34450,8 +34787,10 @@ public java.lang.String getParentFollowupIntentName() {
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -34473,8 +34812,10 @@ public com.google.protobuf.ByteString getParentFollowupIntentNameBytes() {
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -34494,8 +34835,10 @@ public Builder setParentFollowupIntentName(java.lang.String value) {
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -34512,8 +34855,10 @@ public Builder clearParentFollowupIntentName() {
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -34553,8 +34898,8 @@ private void ensureFollowupIntentInfoIsMutable() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34573,8 +34918,8 @@ private void ensureFollowupIntentInfoIsMutable() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34592,8 +34937,8 @@ public int getFollowupIntentInfoCount() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34612,8 +34957,8 @@ public com.google.cloud.dialogflow.v2.Intent.FollowupIntentInfo getFollowupInten
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34638,8 +34983,8 @@ public Builder setFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34662,8 +35007,8 @@ public Builder setFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34688,8 +35033,8 @@ public Builder addFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34714,8 +35059,8 @@ public Builder addFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34737,8 +35082,8 @@ public Builder addFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34761,8 +35106,8 @@ public Builder addFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34785,8 +35130,8 @@ public Builder addAllFollowupIntentInfo(
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34807,8 +35152,8 @@ public Builder clearFollowupIntentInfo() {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34829,8 +35174,8 @@ public Builder removeFollowupIntentInfo(int index) {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34845,8 +35190,8 @@ public Builder removeFollowupIntentInfo(int index) {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34865,8 +35210,8 @@ public Builder removeFollowupIntentInfo(int index) {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34886,8 +35231,8 @@ public Builder removeFollowupIntentInfo(int index) {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34904,8 +35249,8 @@ public Builder removeFollowupIntentInfo(int index) {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
@@ -34922,8 +35267,8 @@ public Builder removeFollowupIntentInfo(int index) {
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java
index a7dea4e0358a..c11ebc80d2cf 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java
@@ -12,9 +12,9 @@ public interface IntentOrBuilder
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -25,9 +25,9 @@ public interface IntentOrBuilder
*
*
*
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -60,7 +60,7 @@ public interface IntentOrBuilder
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -70,7 +70,7 @@ public interface IntentOrBuilder
*
*
*
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
*
* .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
@@ -82,7 +82,9 @@ public interface IntentOrBuilder
*
*
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
*
* int32 priority = 3;
@@ -216,7 +218,7 @@ public interface IntentOrBuilder
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -227,7 +229,7 @@ public interface IntentOrBuilder
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -238,7 +240,7 @@ public interface IntentOrBuilder
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -249,7 +251,7 @@ public interface IntentOrBuilder
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -261,7 +263,7 @@ public interface IntentOrBuilder
*
*
*
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
*
@@ -275,6 +277,7 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
*
* string action = 10;
@@ -285,6 +288,7 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
*
* string action = 10;
@@ -555,8 +559,9 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -567,8 +572,9 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
@@ -580,8 +586,10 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -593,8 +601,10 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
@@ -607,8 +617,8 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -620,8 +630,8 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -632,8 +642,8 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -644,8 +654,8 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
@@ -657,8 +667,8 @@ com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder getTrainingPhrases
*
*
*
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
*
* repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java
index 7cfad5f02df6..28b9c4d1c8d6 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java
@@ -159,184 +159,185 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n\'google/cloud/dialogflow/v2/intent.prot"
+ "o\022\032google.cloud.dialogflow.v2\032\034google/ap"
- + "i/annotations.proto\032(google/cloud/dialog"
- + "flow/v2/context.proto\032#google/longrunnin"
- + "g/operations.proto\032\033google/protobuf/empt"
- + "y.proto\032 google/protobuf/field_mask.prot"
- + "o\032\034google/protobuf/struct.proto\"\363 \n\006Inte"
- + "nt\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022F"
- + "\n\rwebhook_state\030\006 \001(\0162/.google.cloud.dia"
- + "logflow.v2.Intent.WebhookState\022\020\n\010priori"
- + "ty\030\003 \001(\005\022\023\n\013is_fallback\030\004 \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\022K\n\020training_phrases\030\t \003("
- + "\01321.google.cloud.dialogflow.v2.Intent.Tr"
- + "ainingPhrase\022\016\n\006action\030\n \001(\t\022<\n\017output_c"
- + "ontexts\030\013 \003(\0132#.google.cloud.dialogflow."
- + "v2.Context\022\026\n\016reset_contexts\030\014 \001(\010\022@\n\npa"
- + "rameters\030\r \003(\0132,.google.cloud.dialogflow"
- + ".v2.Intent.Parameter\022<\n\010messages\030\016 \003(\0132*"
- + ".google.cloud.dialogflow.v2.Intent.Messa"
- + "ge\022W\n\032default_response_platforms\030\017 \003(\01623"
+ + "i/annotations.proto\032\031google/api/resource"
+ + ".proto\032(google/cloud/dialogflow/v2/conte"
+ + "xt.proto\032#google/longrunning/operations."
+ + "proto\032\036google/protobuf/duration.proto\032\033g"
+ + "oogle/protobuf/empty.proto\032 google/proto"
+ + "buf/field_mask.proto\032\034google/protobuf/st"
+ + "ruct.proto\"\367 \n\006Intent\022\014\n\004name\030\001 \001(\t\022\024\n\014d"
+ + "isplay_name\030\002 \001(\t\022F\n\rwebhook_state\030\006 \001(\016"
+ + "2/.google.cloud.dialogflow.v2.Intent.Web"
+ + "hookState\022\020\n\010priority\030\003 \001(\005\022\023\n\013is_fallba"
+ + "ck\030\004 \001(\010\022\023\n\013ml_disabled\030\023 \001(\010\022\033\n\023input_c"
+ + "ontext_names\030\007 \003(\t\022\016\n\006events\030\010 \003(\t\022K\n\020tr"
+ + "aining_phrases\030\t \003(\01321.google.cloud.dial"
+ + "ogflow.v2.Intent.TrainingPhrase\022\016\n\006actio"
+ + "n\030\n \001(\t\022<\n\017output_contexts\030\013 \003(\0132#.googl"
+ + "e.cloud.dialogflow.v2.Context\022\026\n\016reset_c"
+ + "ontexts\030\014 \001(\010\022@\n\nparameters\030\r \003(\0132,.goog"
+ + "le.cloud.dialogflow.v2.Intent.Parameter\022"
+ + "<\n\010messages\030\016 \003(\0132*.google.cloud.dialogf"
+ + "low.v2.Intent.Message\022W\n\032default_respons"
+ + "e_platforms\030\017 \003(\01623.google.cloud.dialogf"
+ + "low.v2.Intent.Message.Platform\022!\n\031root_f"
+ + "ollowup_intent_name\030\020 \001(\t\022#\n\033parent_foll"
+ + "owup_intent_name\030\021 \001(\t\022S\n\024followup_inten"
+ + "t_info\030\022 \003(\01325.google.cloud.dialogflow.v"
+ + "2.Intent.FollowupIntentInfo\032\323\002\n\016Training"
+ + "Phrase\022\014\n\004name\030\001 \001(\t\022D\n\004type\030\002 \001(\01626.goo"
+ + "gle.cloud.dialogflow.v2.Intent.TrainingP"
+ + "hrase.Type\022E\n\005parts\030\003 \003(\01326.google.cloud"
+ + ".dialogflow.v2.Intent.TrainingPhrase.Par"
+ + "t\022\031\n\021times_added_count\030\004 \001(\005\032N\n\004Part\022\014\n\004"
+ + "text\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\";\n\004Type\022\024\n\020"
+ + "TYPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020\001\022\020\n\010TEMPL"
+ + "ATE\020\002\032\002\010\001\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\rde"
+ + "fault_value\030\004 \001(\t\022 \n\030entity_type_display"
+ + "_name\030\005 \001(\t\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007prompt"
+ + "s\030\007 \003(\t\022\017\n\007is_list\030\010 \001(\010\032\232\025\n\007Message\022?\n\004"
+ + "text\030\001 \001(\0132/.google.cloud.dialogflow.v2."
+ + "Intent.Message.TextH\000\022A\n\005image\030\002 \001(\01320.g"
+ + "oogle.cloud.dialogflow.v2.Intent.Message"
+ + ".ImageH\000\022P\n\rquick_replies\030\003 \001(\01327.google"
+ + ".cloud.dialogflow.v2.Intent.Message.Quic"
+ + "kRepliesH\000\022?\n\004card\030\004 \001(\0132/.google.cloud."
+ + "dialogflow.v2.Intent.Message.CardH\000\022*\n\007p"
+ + "ayload\030\005 \001(\0132\027.google.protobuf.StructH\000\022"
+ + "V\n\020simple_responses\030\007 \001(\0132:.google.cloud"
+ + ".dialogflow.v2.Intent.Message.SimpleResp"
+ + "onsesH\000\022J\n\nbasic_card\030\010 \001(\01324.google.clo"
+ + "ud.dialogflow.v2.Intent.Message.BasicCar"
+ + "dH\000\022M\n\013suggestions\030\t \001(\01326.google.cloud."
+ + "dialogflow.v2.Intent.Message.Suggestions"
+ + "H\000\022[\n\023link_out_suggestion\030\n \001(\0132<.google"
+ + ".cloud.dialogflow.v2.Intent.Message.Link"
+ + "OutSuggestionH\000\022L\n\013list_select\030\013 \001(\01325.g"
+ + "oogle.cloud.dialogflow.v2.Intent.Message"
+ + ".ListSelectH\000\022T\n\017carousel_select\030\014 \001(\01329"
+ ".google.cloud.dialogflow.v2.Intent.Messa"
- + "ge.Platform\022!\n\031root_followup_intent_name"
- + "\030\020 \001(\t\022#\n\033parent_followup_intent_name\030\021 "
- + "\001(\t\022S\n\024followup_intent_info\030\022 \003(\01325.goog"
- + "le.cloud.dialogflow.v2.Intent.FollowupIn"
- + "tentInfo\032\317\002\n\016TrainingPhrase\022\014\n\004name\030\001 \001("
- + "\t\022D\n\004type\030\002 \001(\01626.google.cloud.dialogflo"
- + "w.v2.Intent.TrainingPhrase.Type\022E\n\005parts"
- + "\030\003 \003(\01326.google.cloud.dialogflow.v2.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\232\025\n\007Message\022?\n\004text\030\001 \001(\0132/.google.clo"
- + "ud.dialogflow.v2.Intent.Message.TextH\000\022A"
- + "\n\005image\030\002 \001(\01320.google.cloud.dialogflow."
- + "v2.Intent.Message.ImageH\000\022P\n\rquick_repli"
- + "es\030\003 \001(\01327.google.cloud.dialogflow.v2.In"
- + "tent.Message.QuickRepliesH\000\022?\n\004card\030\004 \001("
- + "\0132/.google.cloud.dialogflow.v2.Intent.Me"
- + "ssage.CardH\000\022*\n\007payload\030\005 \001(\0132\027.google.p"
- + "rotobuf.StructH\000\022V\n\020simple_responses\030\007 \001"
- + "(\0132:.google.cloud.dialogflow.v2.Intent.M"
- + "essage.SimpleResponsesH\000\022J\n\nbasic_card\030\010"
- + " \001(\01324.google.cloud.dialogflow.v2.Intent"
- + ".Message.BasicCardH\000\022M\n\013suggestions\030\t \001("
- + "\01326.google.cloud.dialogflow.v2.Intent.Me"
- + "ssage.SuggestionsH\000\022[\n\023link_out_suggesti"
- + "on\030\n \001(\0132<.google.cloud.dialogflow.v2.In"
- + "tent.Message.LinkOutSuggestionH\000\022L\n\013list"
- + "_select\030\013 \001(\01325.google.cloud.dialogflow."
- + "v2.Intent.Message.ListSelectH\000\022T\n\017carous"
- + "el_select\030\014 \001(\01329.google.cloud.dialogflo"
- + "w.v2.Intent.Message.CarouselSelectH\000\022E\n\010"
- + "platform\030\006 \001(\01623.google.cloud.dialogflow"
- + ".v2.Intent.Message.Platform\032\024\n\004Text\022\014\n\004t"
- + "ext\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\014QuickReplie"
- + "s\022\r\n\005title\030\001 \001(\t\022\025\n\rquick_replies\030\002 \003(\t\032"
- + "\255\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\022G\n\007buttons\030\004 \003(\01326."
+ + "ge.CarouselSelectH\000\022E\n\010platform\030\006 \001(\01623."
+ "google.cloud.dialogflow.v2.Intent.Messag"
- + "e.Card.Button\032(\n\006Button\022\014\n\004text\030\001 \001(\t\022\020\n"
- + "\010postback\030\002 \001(\t\032L\n\016SimpleResponse\022\026\n\016tex"
- + "t_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014displ"
- + "ay_text\030\003 \001(\t\032f\n\017SimpleResponses\022S\n\020simp"
- + "le_responses\030\001 \003(\01329.google.cloud.dialog"
- + "flow.v2.Intent.Message.SimpleResponse\032\357\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\022?\n\005image\030\004 "
- + "\001(\01320.google.cloud.dialogflow.v2.Intent."
- + "Message.Image\022L\n\007buttons\030\005 \003(\0132;.google."
- + "cloud.dialogflow.v2.Intent.Message.Basic"
- + "Card.Button\032\231\001\n\006Button\022\r\n\005title\030\001 \001(\t\022b\n"
- + "\017open_uri_action\030\002 \001(\0132I.google.cloud.di"
- + "alogflow.v2.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\032Y\n\013"
- + "Suggestions\022J\n\013suggestions\030\001 \003(\01325.googl"
- + "e.cloud.dialogflow.v2.Intent.Message.Sug"
- + "gestion\032:\n\021LinkOutSuggestion\022\030\n\020destinat"
- + "ion_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\032\235\002\n\nListSele"
- + "ct\022\r\n\005title\030\001 \001(\t\022I\n\005items\030\002 \003(\0132:.googl"
- + "e.cloud.dialogflow.v2.Intent.Message.Lis"
- + "tSelect.Item\032\264\001\n\004Item\022G\n\004info\030\001 \001(\01329.go"
- + "ogle.cloud.dialogflow.v2.Intent.Message."
- + "SelectItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013descrip"
- + "tion\030\003 \001(\t\022?\n\005image\030\004 \001(\01320.google.cloud"
- + ".dialogflow.v2.Intent.Message.Image\032\226\002\n\016"
- + "CarouselSelect\022M\n\005items\030\001 \003(\0132>.google.c"
- + "loud.dialogflow.v2.Intent.Message.Carous"
- + "elSelect.Item\032\264\001\n\004Item\022G\n\004info\030\001 \001(\01329.g"
- + "oogle.cloud.dialogflow.v2.Intent.Message"
- + ".SelectItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013descri"
- + "ption\030\003 \001(\t\022?\n\005image\030\004 \001(\01320.google.clou"
- + "d.dialogflow.v2.Intent.Message.Image\032/\n\016"
- + "SelectItemInfo\022\013\n\003key\030\001 \001(\t\022\020\n\010synonyms\030"
- + "\002 \003(\t\"\213\001\n\010Platform\022\030\n\024PLATFORM_UNSPECIFI"
- + "ED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRA"
- + "M\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIB"
- + "ER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010B\t\n\007message\032W"
- + "\n\022FollowupIntentInfo\022\034\n\024followup_intent_"
- + "name\030\001 \001(\t\022#\n\033parent_followup_intent_nam"
- + "e\030\002 \001(\t\"t\n\014WebhookState\022\035\n\031WEBHOOK_STATE"
- + "_UNSPECIFIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLED\020"
- + "\001\022*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILL"
- + "ING\020\002\"\237\001\n\022ListIntentsRequest\022\016\n\006parent\030\001"
- + " \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022;\n\013intent_vi"
- + "ew\030\003 \001(\0162&.google.cloud.dialogflow.v2.In"
- + "tentView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_toke"
- + "n\030\005 \001(\t\"c\n\023ListIntentsResponse\0223\n\007intent"
- + "s\030\001 \003(\0132\".google.cloud.dialogflow.v2.Int"
- + "ent\022\027\n\017next_page_token\030\002 \001(\t\"t\n\020GetInten"
- + "tRequest\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.clou"
- + "d.dialogflow.v2.IntentView\"\255\001\n\023CreateInt"
- + "entRequest\022\016\n\006parent\030\001 \001(\t\0222\n\006intent\030\002 \001"
- + "(\0132\".google.cloud.dialogflow.v2.Intent\022\025"
- + "\n\rlanguage_code\030\003 \001(\t\022;\n\013intent_view\030\004 \001"
- + "(\0162&.google.cloud.dialogflow.v2.IntentVi"
- + "ew\"\316\001\n\023UpdateIntentRequest\0222\n\006intent\030\001 \001"
- + "(\0132\".google.cloud.dialogflow.v2.Intent\022\025"
- + "\n\rlanguage_code\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.v2"
- + ".IntentView\"#\n\023DeleteIntentRequest\022\014\n\004na"
- + "me\030\001 \001(\t\"\244\002\n\031BatchUpdateIntentsRequest\022\016"
- + "\n\006parent\030\001 \001(\t\022\032\n\020intent_batch_uri\030\002 \001(\t"
- + "H\000\022F\n\023intent_batch_inline\030\003 \001(\0132\'.google"
- + ".cloud.dialogflow.v2.IntentBatchH\000\022\025\n\rla"
- + "nguage_code\030\004 \001(\t\022/\n\013update_mask\030\005 \001(\0132\032"
- + ".google.protobuf.FieldMask\022;\n\013intent_vie"
- + "w\030\006 \001(\0162&.google.cloud.dialogflow.v2.Int"
- + "entViewB\016\n\014intent_batch\"Q\n\032BatchUpdateIn"
+ + "e.Platform\032\024\n\004Text\022\014\n\004text\030\001 \003(\t\0326\n\005Imag"
+ + "e\022\021\n\timage_uri\030\001 \001(\t\022\032\n\022accessibility_te"
+ + "xt\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\255\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\022G\n\007buttons\030\004 \003(\01326.google.cloud.dial"
+ + "ogflow.v2.Intent.Message.Card.Button\032(\n\006"
+ + "Button\022\014\n\004text\030\001 \001(\t\022\020\n\010postback\030\002 \001(\t\032L"
+ + "\n\016SimpleResponse\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\032f\n\017"
+ + "SimpleResponses\022S\n\020simple_responses\030\001 \003("
+ + "\01329.google.cloud.dialogflow.v2.Intent.Me"
+ + "ssage.SimpleResponse\032\357\002\n\tBasicCard\022\r\n\005ti"
+ + "tle\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\026\n\016formatted"
+ + "_text\030\003 \001(\t\022?\n\005image\030\004 \001(\01320.google.clou"
+ + "d.dialogflow.v2.Intent.Message.Image\022L\n\007"
+ + "buttons\030\005 \003(\0132;.google.cloud.dialogflow."
+ + "v2.Intent.Message.BasicCard.Button\032\231\001\n\006B"
+ + "utton\022\r\n\005title\030\001 \001(\t\022b\n\017open_uri_action\030"
+ + "\002 \001(\0132I.google.cloud.dialogflow.v2.Inten"
+ + "t.Message.BasicCard.Button.OpenUriAction"
+ + "\032\034\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\nSugges"
+ + "tion\022\r\n\005title\030\001 \001(\t\032Y\n\013Suggestions\022J\n\013su"
+ + "ggestions\030\001 \003(\01325.google.cloud.dialogflo"
+ + "w.v2.Intent.Message.Suggestion\032:\n\021LinkOu"
+ + "tSuggestion\022\030\n\020destination_name\030\001 \001(\t\022\013\n"
+ + "\003uri\030\002 \001(\t\032\235\002\n\nListSelect\022\r\n\005title\030\001 \001(\t"
+ + "\022I\n\005items\030\002 \003(\0132:.google.cloud.dialogflo"
+ + "w.v2.Intent.Message.ListSelect.Item\032\264\001\n\004"
+ + "Item\022G\n\004info\030\001 \001(\01329.google.cloud.dialog"
+ + "flow.v2.Intent.Message.SelectItemInfo\022\r\n"
+ + "\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022?\n\005ima"
+ + "ge\030\004 \001(\01320.google.cloud.dialogflow.v2.In"
+ + "tent.Message.Image\032\226\002\n\016CarouselSelect\022M\n"
+ + "\005items\030\001 \003(\0132>.google.cloud.dialogflow.v"
+ + "2.Intent.Message.CarouselSelect.Item\032\264\001\n"
+ + "\004Item\022G\n\004info\030\001 \001(\01329.google.cloud.dialo"
+ + "gflow.v2.Intent.Message.SelectItemInfo\022\r"
+ + "\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022?\n\005im"
+ + "age\030\004 \001(\01320.google.cloud.dialogflow.v2.I"
+ + "ntent.Message.Image\032/\n\016SelectItemInfo\022\013\n"
+ + "\003key\030\001 \001(\t\022\020\n\010synonyms\030\002 \003(\t\"\213\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\010B\t\n\007message\032W\n\022FollowupIntentI"
+ + "nfo\022\034\n\024followup_intent_name\030\001 \001(\t\022#\n\033par"
+ + "ent_followup_intent_name\030\002 \001(\t\"t\n\014Webhoo"
+ + "kState\022\035\n\031WEBHOOK_STATE_UNSPECIFIED\020\000\022\031\n"
+ + "\025WEBHOOK_STATE_ENABLED\020\001\022*\n&WEBHOOK_STAT"
+ + "E_ENABLED_FOR_SLOT_FILLING\020\002\"\237\001\n\022ListInt"
+ + "entsRequest\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.v2.IntentView\022\021\n\tpage_"
+ + "size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"c\n\023ListIn"
+ "tentsResponse\0223\n\007intents\030\001 \003(\0132\".google."
- + "cloud.dialogflow.v2.Intent\"`\n\031BatchDelet"
- + "eIntentsRequest\022\016\n\006parent\030\001 \001(\t\0223\n\007inten"
- + "ts\030\002 \003(\0132\".google.cloud.dialogflow.v2.In"
- + "tent\"B\n\013IntentBatch\0223\n\007intents\030\001 \003(\0132\".g"
- + "oogle.cloud.dialogflow.v2.Intent*?\n\nInte"
- + "ntView\022\033\n\027INTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020I"
- + "NTENT_VIEW_FULL\020\0012\330\010\n\007Intents\022\235\001\n\013ListIn"
- + "tents\022..google.cloud.dialogflow.v2.ListI"
- + "ntentsRequest\032/.google.cloud.dialogflow."
- + "v2.ListIntentsResponse\"-\202\323\344\223\002\'\022%/v2/{par"
- + "ent=projects/*/agent}/intents\022\214\001\n\tGetInt"
- + "ent\022,.google.cloud.dialogflow.v2.GetInte"
- + "ntRequest\032\".google.cloud.dialogflow.v2.I"
- + "ntent\"-\202\323\344\223\002\'\022%/v2/{name=projects/*/agen"
- + "t/intents/*}\022\232\001\n\014CreateIntent\022/.google.c"
- + "loud.dialogflow.v2.CreateIntentRequest\032\""
- + ".google.cloud.dialogflow.v2.Intent\"5\202\323\344\223"
- + "\002/\"%/v2/{parent=projects/*/agent}/intent"
- + "s:\006intent\022\241\001\n\014UpdateIntent\022/.google.clou"
- + "d.dialogflow.v2.UpdateIntentRequest\032\".go"
- + "ogle.cloud.dialogflow.v2.Intent\"<\202\323\344\223\00262"
- + ",/v2/{intent.name=projects/*/agent/inten"
- + "ts/*}:\006intent\022\206\001\n\014DeleteIntent\022/.google."
- + "cloud.dialogflow.v2.DeleteIntentRequest\032"
- + "\026.google.protobuf.Empty\"-\202\323\344\223\002\'*%/v2/{na"
- + "me=projects/*/agent/intents/*}\022\250\001\n\022Batch"
- + "UpdateIntents\0225.google.cloud.dialogflow."
- + "v2.BatchUpdateIntentsRequest\032\035.google.lo"
- + "ngrunning.Operation\"<\202\323\344\223\0026\"1/v2/{parent"
- + "=projects/*/agent}/intents:batchUpdate:\001"
- + "*\022\250\001\n\022BatchDeleteIntents\0225.google.cloud."
- + "dialogflow.v2.BatchDeleteIntentsRequest\032"
- + "\035.google.longrunning.Operation\"<\202\323\344\223\0026\"1"
- + "/v2/{parent=projects/*/agent}/intents:ba"
- + "tchDelete:\001*B\232\001\n\036com.google.cloud.dialog"
- + "flow.v2B\013IntentProtoP\001ZDgoogle.golang.or"
- + "g/genproto/googleapis/cloud/dialogflow/v"
- + "2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dial"
- + "ogflow.V2b\006proto3"
+ + "cloud.dialogflow.v2.Intent\022\027\n\017next_page_"
+ + "token\030\002 \001(\t\"t\n\020GetIntentRequest\022\014\n\004name\030"
+ + "\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022;\n\013intent_v"
+ + "iew\030\003 \001(\0162&.google.cloud.dialogflow.v2.I"
+ + "ntentView\"\255\001\n\023CreateIntentRequest\022\016\n\006par"
+ + "ent\030\001 \001(\t\0222\n\006intent\030\002 \001(\0132\".google.cloud"
+ + ".dialogflow.v2.Intent\022\025\n\rlanguage_code\030\003"
+ + " \001(\t\022;\n\013intent_view\030\004 \001(\0162&.google.cloud"
+ + ".dialogflow.v2.IntentView\"\316\001\n\023UpdateInte"
+ + "ntRequest\0222\n\006intent\030\001 \001(\0132\".google.cloud"
+ + ".dialogflow.v2.Intent\022\025\n\rlanguage_code\030\002"
+ + " \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.proto"
+ + "buf.FieldMask\022;\n\013intent_view\030\004 \001(\0162&.goo"
+ + "gle.cloud.dialogflow.v2.IntentView\"#\n\023De"
+ + "leteIntentRequest\022\014\n\004name\030\001 \001(\t\"\244\002\n\031Batc"
+ + "hUpdateIntentsRequest\022\016\n\006parent\030\001 \001(\t\022\032\n"
+ + "\020intent_batch_uri\030\002 \001(\tH\000\022F\n\023intent_batc"
+ + "h_inline\030\003 \001(\0132\'.google.cloud.dialogflow"
+ + ".v2.IntentBatchH\000\022\025\n\rlanguage_code\030\004 \001(\t"
+ + "\022/\n\013update_mask\030\005 \001(\0132\032.google.protobuf."
+ + "FieldMask\022;\n\013intent_view\030\006 \001(\0162&.google."
+ + "cloud.dialogflow.v2.IntentViewB\016\n\014intent"
+ + "_batch\"Q\n\032BatchUpdateIntentsResponse\0223\n\007"
+ + "intents\030\001 \003(\0132\".google.cloud.dialogflow."
+ + "v2.Intent\"`\n\031BatchDeleteIntentsRequest\022\016"
+ + "\n\006parent\030\001 \001(\t\0223\n\007intents\030\002 \003(\0132\".google"
+ + ".cloud.dialogflow.v2.Intent\"B\n\013IntentBat"
+ + "ch\0223\n\007intents\030\001 \003(\0132\".google.cloud.dialo"
+ + "gflow.v2.Intent*?\n\nIntentView\022\033\n\027INTENT_"
+ + "VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\001"
+ + "2\330\010\n\007Intents\022\235\001\n\013ListIntents\022..google.cl"
+ + "oud.dialogflow.v2.ListIntentsRequest\032/.g"
+ + "oogle.cloud.dialogflow.v2.ListIntentsRes"
+ + "ponse\"-\202\323\344\223\002\'\022%/v2/{parent=projects/*/ag"
+ + "ent}/intents\022\214\001\n\tGetIntent\022,.google.clou"
+ + "d.dialogflow.v2.GetIntentRequest\032\".googl"
+ + "e.cloud.dialogflow.v2.Intent\"-\202\323\344\223\002\'\022%/v"
+ + "2/{name=projects/*/agent/intents/*}\022\232\001\n\014"
+ + "CreateIntent\022/.google.cloud.dialogflow.v"
+ + "2.CreateIntentRequest\032\".google.cloud.dia"
+ + "logflow.v2.Intent\"5\202\323\344\223\002/\"%/v2/{parent=p"
+ + "rojects/*/agent}/intents:\006intent\022\241\001\n\014Upd"
+ + "ateIntent\022/.google.cloud.dialogflow.v2.U"
+ + "pdateIntentRequest\032\".google.cloud.dialog"
+ + "flow.v2.Intent\"<\202\323\344\223\00262,/v2/{intent.name"
+ + "=projects/*/agent/intents/*}:\006intent\022\206\001\n"
+ + "\014DeleteIntent\022/.google.cloud.dialogflow."
+ + "v2.DeleteIntentRequest\032\026.google.protobuf"
+ + ".Empty\"-\202\323\344\223\002\'*%/v2/{name=projects/*/age"
+ + "nt/intents/*}\022\250\001\n\022BatchUpdateIntents\0225.g"
+ + "oogle.cloud.dialogflow.v2.BatchUpdateInt"
+ + "entsRequest\032\035.google.longrunning.Operati"
+ + "on\"<\202\323\344\223\0026\"1/v2/{parent=projects/*/agent"
+ + "}/intents:batchUpdate:\001*\022\250\001\n\022BatchDelete"
+ + "Intents\0225.google.cloud.dialogflow.v2.Bat"
+ + "chDeleteIntentsRequest\032\035.google.longrunn"
+ + "ing.Operation\"<\202\323\344\223\0026\"1/v2/{parent=proje"
+ + "cts/*/agent}/intents:batchDelete:\001*B\232\001\n\036"
+ + "com.google.cloud.dialogflow.v2B\013IntentPr"
+ + "otoP\001ZDgoogle.golang.org/genproto/google"
+ + "apis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002"
+ + "\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -350,8 +351,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.dialogflow.v2.ContextProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
@@ -715,8 +718,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.cloud.dialogflow.v2.ContextProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java
index cd6f8e8d0766..60660617a2d0 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+ * The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListContextsRequest}
@@ -390,8 +389,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+ * The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListContextsRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java
index b30154350b47..a5ec56d8666e 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java
@@ -7,8 +7,7 @@
*
*
*
- * The response message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+ * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListContextsResponse}
@@ -396,8 +395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+ * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListContextsResponse}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java
index 11b887d9886c..c8df7ac44e75 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+ * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListEntityTypesRequest}
@@ -166,9 +165,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -190,9 +190,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -459,8 +460,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+ * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListEntityTypesRequest}
@@ -741,9 +741,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -765,9 +766,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -789,9 +791,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -811,9 +814,10 @@ public Builder setLanguageCode(java.lang.String value) {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -830,9 +834,10 @@ public Builder clearLanguageCode() {
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java
index d2464204f978..0e96dcce841c 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java
@@ -37,9 +37,10 @@ public interface ListEntityTypesRequestOrBuilder
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -51,9 +52,10 @@ public interface ListEntityTypesRequestOrBuilder
*
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java
index cc3681b1e56e..4146dcc506fa 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java
@@ -7,8 +7,7 @@
*
*
*
- * The response message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+ * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListEntityTypesResponse}
@@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+ * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListEntityTypesResponse}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java
index 157e6c5a2856..8204c3e527bf 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+ * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListIntentsRequest}
@@ -174,9 +173,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -198,9 +198,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -507,8 +508,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+ * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListIntentsRequest}
@@ -795,9 +795,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -819,9 +820,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -843,9 +845,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -865,9 +868,10 @@ public Builder setLanguageCode(java.lang.String value) {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -884,9 +888,10 @@ public Builder clearLanguageCode() {
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java
index 9c83d4b01b77..cc097cd7bd66 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java
@@ -37,9 +37,10 @@ public interface ListIntentsRequestOrBuilder
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -51,9 +52,10 @@ public interface ListIntentsRequestOrBuilder
*
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java
index cfe644bd0382..d926ff2f63ed 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java
@@ -7,8 +7,7 @@
*
*
*
- * The response message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+ * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListIntentsResponse}
@@ -396,8 +395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+ * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListIntentsResponse}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java
index 2dea7289fe3d..0f11dbda7430 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListSessionEntityTypesRequest}
@@ -391,8 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListSessionEntityTypesRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java
index ceda06004583..7ef49f81d0ed 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java
@@ -7,8 +7,7 @@
*
*
*
- * The response message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListSessionEntityTypesResponse}
@@ -403,8 +402,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.ListSessionEntityTypesResponse}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java
index a231987ddcb4..afec8453bf61 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java
@@ -25,6 +25,7 @@ private OriginalDetectIntentRequest(com.google.protobuf.GeneratedMessageV3.Build
private OriginalDetectIntentRequest() {
source_ = "";
+ version_ = "";
}
@java.lang.Override
@@ -58,6 +59,13 @@ 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;
@@ -151,14 +159,69 @@ public com.google.protobuf.ByteString getSourceBytes() {
}
}
+ 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.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -170,8 +233,18 @@ public boolean hasPayload() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -183,8 +256,18 @@ public com.google.protobuf.Struct getPayload() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -210,6 +293,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
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());
}
@@ -225,6 +311,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());
}
@@ -245,6 +334,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest) obj;
if (!getSource().equals(other.getSource())) return false;
+ if (!getVersion().equals(other.getVersion())) return false;
if (hasPayload() != other.hasPayload()) return false;
if (hasPayload()) {
if (!getPayload().equals(other.getPayload())) return false;
@@ -262,6 +352,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();
@@ -415,6 +507,8 @@ public Builder clear() {
super.clear();
source_ = "";
+ version_ = "";
+
if (payloadBuilder_ == null) {
payload_ = null;
} else {
@@ -449,6 +543,7 @@ public com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest buildPartial()
com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest result =
new com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest(this);
result.source_ = source_;
+ result.version_ = version_;
if (payloadBuilder_ == null) {
result.payload_ = payload_;
} else {
@@ -508,6 +603,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.OriginalDetectIntentRequ
source_ = other.source_;
onChanged();
}
+ if (!other.getVersion().isEmpty()) {
+ version_ = other.version_;
+ onChanged();
+ }
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
@@ -640,6 +739,105 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) {
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_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
@@ -650,8 +848,18 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -663,8 +871,18 @@ public boolean hasPayload() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -680,8 +898,18 @@ public com.google.protobuf.Struct getPayload() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -703,8 +931,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.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -723,8 +961,18 @@ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -748,8 +996,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.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -769,8 +1027,18 @@ public Builder clearPayload() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -784,8 +1052,18 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -801,8 +1079,18 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java
index 3e095a434d16..0cbb4dfef857 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java
@@ -35,8 +35,41 @@ public interface OriginalDetectIntentRequestOrBuilder
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * 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 the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -46,8 +79,18 @@ public interface OriginalDetectIntentRequestOrBuilder
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
@@ -57,8 +100,18 @@ public interface OriginalDetectIntentRequestOrBuilder
*
*
*
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * <pre>{
+ * "telephony": {
+ * "caller_id": "+18558363987"
+ * }
+ * }</pre>
+ * Note: The caller ID field (`caller_id`) will be redacted for Standard
+ * Edition agents and populated with the caller ID in [E.164
+ * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
*
*
* .google.protobuf.Struct payload = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java
new file mode 100644
index 000000000000..3f0a1b4890e2
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java
@@ -0,0 +1,943 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * Instructs the speech synthesizer how to generate the output audio content.
+ *
+ *
+ * Protobuf type {@code google.cloud.dialogflow.v2.OutputAudioConfig}
+ */
+public final class OutputAudioConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.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;
+ }
+
+ @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;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ audioEncoding_ = rawValue;
+ break;
+ }
+ case 16:
+ {
+ sampleRateHertz_ = input.readInt32();
+ break;
+ }
+ case 26:
+ {
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder subBuilder = null;
+ if (synthesizeSpeechConfig_ != null) {
+ subBuilder = synthesizeSpeechConfig_.toBuilder();
+ }
+ synthesizeSpeechConfig_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(synthesizeSpeechConfig_);
+ synthesizeSpeechConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ 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.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.class,
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ public int getAudioEncodingValue() {
+ return audioEncoding_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ *
+ * .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioEncoding getAudioEncoding() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.OutputAudioEncoding result =
+ com.google.cloud.dialogflow.v2.OutputAudioEncoding.valueOf(audioEncoding_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig synthesizeSpeechConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public boolean hasSynthesizeSpeechConfig() {
+ return synthesizeSpeechConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig getSynthesizeSpeechConfig() {
+ return synthesizeSpeechConfig_ == null
+ ? com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.getDefaultInstance()
+ : synthesizeSpeechConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder
+ getSynthesizeSpeechConfigOrBuilder() {
+ return getSynthesizeSpeechConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (audioEncoding_
+ != com.google.cloud.dialogflow.v2.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);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (audioEncoding_
+ != com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.OutputAudioConfig other =
+ (com.google.cloud.dialogflow.v2.OutputAudioConfig) obj;
+
+ if (audioEncoding_ != other.audioEncoding_) return false;
+ if (getSampleRateHertz() != other.getSampleRateHertz()) return false;
+ if (hasSynthesizeSpeechConfig() != other.hasSynthesizeSpeechConfig()) return false;
+ if (hasSynthesizeSpeechConfig()) {
+ if (!getSynthesizeSpeechConfig().equals(other.getSynthesizeSpeechConfig())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + 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.v2.OutputAudioConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.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.v2.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2.OutputAudioConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ 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.v2.OutputAudioConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.OutputAudioConfig)
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.class,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ audioEncoding_ = 0;
+
+ sampleRateHertz_ = 0;
+
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ synthesizeSpeechConfig_ = null;
+ } else {
+ synthesizeSpeechConfig_ = null;
+ synthesizeSpeechConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig build() {
+ com.google.cloud.dialogflow.v2.OutputAudioConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig buildPartial() {
+ com.google.cloud.dialogflow.v2.OutputAudioConfig result =
+ new com.google.cloud.dialogflow.v2.OutputAudioConfig(this);
+ result.audioEncoding_ = audioEncoding_;
+ result.sampleRateHertz_ = sampleRateHertz_;
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ result.synthesizeSpeechConfig_ = synthesizeSpeechConfig_;
+ } else {
+ result.synthesizeSpeechConfig_ = synthesizeSpeechConfigBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.OutputAudioConfig) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.OutputAudioConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.OutputAudioConfig other) {
+ if (other == com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance())
+ return this;
+ if (other.audioEncoding_ != 0) {
+ setAudioEncodingValue(other.getAudioEncodingValue());
+ }
+ if (other.getSampleRateHertz() != 0) {
+ setSampleRateHertz(other.getSampleRateHertz());
+ }
+ if (other.hasSynthesizeSpeechConfig()) {
+ mergeSynthesizeSpeechConfig(other.getSynthesizeSpeechConfig());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.OutputAudioConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dialogflow.v2.OutputAudioConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int audioEncoding_ = 0;
+ /**
+ *
+ *
+ *
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ *
+ * .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ public int getAudioEncodingValue() {
+ return audioEncoding_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioEncoding getAudioEncoding() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.OutputAudioEncoding result =
+ com.google.cloud.dialogflow.v2.OutputAudioEncoding.valueOf(audioEncoding_);
+ return result == null
+ ? com.google.cloud.dialogflow.v2.OutputAudioEncoding.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ *
+ * .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ public Builder setAudioEncoding(com.google.cloud.dialogflow.v2.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.v2.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.v2.SynthesizeSpeechConfig synthesizeSpeechConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder>
+ synthesizeSpeechConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public boolean hasSynthesizeSpeechConfig() {
+ return synthesizeSpeechConfigBuilder_ != null || synthesizeSpeechConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig getSynthesizeSpeechConfig() {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ return synthesizeSpeechConfig_ == null
+ ? com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.getDefaultInstance()
+ : synthesizeSpeechConfig_;
+ } else {
+ return synthesizeSpeechConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder setSynthesizeSpeechConfig(
+ com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder setSynthesizeSpeechConfig(
+ com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public Builder mergeSynthesizeSpeechConfig(
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig value) {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ if (synthesizeSpeechConfig_ != null) {
+ synthesizeSpeechConfig_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder
+ getSynthesizeSpeechConfigBuilder() {
+
+ onChanged();
+ return getSynthesizeSpeechConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder
+ getSynthesizeSpeechConfigOrBuilder() {
+ if (synthesizeSpeechConfigBuilder_ != null) {
+ return synthesizeSpeechConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return synthesizeSpeechConfig_ == null
+ ? com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.getDefaultInstance()
+ : synthesizeSpeechConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder>
+ getSynthesizeSpeechConfigFieldBuilder() {
+ if (synthesizeSpeechConfigBuilder_ == null) {
+ synthesizeSpeechConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder>(
+ getSynthesizeSpeechConfig(), getParentForChildren(), isClean());
+ synthesizeSpeechConfig_ = null;
+ }
+ return synthesizeSpeechConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.OutputAudioConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.OutputAudioConfig)
+ private static final com.google.cloud.dialogflow.v2.OutputAudioConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.OutputAudioConfig();
+ }
+
+ public static com.google.cloud.dialogflow.v2.OutputAudioConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public OutputAudioConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new OutputAudioConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java
new file mode 100644
index 000000000000..9cf7f045055e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java
@@ -0,0 +1,78 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public interface OutputAudioConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.OutputAudioConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ *
+ * .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ int getAudioEncodingValue();
+ /**
+ *
+ *
+ *
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ *
+ * .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ boolean hasSynthesizeSpeechConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig getSynthesizeSpeechConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder
+ getSynthesizeSpeechConfigOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java
new file mode 100644
index 000000000000..c03b8e0ba80e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java
@@ -0,0 +1,182 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * Audio encoding of the output audio format in Text-To-Speech.
+ *
+ *
+ * Protobuf enum {@code google.cloud.dialogflow.v2.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
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public OutputAudioEncoding findValueByNumber(int number) {
+ return OutputAudioEncoding.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.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final OutputAudioEncoding[] VALUES = values();
+
+ public static OutputAudioEncoding 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 OutputAudioEncoding(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.OutputAudioEncoding)
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java
index 37844e60b461..e2f0f4855c8e 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java
@@ -114,6 +114,24 @@ private QueryParameters(
payload_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 82:
+ {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.Builder subBuilder =
+ null;
+ if (sentimentAnalysisRequestConfig_ != null) {
+ subBuilder = sentimentAnalysisRequestConfig_.toBuilder();
+ }
+ sentimentAnalysisRequestConfig_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(sentimentAnalysisRequestConfig_);
+ sentimentAnalysisRequestConfig_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -336,9 +354,9 @@ public boolean getResetContexts() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -351,9 +369,9 @@ public boolean getResetContexts() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -366,9 +384,9 @@ public boolean getResetContexts() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -380,9 +398,9 @@ public int getSessionEntityTypesCount() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -394,9 +412,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityTypes(in
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -448,6 +466,59 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
return getPayload();
}
+ public static final int SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER = 10;
+ private com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ sentimentAnalysisRequestConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ getSentimentAnalysisRequestConfig() {
+ return sentimentAnalysisRequestConfig_ == null
+ ? com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.getDefaultInstance()
+ : sentimentAnalysisRequestConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder
+ getSentimentAnalysisRequestConfigOrBuilder() {
+ return getSentimentAnalysisRequestConfig();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -480,6 +551,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (payload_ != null) {
output.writeMessage(6, getPayload());
}
+ if (sentimentAnalysisRequestConfig_ != null) {
+ output.writeMessage(10, getSentimentAnalysisRequestConfig());
+ }
unknownFields.writeTo(output);
}
@@ -508,6 +582,11 @@ public int getSerializedSize() {
if (payload_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPayload());
}
+ if (sentimentAnalysisRequestConfig_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 10, getSentimentAnalysisRequestConfig());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -536,6 +615,12 @@ public boolean equals(final java.lang.Object obj) {
if (hasPayload()) {
if (!getPayload().equals(other.getPayload())) return false;
}
+ if (hasSentimentAnalysisRequestConfig() != other.hasSentimentAnalysisRequestConfig())
+ return false;
+ if (hasSentimentAnalysisRequestConfig()) {
+ if (!getSentimentAnalysisRequestConfig().equals(other.getSentimentAnalysisRequestConfig()))
+ return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -567,6 +652,10 @@ public int hashCode() {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().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;
@@ -743,6 +832,12 @@ public Builder clear() {
payload_ = null;
payloadBuilder_ = null;
}
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ sentimentAnalysisRequestConfig_ = null;
+ } else {
+ sentimentAnalysisRequestConfig_ = null;
+ sentimentAnalysisRequestConfigBuilder_ = null;
+ }
return this;
}
@@ -802,6 +897,11 @@ public com.google.cloud.dialogflow.v2.QueryParameters buildPartial() {
} else {
result.payload_ = payloadBuilder_.build();
}
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ result.sentimentAnalysisRequestConfig_ = sentimentAnalysisRequestConfig_;
+ } else {
+ result.sentimentAnalysisRequestConfig_ = sentimentAnalysisRequestConfigBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -919,6 +1019,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.QueryParameters other) {
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
+ if (other.hasSentimentAnalysisRequestConfig()) {
+ mergeSentimentAnalysisRequestConfig(other.getSentimentAnalysisRequestConfig());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1665,9 +1768,9 @@ private void ensureSessionEntityTypesIsMutable() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1684,9 +1787,9 @@ private void ensureSessionEntityTypesIsMutable() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1702,9 +1805,9 @@ public int getSessionEntityTypesCount() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1720,9 +1823,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityTypes(in
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1745,9 +1848,9 @@ public Builder setSessionEntityTypes(
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1767,9 +1870,9 @@ public Builder setSessionEntityTypes(
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1791,9 +1894,9 @@ public Builder addSessionEntityTypes(com.google.cloud.dialogflow.v2.SessionEntit
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1816,9 +1919,9 @@ public Builder addSessionEntityTypes(
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1838,9 +1941,9 @@ public Builder addSessionEntityTypes(
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1860,9 +1963,9 @@ public Builder addSessionEntityTypes(
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1882,9 +1985,9 @@ public Builder addAllSessionEntityTypes(
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1903,9 +2006,9 @@ public Builder clearSessionEntityTypes() {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1924,9 +2027,9 @@ public Builder removeSessionEntityTypes(int index) {
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1939,9 +2042,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType.Builder getSessionEntity
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1958,9 +2061,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntit
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1977,9 +2080,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntit
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -1992,9 +2095,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType.Builder addSessionEntity
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -2008,9 +2111,9 @@ public com.google.cloud.dialogflow.v2.SessionEntityType.Builder addSessionEntity
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -2224,6 +2327,223 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() {
return payloadBuilder_;
}
+ private com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ sentimentAnalysisRequestConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.Builder,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder>
+ sentimentAnalysisRequestConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ getSentimentAnalysisRequestConfig() {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ return sentimentAnalysisRequestConfig_ == null
+ ? com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.getDefaultInstance()
+ : sentimentAnalysisRequestConfig_;
+ } else {
+ return sentimentAnalysisRequestConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public Builder setSentimentAnalysisRequestConfig(
+ com.google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public Builder setSentimentAnalysisRequestConfig(
+ com.google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public Builder mergeSentimentAnalysisRequestConfig(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig value) {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ if (sentimentAnalysisRequestConfig_ != null) {
+ sentimentAnalysisRequestConfig_ =
+ com.google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.Builder
+ getSentimentAnalysisRequestConfigBuilder() {
+
+ onChanged();
+ return getSentimentAnalysisRequestConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder
+ getSentimentAnalysisRequestConfigOrBuilder() {
+ if (sentimentAnalysisRequestConfigBuilder_ != null) {
+ return sentimentAnalysisRequestConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return sentimentAnalysisRequestConfig_ == null
+ ? com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.getDefaultInstance()
+ : sentimentAnalysisRequestConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.Builder,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder>
+ getSentimentAnalysisRequestConfigFieldBuilder() {
+ if (sentimentAnalysisRequestConfigBuilder_ == null) {
+ sentimentAnalysisRequestConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.Builder,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder>(
+ getSentimentAnalysisRequestConfig(), getParentForChildren(), isClean());
+ sentimentAnalysisRequestConfig_ = null;
+ }
+ return sentimentAnalysisRequestConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java
index 87f7c4aadfaf..6ee57570b4a3 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java
@@ -139,9 +139,9 @@ public interface QueryParametersOrBuilder
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -151,9 +151,9 @@ public interface QueryParametersOrBuilder
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -163,9 +163,9 @@ public interface QueryParametersOrBuilder
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -175,9 +175,9 @@ public interface QueryParametersOrBuilder
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -188,9 +188,9 @@ public interface QueryParametersOrBuilder
*
*
*
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
*
* repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
@@ -231,4 +231,45 @@ com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypesO
* .google.protobuf.Struct payload = 6;
*/
com.google.protobuf.StructOrBuilder getPayloadOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ *
+ */
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder
+ getSentimentAnalysisRequestConfigOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java
index 1b4f28fd3f3a..68b1f5e65189 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java
@@ -188,6 +188,23 @@ private QueryResult(
java.lang.String s = input.readStringRequireUtf8();
languageCode_ = s;
+ break;
+ }
+ case 138:
+ {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder subBuilder = null;
+ if (sentimentAnalysisResult_ != null) {
+ subBuilder = sentimentAnalysisResult_.toBuilder();
+ }
+ sentimentAnalysisResult_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(sentimentAnalysisResult_);
+ sentimentAnalysisResult_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -293,7 +310,8 @@ public com.google.protobuf.ByteString getQueryTextBytes() {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -315,7 +333,8 @@ public java.lang.String getLanguageCode() {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -343,10 +362,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* 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;
@@ -463,6 +482,7 @@ public boolean getAllRequiredParamsPresent() {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -483,6 +503,7 @@ public java.lang.String getFulfillmentText() {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -786,6 +807,8 @@ public com.google.cloud.dialogflow.v2.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;
@@ -800,8 +823,9 @@ public float getIntentDetectionConfidence() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -813,8 +837,9 @@ public boolean hasDiagnosticInfo() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -828,8 +853,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -838,6 +864,54 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
return getDiagnosticInfo();
}
+ public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 17;
+ private com.google.cloud.dialogflow.v2.SentimentAnalysisResult sentimentAnalysisResult_;
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult getSentimentAnalysisResult() {
+ return sentimentAnalysisResult_ == null
+ ? com.google.cloud.dialogflow.v2.SentimentAnalysisResult.getDefaultInstance()
+ : sentimentAnalysisResult_;
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder
+ getSentimentAnalysisResultOrBuilder() {
+ return getSentimentAnalysisResult();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -894,6 +968,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getLanguageCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_);
}
+ if (sentimentAnalysisResult_ != null) {
+ output.writeMessage(17, getSentimentAnalysisResult());
+ }
unknownFields.writeTo(output);
}
@@ -948,6 +1025,11 @@ 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());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -992,6 +1074,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasDiagnosticInfo()) {
if (!getDiagnosticInfo().equals(other.getDiagnosticInfo())) return false;
}
+ if (hasSentimentAnalysisResult() != other.hasSentimentAnalysisResult()) return false;
+ if (hasSentimentAnalysisResult()) {
+ if (!getSentimentAnalysisResult().equals(other.getSentimentAnalysisResult())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1043,6 +1129,10 @@ 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();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1243,6 +1333,12 @@ public Builder clear() {
diagnosticInfo_ = null;
diagnosticInfoBuilder_ = null;
}
+ if (sentimentAnalysisResultBuilder_ == null) {
+ sentimentAnalysisResult_ = null;
+ } else {
+ sentimentAnalysisResult_ = null;
+ sentimentAnalysisResultBuilder_ = null;
+ }
return this;
}
@@ -1318,6 +1414,11 @@ public com.google.cloud.dialogflow.v2.QueryResult buildPartial() {
} else {
result.diagnosticInfo_ = diagnosticInfoBuilder_.build();
}
+ if (sentimentAnalysisResultBuilder_ == null) {
+ result.sentimentAnalysisResult_ = sentimentAnalysisResult_;
+ } else {
+ result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -1463,6 +1564,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.QueryResult other) {
if (other.hasDiagnosticInfo()) {
mergeDiagnosticInfo(other.getDiagnosticInfo());
}
+ if (other.hasSentimentAnalysisResult()) {
+ mergeSentimentAnalysisResult(other.getSentimentAnalysisResult());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1624,7 +1728,8 @@ public Builder setQueryTextBytes(com.google.protobuf.ByteString value) {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -1646,7 +1751,8 @@ public java.lang.String getLanguageCode() {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -1668,7 +1774,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -1688,7 +1795,8 @@ public Builder setLanguageCode(java.lang.String value) {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -1705,7 +1813,8 @@ public Builder clearLanguageCode() {
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -1731,10 +1840,10 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString 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;
@@ -1750,10 +1859,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;
@@ -1772,10 +1881,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;
@@ -2118,6 +2227,7 @@ public Builder clearAllRequiredParamsPresent() {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -2138,6 +2248,7 @@ public java.lang.String getFulfillmentText() {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -2158,6 +2269,7 @@ public com.google.protobuf.ByteString getFulfillmentTextBytes() {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -2176,6 +2288,7 @@ public Builder setFulfillmentText(java.lang.String value) {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -2191,6 +2304,7 @@ public Builder clearFulfillmentText() {
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -3470,6 +3584,8 @@ public com.google.cloud.dialogflow.v2.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;
@@ -3483,6 +3599,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;
@@ -3499,6 +3617,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;
@@ -3520,8 +3640,9 @@ public Builder clearIntentDetectionConfidence() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3533,8 +3654,9 @@ public boolean hasDiagnosticInfo() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3552,8 +3674,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3575,8 +3698,9 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3595,8 +3719,9 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3622,8 +3747,9 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3643,8 +3769,9 @@ public Builder clearDiagnosticInfo() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3658,8 +3785,9 @@ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3677,8 +3805,9 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -3700,6 +3829,211 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
return diagnosticInfoBuilder_;
}
+ private com.google.cloud.dialogflow.v2.SentimentAnalysisResult sentimentAnalysisResult_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder>
+ sentimentAnalysisResultBuilder_;
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ *
+ * .google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult getSentimentAnalysisResult() {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ return sentimentAnalysisResult_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public Builder setSentimentAnalysisResult(
+ com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public Builder setSentimentAnalysisResult(
+ com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public Builder mergeSentimentAnalysisResult(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult value) {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ if (sentimentAnalysisResult_ != null) {
+ sentimentAnalysisResult_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder
+ getSentimentAnalysisResultOrBuilder() {
+ if (sentimentAnalysisResultBuilder_ != null) {
+ return sentimentAnalysisResultBuilder_.getMessageOrBuilder();
+ } else {
+ return sentimentAnalysisResult_ == null
+ ? com.google.cloud.dialogflow.v2.SentimentAnalysisResult.getDefaultInstance()
+ : sentimentAnalysisResult_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder>
+ getSentimentAnalysisResultFieldBuilder() {
+ if (sentimentAnalysisResultBuilder_ == null) {
+ sentimentAnalysisResultBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder>(
+ getSentimentAnalysisResult(), getParentForChildren(), isClean());
+ sentimentAnalysisResult_ = null;
+ }
+ return sentimentAnalysisResultBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java
index 7b2a6e764005..b3647cc0f953 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java
@@ -46,7 +46,8 @@ public interface QueryResultOrBuilder
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -58,7 +59,8 @@ public interface QueryResultOrBuilder
*
*
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
*
@@ -74,10 +76,10 @@ public interface QueryResultOrBuilder
* 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;
@@ -156,6 +158,7 @@ public interface QueryResultOrBuilder
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -166,6 +169,7 @@ public interface QueryResultOrBuilder
*
*
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
*
* string fulfillment_text = 6;
@@ -391,6 +395,8 @@ public interface QueryResultOrBuilder
*
* 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;
@@ -401,8 +407,9 @@ public interface QueryResultOrBuilder
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -412,8 +419,9 @@ public interface QueryResultOrBuilder
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .google.protobuf.Struct diagnostic_info = 14;
@@ -423,11 +431,50 @@ public interface QueryResultOrBuilder
*
*
*
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
*
* .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.v2.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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult getSentimentAnalysisResult();
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ *
+ * .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ *
+ */
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder
+ getSentimentAnalysisResultOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java
index 1dbf40bed9b2..45864e44dbb9 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
+ * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.RestoreAgentRequest}
@@ -251,16 +250,17 @@ public com.google.protobuf.ByteString getAgentUriBytes() {
*
* The agent to restore.
* Example for how to restore an agent via the command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
+ * <pre>curl \
+ * 'https://dialogflow.googleapis.com/v2/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;
@@ -472,8 +472,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
+ * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.RestoreAgentRequest}
@@ -884,16 +883,17 @@ public Builder setAgentUriBytes(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/v2/projects/<project_name>/agent:restore\
+ * <pre>curl \
+ * 'https://dialogflow.googleapis.com/v2/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;
@@ -910,16 +910,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/v2/projects/<project_name>/agent:restore\
+ * <pre>curl \
+ * 'https://dialogflow.googleapis.com/v2/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;
@@ -939,16 +940,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/v2/projects/<project_name>/agent:restore\
+ * <pre>curl \
+ * 'https://dialogflow.googleapis.com/v2/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-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java
index 3b8147f0151e..8bffaa72abbf 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java
@@ -60,16 +60,17 @@ public interface RestoreAgentRequestOrBuilder
*
* The agent to restore.
* Example for how to restore an agent via the command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
+ * <pre>curl \
+ * 'https://dialogflow.googleapis.com/v2/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-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java
index 679cf5c0db83..83bfeebcb7bd 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+ * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SearchAgentsRequest}
@@ -390,8 +389,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+ * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SearchAgentsRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java
index 302d661c2e25..2800cea683da 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java
@@ -7,8 +7,7 @@
*
*
*
- * The response message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+ * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SearchAgentsResponse}
@@ -396,8 +395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+ * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SearchAgentsResponse}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java
new file mode 100644
index 000000000000..ccc857a4ddd6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java
@@ -0,0 +1,603 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/session.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * 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.v2.Sentiment}
+ */
+public final class Sentiment extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.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() {}
+
+ @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;
+ case 13:
+ {
+ score_ = input.readFloat();
+ break;
+ }
+ case 21:
+ {
+ magnitude_ = input.readFloat();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ 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.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_Sentiment_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_Sentiment_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.Sentiment.class,
+ com.google.cloud.dialogflow.v2.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;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ 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);
+ }
+
+ @java.lang.Override
+ 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.v2.Sentiment)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.Sentiment other = (com.google.cloud.dialogflow.v2.Sentiment) obj;
+
+ if (java.lang.Float.floatToIntBits(getScore())
+ != java.lang.Float.floatToIntBits(other.getScore())) return false;
+ if (java.lang.Float.floatToIntBits(getMagnitude())
+ != java.lang.Float.floatToIntBits(other.getMagnitude())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + 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.v2.Sentiment parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.Sentiment parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.Sentiment parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.Sentiment parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.Sentiment parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.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.v2.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2.Sentiment prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ 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.v2.Sentiment}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Sentiment)
+ com.google.cloud.dialogflow.v2.SentimentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_Sentiment_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_Sentiment_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.Sentiment.class,
+ com.google.cloud.dialogflow.v2.Sentiment.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.Sentiment.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ score_ = 0F;
+
+ magnitude_ = 0F;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_Sentiment_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Sentiment getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.Sentiment.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Sentiment build() {
+ com.google.cloud.dialogflow.v2.Sentiment result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Sentiment buildPartial() {
+ com.google.cloud.dialogflow.v2.Sentiment result =
+ new com.google.cloud.dialogflow.v2.Sentiment(this);
+ result.score_ = score_;
+ result.magnitude_ = magnitude_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.Sentiment) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.Sentiment) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Sentiment other) {
+ if (other == com.google.cloud.dialogflow.v2.Sentiment.getDefaultInstance()) return this;
+ if (other.getScore() != 0F) {
+ setScore(other.getScore());
+ }
+ if (other.getMagnitude() != 0F) {
+ setMagnitude(other.getMagnitude());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.Sentiment parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dialogflow.v2.Sentiment) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private float score_;
+ /**
+ *
+ *
+ *
+ * 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;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Sentiment)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Sentiment)
+ private static final com.google.cloud.dialogflow.v2.Sentiment DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Sentiment();
+ }
+
+ public static com.google.cloud.dialogflow.v2.Sentiment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Sentiment parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Sentiment(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.Sentiment getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java
new file mode 100644
index 000000000000..791220d440ae
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java
@@ -0,0 +1,529 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/session.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * Configures the types of sentiment analysis to perform.
+ *
+ *
+ * Protobuf type {@code google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig}
+ */
+public final class SentimentAnalysisRequestConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.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() {}
+
+ @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;
+ case 8:
+ {
+ analyzeQueryTextSentiment_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ 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.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.class,
+ com.google.cloud.dialogflow.v2.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;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (analyzeQueryTextSentiment_ != false) {
+ output.writeBool(1, analyzeQueryTextSentiment_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ 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.v2.SentimentAnalysisRequestConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig other =
+ (com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig) obj;
+
+ if (getAnalyzeQueryTextSentiment() != other.getAnalyzeQueryTextSentiment()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + 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.v2.SentimentAnalysisRequestConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisRequestConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisRequestConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisRequestConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisRequestConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.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.v2.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ 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.v2.SentimentAnalysisRequestConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig)
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.class,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ analyzeQueryTextSentiment_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig build() {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig buildPartial() {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig result =
+ new com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig(this);
+ result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig other) {
+ if (other
+ == com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig.getDefaultInstance())
+ return this;
+ if (other.getAnalyzeQueryTextSentiment() != false) {
+ setAnalyzeQueryTextSentiment(other.getAnalyzeQueryTextSentiment());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ 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_;
+ }
+ /**
+ *
+ *
+ *
+ * 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;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig)
+ private static final com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig();
+ }
+
+ public static com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SentimentAnalysisRequestConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SentimentAnalysisRequestConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java
new file mode 100644
index 000000000000..8f70cf8e36f3
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java
@@ -0,0 +1,23 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/session.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public interface SentimentAnalysisRequestConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java
new file mode 100644
index 000000000000..70b4ccc4edef
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java
@@ -0,0 +1,706 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/session.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * The result of sentiment analysis as configured by
+ * `sentiment_analysis_request_config`.
+ *
+ *
+ * Protobuf type {@code google.cloud.dialogflow.v2.SentimentAnalysisResult}
+ */
+public final class SentimentAnalysisResult extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.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;
+ case 10:
+ {
+ com.google.cloud.dialogflow.v2.Sentiment.Builder subBuilder = null;
+ if (queryTextSentiment_ != null) {
+ subBuilder = queryTextSentiment_.toBuilder();
+ }
+ queryTextSentiment_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.Sentiment.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(queryTextSentiment_);
+ queryTextSentiment_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ 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.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.class,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder.class);
+ }
+
+ public static final int QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 1;
+ private com.google.cloud.dialogflow.v2.Sentiment queryTextSentiment_;
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public boolean hasQueryTextSentiment() {
+ return queryTextSentiment_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2.Sentiment getQueryTextSentiment() {
+ return queryTextSentiment_ == null
+ ? com.google.cloud.dialogflow.v2.Sentiment.getDefaultInstance()
+ : queryTextSentiment_;
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2.SentimentOrBuilder getQueryTextSentimentOrBuilder() {
+ return getQueryTextSentiment();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (queryTextSentiment_ != null) {
+ output.writeMessage(1, getQueryTextSentiment());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ 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.v2.SentimentAnalysisResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult other =
+ (com.google.cloud.dialogflow.v2.SentimentAnalysisResult) obj;
+
+ if (hasQueryTextSentiment() != other.hasQueryTextSentiment()) return false;
+ if (hasQueryTextSentiment()) {
+ if (!getQueryTextSentiment().equals(other.getQueryTextSentiment())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @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.v2.SentimentAnalysisResult parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SentimentAnalysisResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.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.v2.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ 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.v2.SentimentAnalysisResult}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SentimentAnalysisResult)
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.class,
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.SentimentAnalysisResult.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (queryTextSentimentBuilder_ == null) {
+ queryTextSentiment_ = null;
+ } else {
+ queryTextSentiment_ = null;
+ queryTextSentimentBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.SessionProto
+ .internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.SentimentAnalysisResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult build() {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult buildPartial() {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult result =
+ new com.google.cloud.dialogflow.v2.SentimentAnalysisResult(this);
+ if (queryTextSentimentBuilder_ == null) {
+ result.queryTextSentiment_ = queryTextSentiment_;
+ } else {
+ result.queryTextSentiment_ = queryTextSentimentBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.SentimentAnalysisResult) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.SentimentAnalysisResult) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SentimentAnalysisResult other) {
+ if (other == com.google.cloud.dialogflow.v2.SentimentAnalysisResult.getDefaultInstance())
+ return this;
+ if (other.hasQueryTextSentiment()) {
+ mergeQueryTextSentiment(other.getQueryTextSentiment());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.SentimentAnalysisResult parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dialogflow.v2.SentimentAnalysisResult) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.cloud.dialogflow.v2.Sentiment queryTextSentiment_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Sentiment,
+ com.google.cloud.dialogflow.v2.Sentiment.Builder,
+ com.google.cloud.dialogflow.v2.SentimentOrBuilder>
+ queryTextSentimentBuilder_;
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public boolean hasQueryTextSentiment() {
+ return queryTextSentimentBuilder_ != null || queryTextSentiment_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2.Sentiment getQueryTextSentiment() {
+ if (queryTextSentimentBuilder_ == null) {
+ return queryTextSentiment_ == null
+ ? com.google.cloud.dialogflow.v2.Sentiment.getDefaultInstance()
+ : queryTextSentiment_;
+ } else {
+ return queryTextSentimentBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public Builder setQueryTextSentiment(com.google.cloud.dialogflow.v2.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.v2.Sentiment query_text_sentiment = 1;
+ */
+ public Builder setQueryTextSentiment(
+ com.google.cloud.dialogflow.v2.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.v2.Sentiment query_text_sentiment = 1;
+ */
+ public Builder mergeQueryTextSentiment(com.google.cloud.dialogflow.v2.Sentiment value) {
+ if (queryTextSentimentBuilder_ == null) {
+ if (queryTextSentiment_ != null) {
+ queryTextSentiment_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2.Sentiment.Builder getQueryTextSentimentBuilder() {
+
+ onChanged();
+ return getQueryTextSentimentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ public com.google.cloud.dialogflow.v2.SentimentOrBuilder getQueryTextSentimentOrBuilder() {
+ if (queryTextSentimentBuilder_ != null) {
+ return queryTextSentimentBuilder_.getMessageOrBuilder();
+ } else {
+ return queryTextSentiment_ == null
+ ? com.google.cloud.dialogflow.v2.Sentiment.getDefaultInstance()
+ : queryTextSentiment_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Sentiment,
+ com.google.cloud.dialogflow.v2.Sentiment.Builder,
+ com.google.cloud.dialogflow.v2.SentimentOrBuilder>
+ getQueryTextSentimentFieldBuilder() {
+ if (queryTextSentimentBuilder_ == null) {
+ queryTextSentimentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.Sentiment,
+ com.google.cloud.dialogflow.v2.Sentiment.Builder,
+ com.google.cloud.dialogflow.v2.SentimentOrBuilder>(
+ getQueryTextSentiment(), getParentForChildren(), isClean());
+ queryTextSentiment_ = null;
+ }
+ return queryTextSentimentBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SentimentAnalysisResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SentimentAnalysisResult)
+ private static final com.google.cloud.dialogflow.v2.SentimentAnalysisResult DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SentimentAnalysisResult();
+ }
+
+ public static com.google.cloud.dialogflow.v2.SentimentAnalysisResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SentimentAnalysisResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SentimentAnalysisResult(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SentimentAnalysisResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java
new file mode 100644
index 000000000000..c9a3b0ef8392
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java
@@ -0,0 +1,41 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/session.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public interface SentimentAnalysisResultOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SentimentAnalysisResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ boolean hasQueryTextSentiment();
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ com.google.cloud.dialogflow.v2.Sentiment getQueryTextSentiment();
+ /**
+ *
+ *
+ *
+ * The sentiment analysis result for `query_text`.
+ *
+ *
+ * .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ com.google.cloud.dialogflow.v2.SentimentOrBuilder getQueryTextSentimentOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java
new file mode 100644
index 000000000000..683bcb6c96a3
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java
@@ -0,0 +1,34 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/session.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public interface SentimentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.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-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java
index db27528c430e..2e174f38cbb5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java
@@ -157,10 +157,12 @@ public enum EntityOverrideMode implements com.google.protobuf.ProtocolMessageEnu
*
* The collection of session entities extends the collection of entities in
* the corresponding developer entity type.
- * Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
- * `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
- * collection of entities from the developer entity type in the agent's
- * default language and the session entity type.
+ * Note: Even in this override mode calls to `ListSessionEntityTypes`,
+ * `GetSessionEntityType`, `CreateSessionEntityType` and
+ * `UpdateSessionEntityType` only return the additional entities added in
+ * this session entity type. If you want to get the supplemented list,
+ * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the developer entity type
+ * and merge.
*
*
* ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2;
@@ -196,10 +198,12 @@ public enum EntityOverrideMode implements com.google.protobuf.ProtocolMessageEnu
*
* The collection of session entities extends the collection of entities in
* the corresponding developer entity type.
- * Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
- * `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
- * collection of entities from the developer entity type in the agent's
- * default language and the session entity type.
+ * Note: Even in this override mode calls to `ListSessionEntityTypes`,
+ * `GetSessionEntityType`, `CreateSessionEntityType` and
+ * `UpdateSessionEntityType` only return the additional entities added in
+ * this session entity type. If you want to get the supplemented list,
+ * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the developer entity type
+ * and merge.
*
*
* ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2;
@@ -290,6 +294,8 @@ private EntityOverrideMode(int value) {
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -312,6 +318,8 @@ public java.lang.String getName() {
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -847,6 +855,8 @@ public Builder mergeFrom(
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -869,6 +879,8 @@ public java.lang.String getName() {
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -891,6 +903,8 @@ public com.google.protobuf.ByteString getNameBytes() {
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -911,6 +925,8 @@ public Builder setName(java.lang.String value) {
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -928,6 +944,8 @@ public Builder clearName() {
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java
index 7048df19349e..6bab964b1c18 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java
@@ -15,6 +15,8 @@ public interface SessionEntityTypeOrBuilder
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
@@ -27,6 +29,8 @@ public interface SessionEntityTypeOrBuilder
* Required. The unique identifier of this session entity type. Format:
* `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
* Display Name>`.
+ * `<Entity Type Display Name>` must be the display name of an existing entity
+ * type in the same agent that will be overridden or supplemented.
*
*
* string name = 1;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java
index e5558bdd5df4..9d968b5a3ee7 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java
@@ -51,64 +51,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n4google/cloud/dialogflow/v2/session_ent"
+ "ity_type.proto\022\032google.cloud.dialogflow."
- + "v2\032\034google/api/annotations.proto\032,google"
- + "/cloud/dialogflow/v2/entity_type.proto\032\033"
- + "google/protobuf/empty.proto\032 google/prot"
- + "obuf/field_mask.proto\"\307\002\n\021SessionEntityT"
- + "ype\022\014\n\004name\030\001 \001(\t\022^\n\024entity_override_mod"
- + "e\030\002 \001(\0162@.google.cloud.dialogflow.v2.Ses"
- + "sionEntityType.EntityOverrideMode\022?\n\010ent"
- + "ities\030\003 \003(\0132-.google.cloud.dialogflow.v2"
- + ".EntityType.Entity\"\202\001\n\022EntityOverrideMod"
- + "e\022$\n ENTITY_OVERRIDE_MODE_UNSPECIFIED\020\000\022"
- + "!\n\035ENTITY_OVERRIDE_MODE_OVERRIDE\020\001\022#\n\037EN"
- + "TITY_OVERRIDE_MODE_SUPPLEMENT\020\002\"V\n\035ListS"
- + "essionEntityTypesRequest\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\""
- + "\206\001\n\036ListSessionEntityTypesResponse\022K\n\024se"
- + "ssion_entity_types\030\001 \003(\0132-.google.cloud."
- + "dialogflow.v2.SessionEntityType\022\027\n\017next_"
- + "page_token\030\002 \001(\t\"+\n\033GetSessionEntityType"
- + "Request\022\014\n\004name\030\001 \001(\t\"|\n\036CreateSessionEn"
- + "tityTypeRequest\022\016\n\006parent\030\001 \001(\t\022J\n\023sessi"
- + "on_entity_type\030\002 \001(\0132-.google.cloud.dial"
- + "ogflow.v2.SessionEntityType\"\235\001\n\036UpdateSe"
- + "ssionEntityTypeRequest\022J\n\023session_entity"
- + "_type\030\001 \001(\0132-.google.cloud.dialogflow.v2"
- + ".SessionEntityType\022/\n\013update_mask\030\002 \001(\0132"
- + "\032.google.protobuf.FieldMask\".\n\036DeleteSes"
- + "sionEntityTypeRequest\022\014\n\004name\030\001 \001(\t2\231\010\n\022"
- + "SessionEntityTypes\022\315\001\n\026ListSessionEntity"
- + "Types\0229.google.cloud.dialogflow.v2.ListS"
- + "essionEntityTypesRequest\032:.google.cloud."
- + "dialogflow.v2.ListSessionEntityTypesResp"
- + "onse\"<\202\323\344\223\0026\0224/v2/{parent=projects/*/age"
- + "nt/sessions/*}/entityTypes\022\274\001\n\024GetSessio"
- + "nEntityType\0227.google.cloud.dialogflow.v2"
- + ".GetSessionEntityTypeRequest\032-.google.cl"
- + "oud.dialogflow.v2.SessionEntityType\"<\202\323\344"
- + "\223\0026\0224/v2/{name=projects/*/agent/sessions"
- + "/*/entityTypes/*}\022\327\001\n\027CreateSessionEntit"
- + "yType\022:.google.cloud.dialogflow.v2.Creat"
- + "eSessionEntityTypeRequest\032-.google.cloud"
- + ".dialogflow.v2.SessionEntityType\"Q\202\323\344\223\002K"
- + "\"4/v2/{parent=projects/*/agent/sessions/"
- + "*}/entityTypes:\023session_entity_type\022\353\001\n\027"
- + "UpdateSessionEntityType\022:.google.cloud.d"
- + "ialogflow.v2.UpdateSessionEntityTypeRequ"
- + "est\032-.google.cloud.dialogflow.v2.Session"
- + "EntityType\"e\202\323\344\223\002_2H/v2/{session_entity_"
- + "type.name=projects/*/agent/sessions/*/en"
- + "tityTypes/*}:\023session_entity_type\022\253\001\n\027De"
- + "leteSessionEntityType\022:.google.cloud.dia"
- + "logflow.v2.DeleteSessionEntityTypeReques"
- + "t\032\026.google.protobuf.Empty\"<\202\323\344\223\0026*4/v2/{"
- + "name=projects/*/agent/sessions/*/entityT"
- + "ypes/*}B\245\001\n\036com.google.cloud.dialogflow."
- + "v2B\026SessionEntityTypeProtoP\001ZDgoogle.gol"
- + "ang.org/genproto/googleapis/cloud/dialog"
- + "flow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Clou"
- + "d.Dialogflow.V2b\006proto3"
+ + "v2\032\034google/api/annotations.proto\032\031google"
+ + "/api/resource.proto\032,google/cloud/dialog"
+ + "flow/v2/entity_type.proto\032\033google/protob"
+ + "uf/empty.proto\032 google/protobuf/field_ma"
+ + "sk.proto\"\307\002\n\021SessionEntityType\022\014\n\004name\030\001"
+ + " \001(\t\022^\n\024entity_override_mode\030\002 \001(\0162@.goo"
+ + "gle.cloud.dialogflow.v2.SessionEntityTyp"
+ + "e.EntityOverrideMode\022?\n\010entities\030\003 \003(\0132-"
+ + ".google.cloud.dialogflow.v2.EntityType.E"
+ + "ntity\"\202\001\n\022EntityOverrideMode\022$\n ENTITY_O"
+ + "VERRIDE_MODE_UNSPECIFIED\020\000\022!\n\035ENTITY_OVE"
+ + "RRIDE_MODE_OVERRIDE\020\001\022#\n\037ENTITY_OVERRIDE"
+ + "_MODE_SUPPLEMENT\020\002\"V\n\035ListSessionEntityT"
+ + "ypesRequest\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\"\206\001\n\036ListSessi"
+ + "onEntityTypesResponse\022K\n\024session_entity_"
+ + "types\030\001 \003(\0132-.google.cloud.dialogflow.v2"
+ + ".SessionEntityType\022\027\n\017next_page_token\030\002 "
+ + "\001(\t\"+\n\033GetSessionEntityTypeRequest\022\014\n\004na"
+ + "me\030\001 \001(\t\"|\n\036CreateSessionEntityTypeReque"
+ + "st\022\016\n\006parent\030\001 \001(\t\022J\n\023session_entity_typ"
+ + "e\030\002 \001(\0132-.google.cloud.dialogflow.v2.Ses"
+ + "sionEntityType\"\235\001\n\036UpdateSessionEntityTy"
+ + "peRequest\022J\n\023session_entity_type\030\001 \001(\0132-"
+ + ".google.cloud.dialogflow.v2.SessionEntit"
+ + "yType\022/\n\013update_mask\030\002 \001(\0132\032.google.prot"
+ + "obuf.FieldMask\".\n\036DeleteSessionEntityTyp"
+ + "eRequest\022\014\n\004name\030\001 \001(\t2\231\010\n\022SessionEntity"
+ + "Types\022\315\001\n\026ListSessionEntityTypes\0229.googl"
+ + "e.cloud.dialogflow.v2.ListSessionEntityT"
+ + "ypesRequest\032:.google.cloud.dialogflow.v2"
+ + ".ListSessionEntityTypesResponse\"<\202\323\344\223\0026\022"
+ + "4/v2/{parent=projects/*/agent/sessions/*"
+ + "}/entityTypes\022\274\001\n\024GetSessionEntityType\0227"
+ + ".google.cloud.dialogflow.v2.GetSessionEn"
+ + "tityTypeRequest\032-.google.cloud.dialogflo"
+ + "w.v2.SessionEntityType\"<\202\323\344\223\0026\0224/v2/{nam"
+ + "e=projects/*/agent/sessions/*/entityType"
+ + "s/*}\022\327\001\n\027CreateSessionEntityType\022:.googl"
+ + "e.cloud.dialogflow.v2.CreateSessionEntit"
+ + "yTypeRequest\032-.google.cloud.dialogflow.v"
+ + "2.SessionEntityType\"Q\202\323\344\223\002K\"4/v2/{parent"
+ + "=projects/*/agent/sessions/*}/entityType"
+ + "s:\023session_entity_type\022\353\001\n\027UpdateSession"
+ + "EntityType\022:.google.cloud.dialogflow.v2."
+ + "UpdateSessionEntityTypeRequest\032-.google."
+ + "cloud.dialogflow.v2.SessionEntityType\"e\202"
+ + "\323\344\223\002_2H/v2/{session_entity_type.name=pro"
+ + "jects/*/agent/sessions/*/entityTypes/*}:"
+ + "\023session_entity_type\022\253\001\n\027DeleteSessionEn"
+ + "tityType\022:.google.cloud.dialogflow.v2.De"
+ + "leteSessionEntityTypeRequest\032\026.google.pr"
+ + "otobuf.Empty\"<\202\323\344\223\0026*4/v2/{name=projects"
+ + "/*/agent/sessions/*/entityTypes/*}B\245\001\n\036c"
+ + "om.google.cloud.dialogflow.v2B\026SessionEn"
+ + "tityTypeProtoP\001ZDgoogle.golang.org/genpr"
+ + "oto/googleapis/cloud/dialogflow/v2;dialo"
+ + "gflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow."
+ + "V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -122,6 +123,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.dialogflow.v2.EntityTypeProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -189,6 +191,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.cloud.dialogflow.v2.EntityTypeProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java
index 453d808269bf..b93b98ec2e0b 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java
@@ -56,6 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_v2_EventInput_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2_Sentiment_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2_Sentiment_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -67,93 +79,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n(google/cloud/dialogflow/v2/session.pro"
+ "to\022\032google.cloud.dialogflow.v2\032\034google/a"
- + "pi/annotations.proto\032(google/cloud/dialo"
- + "gflow/v2/context.proto\032\'google/cloud/dia"
- + "logflow/v2/intent.proto\0324google/cloud/di"
- + "alogflow/v2/session_entity_type.proto\032\034g"
- + "oogle/protobuf/struct.proto\032\027google/rpc/"
- + "status.proto\032\030google/type/latlng.proto\"\273"
- + "\001\n\023DetectIntentRequest\022\017\n\007session\030\001 \001(\t\022"
- + "A\n\014query_params\030\002 \001(\0132+.google.cloud.dia"
- + "logflow.v2.QueryParameters\022;\n\013query_inpu"
- + "t\030\003 \001(\0132&.google.cloud.dialogflow.v2.Que"
- + "ryInput\022\023\n\013input_audio\030\005 \001(\014\"\226\001\n\024DetectI"
- + "ntentResponse\022\023\n\013response_id\030\001 \001(\t\022=\n\014qu"
- + "ery_result\030\002 \001(\0132\'.google.cloud.dialogfl"
- + "ow.v2.QueryResult\022*\n\016webhook_status\030\003 \001("
- + "\0132\022.google.rpc.Status\"\225\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\0225\n\010contexts\030\003 \003("
- + "\0132#.google.cloud.dialogflow.v2.Context\022\026"
- + "\n\016reset_contexts\030\004 \001(\010\022K\n\024session_entity"
- + "_types\030\005 \003(\0132-.google.cloud.dialogflow.v"
- + "2.SessionEntityType\022(\n\007payload\030\006 \001(\0132\027.g"
- + "oogle.protobuf.Struct\"\313\001\n\nQueryInput\022D\n\014"
- + "audio_config\030\001 \001(\0132,.google.cloud.dialog"
- + "flow.v2.InputAudioConfigH\000\0225\n\004text\030\002 \001(\013"
- + "2%.google.cloud.dialogflow.v2.TextInputH"
- + "\000\0227\n\005event\030\003 \001(\0132&.google.cloud.dialogfl"
- + "ow.v2.EventInputH\000B\007\n\005input\"\270\004\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\022H\n\024fulfillment_messages\030\007 \003(\0132"
- + "*.google.cloud.dialogflow.v2.Intent.Mess"
- + "age\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webhook_p"
- + "ayload\030\t \001(\0132\027.google.protobuf.Struct\022<\n"
- + "\017output_contexts\030\n \003(\0132#.google.cloud.di"
- + "alogflow.v2.Context\0222\n\006intent\030\013 \001(\0132\".go"
- + "ogle.cloud.dialogflow.v2.Intent\022#\n\033inten"
- + "t_detection_confidence\030\014 \001(\002\0220\n\017diagnost"
- + "ic_info\030\016 \001(\0132\027.google.protobuf.Struct\"\336"
- + "\001\n\034StreamingDetectIntentRequest\022\017\n\007sessi"
- + "on\030\001 \001(\t\022A\n\014query_params\030\002 \001(\0132+.google."
- + "cloud.dialogflow.v2.QueryParameters\022;\n\013q"
- + "uery_input\030\003 \001(\0132&.google.cloud.dialogfl"
- + "ow.v2.QueryInput\022\030\n\020single_utterance\030\004 \001"
- + "(\010\022\023\n\013input_audio\030\006 \001(\014\"\363\001\n\035StreamingDet"
- + "ectIntentResponse\022\023\n\013response_id\030\001 \001(\t\022R"
- + "\n\022recognition_result\030\002 \001(\01326.google.clou"
- + "d.dialogflow.v2.StreamingRecognitionResu"
- + "lt\022=\n\014query_result\030\003 \001(\0132\'.google.cloud."
- + "dialogflow.v2.QueryResult\022*\n\016webhook_sta"
- + "tus\030\004 \001(\0132\022.google.rpc.Status\"\212\002\n\032Stream"
- + "ingRecognitionResult\022X\n\014message_type\030\001 \001"
- + "(\0162B.google.cloud.dialogflow.v2.Streamin"
- + "gRecognitionResult.MessageType\022\022\n\ntransc"
- + "ript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconfiden"
- + "ce\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_UTTERANCE\020\002\"\235\001\n\020InputAudioConfig\022"
- + "A\n\016audio_encoding\030\001 \001(\0162).google.cloud.d"
- + "ialogflow.v2.AudioEncoding\022\031\n\021sample_rat"
- + "e_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014"
- + "phrase_hints\030\004 \003(\t\"0\n\tTextInput\022\014\n\004text\030"
- + "\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^\n\nEventInp"
- + "ut\022\014\n\004name\030\001 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.g"
- + "oogle.protobuf.Struct\022\025\n\rlanguage_code\030\003"
- + " \001(\t*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING"
- + "_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_"
- + "16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_E"
- + "NCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022"
- + "\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCO"
- + "DING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_"
- + "WITH_HEADER_BYTE\020\0072\324\002\n\010Sessions\022\264\001\n\014Dete"
- + "ctIntent\022/.google.cloud.dialogflow.v2.De"
- + "tectIntentRequest\0320.google.cloud.dialogf"
- + "low.v2.DetectIntentResponse\"A\202\323\344\223\002;\"6/v2"
- + "/{session=projects/*/agent/sessions/*}:d"
- + "etectIntent:\001*\022\220\001\n\025StreamingDetectIntent"
- + "\0228.google.cloud.dialogflow.v2.StreamingD"
- + "etectIntentRequest\0329.google.cloud.dialog"
- + "flow.v2.StreamingDetectIntentResponse(\0010"
- + "\001B\233\001\n\036com.google.cloud.dialogflow.v2B\014Se"
- + "ssionProtoP\001ZDgoogle.golang.org/genproto"
- + "/googleapis/cloud/dialogflow/v2;dialogfl"
- + "ow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b"
- + "\006proto3"
+ + "pi/annotations.proto\032\031google/api/resourc"
+ + "e.proto\032-google/cloud/dialogflow/v2/audi"
+ + "o_config.proto\032(google/cloud/dialogflow/"
+ + "v2/context.proto\032\'google/cloud/dialogflo"
+ + "w/v2/intent.proto\0324google/cloud/dialogfl"
+ + "ow/v2/session_entity_type.proto\032\034google/"
+ + "protobuf/struct.proto\032\027google/rpc/status"
+ + ".proto\032\030google/type/latlng.proto\"\207\002\n\023Det"
+ + "ectIntentRequest\022\017\n\007session\030\001 \001(\t\022A\n\014que"
+ + "ry_params\030\002 \001(\0132+.google.cloud.dialogflo"
+ + "w.v2.QueryParameters\022;\n\013query_input\030\003 \001("
+ + "\0132&.google.cloud.dialogflow.v2.QueryInpu"
+ + "t\022J\n\023output_audio_config\030\004 \001(\0132-.google."
+ + "cloud.dialogflow.v2.OutputAudioConfig\022\023\n"
+ + "\013input_audio\030\005 \001(\014\"\370\001\n\024DetectIntentRespo"
+ + "nse\022\023\n\013response_id\030\001 \001(\t\022=\n\014query_result"
+ + "\030\002 \001(\0132\'.google.cloud.dialogflow.v2.Quer"
+ + "yResult\022*\n\016webhook_status\030\003 \001(\0132\022.google"
+ + ".rpc.Status\022\024\n\014output_audio\030\004 \001(\014\022J\n\023out"
+ + "put_audio_config\030\006 \001(\0132-.google.cloud.di"
+ + "alogflow.v2.OutputAudioConfig\"\374\002\n\017QueryP"
+ + "arameters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_loca"
+ + "tion\030\002 \001(\0132\023.google.type.LatLng\0225\n\010conte"
+ + "xts\030\003 \003(\0132#.google.cloud.dialogflow.v2.C"
+ + "ontext\022\026\n\016reset_contexts\030\004 \001(\010\022K\n\024sessio"
+ + "n_entity_types\030\005 \003(\0132-.google.cloud.dial"
+ + "ogflow.v2.SessionEntityType\022(\n\007payload\030\006"
+ + " \001(\0132\027.google.protobuf.Struct\022e\n!sentime"
+ + "nt_analysis_request_config\030\n \001(\0132:.googl"
+ + "e.cloud.dialogflow.v2.SentimentAnalysisR"
+ + "equestConfig\"\313\001\n\nQueryInput\022D\n\014audio_con"
+ + "fig\030\001 \001(\0132,.google.cloud.dialogflow.v2.I"
+ + "nputAudioConfigH\000\0225\n\004text\030\002 \001(\0132%.google"
+ + ".cloud.dialogflow.v2.TextInputH\000\0227\n\005even"
+ + "t\030\003 \001(\0132&.google.cloud.dialogflow.v2.Eve"
+ + "ntInputH\000B\007\n\005input\"\220\005\n\013QueryResult\022\022\n\nqu"
+ + "ery_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\006"
+ + "action\030\003 \001(\t\022+\n\nparameters\030\004 \001(\0132\027.googl"
+ + "e.protobuf.Struct\022#\n\033all_required_params"
+ + "_present\030\005 \001(\010\022\030\n\020fulfillment_text\030\006 \001(\t"
+ + "\022H\n\024fulfillment_messages\030\007 \003(\0132*.google."
+ + "cloud.dialogflow.v2.Intent.Message\022\026\n\016we"
+ + "bhook_source\030\010 \001(\t\0220\n\017webhook_payload\030\t "
+ + "\001(\0132\027.google.protobuf.Struct\022<\n\017output_c"
+ + "ontexts\030\n \003(\0132#.google.cloud.dialogflow."
+ + "v2.Context\0222\n\006intent\030\013 \001(\0132\".google.clou"
+ + "d.dialogflow.v2.Intent\022#\n\033intent_detecti"
+ + "on_confidence\030\014 \001(\002\0220\n\017diagnostic_info\030\016"
+ + " \001(\0132\027.google.protobuf.Struct\022V\n\031sentime"
+ + "nt_analysis_result\030\021 \001(\01323.google.cloud."
+ + "dialogflow.v2.SentimentAnalysisResult\"\252\002"
+ + "\n\034StreamingDetectIntentRequest\022\017\n\007sessio"
+ + "n\030\001 \001(\t\022A\n\014query_params\030\002 \001(\0132+.google.c"
+ + "loud.dialogflow.v2.QueryParameters\022;\n\013qu"
+ + "ery_input\030\003 \001(\0132&.google.cloud.dialogflo"
+ + "w.v2.QueryInput\022\030\n\020single_utterance\030\004 \001("
+ + "\010\022J\n\023output_audio_config\030\005 \001(\0132-.google."
+ + "cloud.dialogflow.v2.OutputAudioConfig\022\023\n"
+ + "\013input_audio\030\006 \001(\014\"\325\002\n\035StreamingDetectIn"
+ + "tentResponse\022\023\n\013response_id\030\001 \001(\t\022R\n\022rec"
+ + "ognition_result\030\002 \001(\01326.google.cloud.dia"
+ + "logflow.v2.StreamingRecognitionResult\022=\n"
+ + "\014query_result\030\003 \001(\0132\'.google.cloud.dialo"
+ + "gflow.v2.QueryResult\022*\n\016webhook_status\030\004"
+ + " \001(\0132\022.google.rpc.Status\022\024\n\014output_audio"
+ + "\030\005 \001(\014\022J\n\023output_audio_config\030\006 \001(\0132-.go"
+ + "ogle.cloud.dialogflow.v2.OutputAudioConf"
+ + "ig\"\212\002\n\032StreamingRecognitionResult\022X\n\014mes"
+ + "sage_type\030\001 \001(\0162B.google.cloud.dialogflo"
+ + "w.v2.StreamingRecognitionResult.MessageT"
+ + "ype\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\030"
+ + "MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT"
+ + "\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"\235\001\n\020Inpu"
+ + "tAudioConfig\022A\n\016audio_encoding\030\001 \001(\0162).g"
+ + "oogle.cloud.dialogflow.v2.AudioEncoding\022"
+ + "\031\n\021sample_rate_hertz\030\002 \001(\005\022\025\n\rlanguage_c"
+ + "ode\030\003 \001(\t\022\024\n\014phrase_hints\030\004 \003(\t\"0\n\tTextI"
+ + "nput\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\nparamet"
+ + "ers\030\002 \001(\0132\027.google.protobuf.Struct\022\025\n\rla"
+ + "nguage_code\030\003 \001(\t\"F\n\036SentimentAnalysisRe"
+ + "questConfig\022$\n\034analyze_query_text_sentim"
+ + "ent\030\001 \001(\010\"^\n\027SentimentAnalysisResult\022C\n\024"
+ + "query_text_sentiment\030\001 \001(\0132%.google.clou"
+ + "d.dialogflow.v2.Sentiment\"-\n\tSentiment\022\r"
+ + "\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002*\373\001\n\rAud"
+ + "ioEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIED"
+ + "\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AUDI"
+ + "O_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MULA"
+ + "W\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_ENC"
+ + "ODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OPU"
+ + "S\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_"
+ + "BYTE\020\0072\326\002\n\010Sessions\022\264\001\n\014DetectIntent\022/.g"
+ + "oogle.cloud.dialogflow.v2.DetectIntentRe"
+ + "quest\0320.google.cloud.dialogflow.v2.Detec"
+ + "tIntentResponse\"A\202\323\344\223\002;\"6/v2/{session=pr"
+ + "ojects/*/agent/sessions/*}:detectIntent:"
+ + "\001*\022\222\001\n\025StreamingDetectIntent\0228.google.cl"
+ + "oud.dialogflow.v2.StreamingDetectIntentR"
+ + "equest\0329.google.cloud.dialogflow.v2.Stre"
+ + "amingDetectIntentResponse\"\000(\0010\001B\233\001\n\036com."
+ + "google.cloud.dialogflow.v2B\014SessionProto"
+ + "P\001ZDgoogle.golang.org/genproto/googleapi"
+ + "s/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF"
+ + "\252\002\032Google.Cloud.Dialogflow.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -167,6 +199,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor(),
com.google.cloud.dialogflow.v2.ContextProto.getDescriptor(),
com.google.cloud.dialogflow.v2.IntentProto.getDescriptor(),
com.google.cloud.dialogflow.v2.SessionEntityTypeProto.getDescriptor(),
@@ -181,7 +215,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor,
new java.lang.String[] {
- "Session", "QueryParams", "QueryInput", "InputAudio",
+ "Session", "QueryParams", "QueryInput", "OutputAudioConfig", "InputAudio",
});
internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
@@ -189,7 +223,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor,
new java.lang.String[] {
- "ResponseId", "QueryResult", "WebhookStatus",
+ "ResponseId", "QueryResult", "WebhookStatus", "OutputAudio", "OutputAudioConfig",
});
internal_static_google_cloud_dialogflow_v2_QueryParameters_descriptor =
getDescriptor().getMessageTypes().get(2);
@@ -203,6 +237,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ResetContexts",
"SessionEntityTypes",
"Payload",
+ "SentimentAnalysisRequestConfig",
});
internal_static_google_cloud_dialogflow_v2_QueryInput_descriptor =
getDescriptor().getMessageTypes().get(3);
@@ -232,6 +267,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Intent",
"IntentDetectionConfidence",
"DiagnosticInfo",
+ "SentimentAnalysisResult",
});
internal_static_google_cloud_dialogflow_v2_StreamingDetectIntentRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
@@ -239,7 +275,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_StreamingDetectIntentRequest_descriptor,
new java.lang.String[] {
- "Session", "QueryParams", "QueryInput", "SingleUtterance", "InputAudio",
+ "Session",
+ "QueryParams",
+ "QueryInput",
+ "SingleUtterance",
+ "OutputAudioConfig",
+ "InputAudio",
});
internal_static_google_cloud_dialogflow_v2_StreamingDetectIntentResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
@@ -247,7 +288,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_StreamingDetectIntentResponse_descriptor,
new java.lang.String[] {
- "ResponseId", "RecognitionResult", "QueryResult", "WebhookStatus",
+ "ResponseId",
+ "RecognitionResult",
+ "QueryResult",
+ "WebhookStatus",
+ "OutputAudio",
+ "OutputAudioConfig",
});
internal_static_google_cloud_dialogflow_v2_StreamingRecognitionResult_descriptor =
getDescriptor().getMessageTypes().get(7);
@@ -281,12 +327,38 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new java.lang.String[] {
"Name", "Parameters", "LanguageCode",
});
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisRequestConfig_descriptor,
+ new java.lang.String[] {
+ "AnalyzeQueryTextSentiment",
+ });
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_SentimentAnalysisResult_descriptor,
+ new java.lang.String[] {
+ "QueryTextSentiment",
+ });
+ internal_static_google_cloud_dialogflow_v2_Sentiment_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_dialogflow_v2_Sentiment_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dialogflow_v2_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.api.ResourceProto.getDescriptor();
+ com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor();
com.google.cloud.dialogflow.v2.ContextProto.getDescriptor();
com.google.cloud.dialogflow.v2.IntentProto.getDescriptor();
com.google.cloud.dialogflow.v2.SessionEntityTypeProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java
new file mode 100644
index 000000000000..0708caefdbfe
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java
@@ -0,0 +1,174 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * 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.v2.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.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public SsmlVoiceGender findValueByNumber(int number) {
+ return SsmlVoiceGender.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.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final SsmlVoiceGender[] VALUES = values();
+
+ public static SsmlVoiceGender 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 SsmlVoiceGender(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.SsmlVoiceGender)
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
index a0296e795ec9..dd4a66779fce 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
@@ -11,8 +11,7 @@
* `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`. 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.
@@ -101,6 +100,22 @@ private StreamingDetectIntentRequest(
case 32:
{
singleUtterance_ = input.readBool();
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null;
+ if (outputAudioConfig_ != null) {
+ subBuilder = outputAudioConfig_.toBuilder();
+ }
+ outputAudioConfig_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(outputAudioConfig_);
+ outputAudioConfig_ = subBuilder.buildPartial();
+ }
+
break;
}
case 50:
@@ -151,7 +166,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -176,7 +191,7 @@ public java.lang.String getSession() {
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -311,6 +326,53 @@ public boolean getSingleUtterance() {
return singleUtterance_;
}
+ public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 5;
+ private com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
public static final int INPUT_AUDIO_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString inputAudio_;
/**
@@ -354,6 +416,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (singleUtterance_ != false) {
output.writeBool(4, singleUtterance_);
}
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(5, getOutputAudioConfig());
+ }
if (!inputAudio_.isEmpty()) {
output.writeBytes(6, inputAudio_);
}
@@ -378,6 +443,9 @@ public int getSerializedSize() {
if (singleUtterance_ != false) {
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_);
}
@@ -407,6 +475,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getQueryInput().equals(other.getQueryInput())) return false;
}
if (getSingleUtterance() != other.getSingleUtterance()) return false;
+ if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false;
+ if (hasOutputAudioConfig()) {
+ if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false;
+ }
if (!getInputAudio().equals(other.getInputAudio())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
@@ -431,6 +503,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();
@@ -542,8 +618,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* `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`. 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.
@@ -603,6 +678,12 @@ public Builder clear() {
}
singleUtterance_ = false;
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
inputAudio_ = com.google.protobuf.ByteString.EMPTY;
return this;
@@ -644,6 +725,11 @@ public com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest buildPartial(
result.queryInput_ = queryInputBuilder_.build();
}
result.singleUtterance_ = singleUtterance_;
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
result.inputAudio_ = inputAudio_;
onBuilt();
return result;
@@ -708,6 +794,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.StreamingDetectIntentReq
if (other.getSingleUtterance() != false) {
setSingleUtterance(other.getSingleUtterance());
}
+ if (other.hasOutputAudioConfig()) {
+ mergeOutputAudioConfig(other.getOutputAudioConfig());
+ }
if (other.getInputAudio() != com.google.protobuf.ByteString.EMPTY) {
setInputAudio(other.getInputAudio());
}
@@ -749,7 +838,7 @@ public Builder mergeFrom(
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -774,7 +863,7 @@ public java.lang.String getSession() {
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -799,7 +888,7 @@ public com.google.protobuf.ByteString getSessionBytes() {
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -822,7 +911,7 @@ public Builder setSession(java.lang.String value) {
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -842,7 +931,7 @@ public Builder clearSession() {
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -1325,6 +1414,207 @@ public Builder clearSingleUtterance() {
return this;
}
+ private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder
+ getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.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-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
index 24c8fb638a35..fb502005d494 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
@@ -15,7 +15,7 @@ public interface StreamingDetectIntentRequestOrBuilder
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -30,7 +30,7 @@ public interface StreamingDetectIntentRequestOrBuilder
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/<Project ID>/agent/sessions/<Session ID>`. It’s up to the API
- * caller to choose an appropriate <Session ID>. It can be a random number or
+ * caller to choose an appropriate `Session ID`. It can be a random number or
* some type of user identifier (preferably hashed). The length of the session
* ID must not exceed 36 characters.
*
@@ -131,6 +131,43 @@ public interface StreamingDetectIntentRequestOrBuilder
*/
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.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
+
/**
*
*
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java
index b6e3c68a0cf8..0afd879f49a0 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java
@@ -32,6 +32,7 @@ private StreamingDetectIntentResponse(com.google.protobuf.GeneratedMessageV3.Bui
private StreamingDetectIntentResponse() {
responseId_ = "";
+ outputAudio_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@@ -110,6 +111,27 @@ private StreamingDetectIntentResponse(
webhookStatus_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 42:
+ {
+ outputAudio_ = input.readBytes();
+ break;
+ }
+ case 50:
+ {
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null;
+ if (outputAudioConfig_ != null) {
+ subBuilder = outputAudioConfig_.toBuilder();
+ }
+ outputAudioConfig_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(outputAudioConfig_);
+ outputAudioConfig_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -313,6 +335,68 @@ 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.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
+ return getOutputAudioConfig();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -339,6 +423,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (webhookStatus_ != null) {
output.writeMessage(4, getWebhookStatus());
}
+ if (!outputAudio_.isEmpty()) {
+ output.writeBytes(5, outputAudio_);
+ }
+ if (outputAudioConfig_ != null) {
+ output.writeMessage(6, getOutputAudioConfig());
+ }
unknownFields.writeTo(output);
}
@@ -360,6 +450,12 @@ public int getSerializedSize() {
if (webhookStatus_ != null) {
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());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -389,6 +485,11 @@ public boolean equals(final java.lang.Object obj) {
if (hasWebhookStatus()) {
if (!getWebhookStatus().equals(other.getWebhookStatus())) return false;
}
+ if (!getOutputAudio().equals(other.getOutputAudio())) return false;
+ if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false;
+ if (hasOutputAudioConfig()) {
+ if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -414,6 +515,12 @@ public int hashCode() {
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;
@@ -588,6 +695,14 @@ public Builder clear() {
webhookStatus_ = null;
webhookStatusBuilder_ = null;
}
+ outputAudio_ = com.google.protobuf.ByteString.EMPTY;
+
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfig_ = null;
+ } else {
+ outputAudioConfig_ = null;
+ outputAudioConfigBuilder_ = null;
+ }
return this;
}
@@ -632,6 +747,12 @@ public com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse buildPartial
} else {
result.webhookStatus_ = webhookStatusBuilder_.build();
}
+ result.outputAudio_ = outputAudio_;
+ if (outputAudioConfigBuilder_ == null) {
+ result.outputAudioConfig_ = outputAudioConfig_;
+ } else {
+ result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -696,6 +817,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.StreamingDetectIntentRes
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;
@@ -1365,6 +1492,254 @@ 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 = 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.v2.OutputAudioConfig outputAudioConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() {
+ if (outputAudioConfigBuilder_ == null) {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder setOutputAudioConfig(
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioConfig value) {
+ if (outputAudioConfigBuilder_ == null) {
+ if (outputAudioConfig_ != null) {
+ outputAudioConfig_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder
+ getOutputAudioConfigOrBuilder() {
+ if (outputAudioConfigBuilder_ != null) {
+ return outputAudioConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return outputAudioConfig_ == null
+ ? com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+ getOutputAudioConfigFieldBuilder() {
+ if (outputAudioConfigBuilder_ == null) {
+ outputAudioConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.OutputAudioConfig,
+ com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>(
+ getOutputAudioConfig(), getParentForChildren(), isClean());
+ outputAudioConfig_ = null;
+ }
+ return outputAudioConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java
index f9dadebc9c64..592bca7dc415 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java
@@ -124,4 +124,52 @@ public interface StreamingDetectIntentResponseOrBuilder
* .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.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ com.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java
index 539afe076be8..cc8aa38534ea 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java
@@ -18,7 +18,7 @@
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
@@ -26,7 +26,7 @@
* or not to be that is the question".
* In each response we populate:
* * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`.
+ * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.StreamingRecognitionResult}
@@ -328,7 +328,7 @@ public com.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType get
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -349,7 +349,7 @@ public java.lang.String getTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -372,11 +372,10 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
*
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -614,7 +613,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
@@ -622,7 +621,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* or not to be that is the question".
* In each response we populate:
* * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`.
+ * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.StreamingRecognitionResult}
@@ -886,7 +885,7 @@ public Builder clearMessageType() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -907,7 +906,7 @@ public java.lang.String getTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -928,7 +927,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -947,7 +946,7 @@ public Builder setTranscript(java.lang.String value) {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -963,7 +962,7 @@ public Builder clearTranscript() {
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -984,11 +983,10 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1000,11 +998,10 @@ public boolean getIsFinal() {
*
*
*
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* bool is_final = 3;
@@ -1019,11 +1016,10 @@ public Builder setIsFinal(boolean value) {
*
*
*
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* bool is_final = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java
index 02661695581a..4f370ff52f9a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java
@@ -36,7 +36,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -47,7 +47,7 @@ public interface StreamingRecognitionResultOrBuilder
*
*
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* string transcript = 2;
@@ -58,11 +58,10 @@ public interface StreamingRecognitionResultOrBuilder
*
*
*
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
*
* bool is_final = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java
new file mode 100644
index 000000000000..887cbb50aab2
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java
@@ -0,0 +1,1275 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * Configuration of how speech should be synthesized.
+ *
+ *
+ * Protobuf type {@code google.cloud.dialogflow.v2.SynthesizeSpeechConfig}
+ */
+public final class SynthesizeSpeechConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.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() {
+ 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;
+ case 9:
+ {
+ speakingRate_ = input.readDouble();
+ break;
+ }
+ case 17:
+ {
+ pitch_ = input.readDouble();
+ break;
+ }
+ case 25:
+ {
+ volumeGainDb_ = input.readDouble();
+ break;
+ }
+ case 34:
+ {
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder subBuilder = null;
+ if (voice_ != null) {
+ subBuilder = voice_.toBuilder();
+ }
+ voice_ =
+ input.readMessage(
+ com.google.cloud.dialogflow.v2.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) != 0)) {
+ effectsProfileId_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ effectsProfileId_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ 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) != 0)) {
+ effectsProfileId_ = effectsProfileId_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.class,
+ com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams voice_;
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public boolean hasVoice() {
+ return voice_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams getVoice() {
+ return voice_ == null
+ ? com.google.cloud.dialogflow.v2.VoiceSelectionParams.getDefaultInstance()
+ : voice_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() {
+ return getVoice();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ 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);
+ }
+
+ @java.lang.Override
+ 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.v2.SynthesizeSpeechConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig other =
+ (com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig) obj;
+
+ if (java.lang.Double.doubleToLongBits(getSpeakingRate())
+ != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false;
+ if (java.lang.Double.doubleToLongBits(getPitch())
+ != java.lang.Double.doubleToLongBits(other.getPitch())) return false;
+ if (java.lang.Double.doubleToLongBits(getVolumeGainDb())
+ != java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false;
+ if (!getEffectsProfileIdList().equals(other.getEffectsProfileIdList())) return false;
+ if (hasVoice() != other.hasVoice()) return false;
+ if (hasVoice()) {
+ if (!getVoice().equals(other.getVoice())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + 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.v2.SynthesizeSpeechConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.SynthesizeSpeechConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.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.v2.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ 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.v2.SynthesizeSpeechConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SynthesizeSpeechConfig)
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.class,
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.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) {}
+ }
+
+ @java.lang.Override
+ 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;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig build() {
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig buildPartial() {
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig result =
+ new com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.speakingRate_ = speakingRate_;
+ result.pitch_ = pitch_;
+ result.volumeGainDb_ = volumeGainDb_;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ 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;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig other) {
+ if (other == com.google.cloud.dialogflow.v2.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;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dialogflow.v2.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) != 0)) {
+ 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.Iterable values) {
+ 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.v2.VoiceSelectionParams voice_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder>
+ voiceBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public boolean hasVoice() {
+ return voiceBuilder_ != null || voice_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams getVoice() {
+ if (voiceBuilder_ == null) {
+ return voice_ == null
+ ? com.google.cloud.dialogflow.v2.VoiceSelectionParams.getDefaultInstance()
+ : voice_;
+ } else {
+ return voiceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public Builder setVoice(com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams voice = 4;
+ */
+ public Builder setVoice(
+ com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams voice = 4;
+ */
+ public Builder mergeVoice(com.google.cloud.dialogflow.v2.VoiceSelectionParams value) {
+ if (voiceBuilder_ == null) {
+ if (voice_ != null) {
+ voice_ =
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.VoiceSelectionParams voice = 4;
+ */
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder getVoiceBuilder() {
+
+ onChanged();
+ return getVoiceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() {
+ if (voiceBuilder_ != null) {
+ return voiceBuilder_.getMessageOrBuilder();
+ } else {
+ return voice_ == null
+ ? com.google.cloud.dialogflow.v2.VoiceSelectionParams.getDefaultInstance()
+ : voice_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder>
+ getVoiceFieldBuilder() {
+ if (voiceBuilder_ == null) {
+ voiceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder>(
+ getVoice(), getParentForChildren(), isClean());
+ voice_ = null;
+ }
+ return voiceBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SynthesizeSpeechConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SynthesizeSpeechConfig)
+ private static final com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig();
+ }
+
+ public static com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ 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;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java
new file mode 100644
index 000000000000..7d2b3b831a8f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java
@@ -0,0 +1,135 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public interface SynthesizeSpeechConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams voice = 4;
+ */
+ boolean hasVoice();
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams getVoice();
+ /**
+ *
+ *
+ *
+ * Optional. The desired voice of the synthesized audio.
+ *
+ *
+ * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java
index 14cbeef20418..b046dfc1d9a3 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java
@@ -106,7 +106,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -127,7 +127,7 @@ public java.lang.String getText() {
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -151,9 +151,9 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -174,9 +174,9 @@ public java.lang.String getLanguageCode() {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -530,7 +530,7 @@ public Builder mergeFrom(
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -551,7 +551,7 @@ public java.lang.String getText() {
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -572,7 +572,7 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -591,7 +591,7 @@ public Builder setText(java.lang.String value) {
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -607,7 +607,7 @@ public Builder clearText() {
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -629,9 +629,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -652,9 +652,9 @@ public java.lang.String getLanguageCode() {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -675,9 +675,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -696,9 +696,9 @@ public Builder setLanguageCode(java.lang.String value) {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -714,9 +714,9 @@ public Builder clearLanguageCode() {
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java
index a212dc84b645..235154d23e8d 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java
@@ -13,7 +13,7 @@ public interface TextInputOrBuilder
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -24,7 +24,7 @@ public interface TextInputOrBuilder
*
*
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
*
* string text = 1;
@@ -36,9 +36,9 @@ public interface TextInputOrBuilder
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
@@ -49,9 +49,9 @@ public interface TextInputOrBuilder
*
*
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java
index 2734e2e1cb0b..3550cba7dc54 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
+ * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.TrainAgentRequest}
@@ -300,8 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
+ * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.TrainAgentRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java
index b74214e6dddf..496bf99ebd96 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
+ * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateContextRequest}
@@ -376,8 +375,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
+ * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateContextRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java
index cab5505335c3..49617efc5d69 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
+ * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateEntityTypeRequest}
@@ -130,7 +129,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -143,7 +141,6 @@ public boolean hasEntityType() {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -158,7 +155,6 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityType() {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -175,9 +171,10 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -199,9 +196,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -449,8 +447,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
+ * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateEntityTypeRequest}
@@ -644,7 +641,6 @@ public Builder mergeFrom(
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -657,7 +653,6 @@ public boolean hasEntityType() {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -676,7 +671,6 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityType() {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -699,7 +693,6 @@ public Builder setEntityType(com.google.cloud.dialogflow.v2.EntityType value) {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -720,7 +713,6 @@ public Builder setEntityType(
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -747,7 +739,6 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.v2.EntityType value)
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -768,7 +759,6 @@ public Builder clearEntityType() {
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -783,7 +773,6 @@ public com.google.cloud.dialogflow.v2.EntityType.Builder getEntityTypeBuilder()
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -802,7 +791,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -831,9 +819,10 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -855,9 +844,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -879,9 +869,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -901,9 +892,10 @@ public Builder setLanguageCode(java.lang.String value) {
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -920,9 +912,10 @@ public Builder clearLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java
index a0b4cd518f90..56f01f78f164 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java
@@ -13,7 +13,6 @@ public interface UpdateEntityTypeRequestOrBuilder
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -24,7 +23,6 @@ public interface UpdateEntityTypeRequestOrBuilder
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -35,7 +33,6 @@ public interface UpdateEntityTypeRequestOrBuilder
*
*
* Required. The entity type to update.
- * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
*
*
* .google.cloud.dialogflow.v2.EntityType entity_type = 1;
@@ -48,9 +45,10 @@ public interface UpdateEntityTypeRequestOrBuilder
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -62,9 +60,10 @@ public interface UpdateEntityTypeRequestOrBuilder
*
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java
index f890c0c3bc35..0064ce365f71 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
+ * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateIntentRequest}
@@ -138,7 +137,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -151,7 +149,6 @@ public boolean hasIntent() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -164,7 +161,6 @@ public com.google.cloud.dialogflow.v2.Intent getIntent() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -181,9 +177,10 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -205,9 +202,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -495,8 +493,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
+ * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateIntentRequest}
@@ -696,7 +693,6 @@ public Builder mergeFrom(
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -709,7 +705,6 @@ public boolean hasIntent() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -728,7 +723,6 @@ public com.google.cloud.dialogflow.v2.Intent getIntent() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -751,7 +745,6 @@ public Builder setIntent(com.google.cloud.dialogflow.v2.Intent value) {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -771,7 +764,6 @@ public Builder setIntent(com.google.cloud.dialogflow.v2.Intent.Builder builderFo
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -798,7 +790,6 @@ public Builder mergeIntent(com.google.cloud.dialogflow.v2.Intent value) {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -819,7 +810,6 @@ public Builder clearIntent() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -834,7 +824,6 @@ public com.google.cloud.dialogflow.v2.Intent.Builder getIntentBuilder() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -853,7 +842,6 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -882,9 +870,10 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -906,9 +895,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -930,9 +920,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -952,9 +943,10 @@ public Builder setLanguageCode(java.lang.String value) {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -971,9 +963,10 @@ public Builder clearLanguageCode() {
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java
index 66a4e28ccd02..bf2c00c81cda 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java
@@ -13,7 +13,6 @@ public interface UpdateIntentRequestOrBuilder
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -24,7 +23,6 @@ public interface UpdateIntentRequestOrBuilder
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -35,7 +33,6 @@ public interface UpdateIntentRequestOrBuilder
*
*
* Required. The intent to update.
- * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
*
*
* .google.cloud.dialogflow.v2.Intent intent = 1;
@@ -48,9 +45,10 @@ public interface UpdateIntentRequestOrBuilder
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
@@ -62,9 +60,10 @@ public interface UpdateIntentRequestOrBuilder
*
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 2;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java
index bc2586625b50..994285c95a98 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest}
@@ -384,8 +383,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java
new file mode 100644
index 000000000000..dffee3342237
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java
@@ -0,0 +1,766 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+/**
+ *
+ *
+ *
+ * Description of which voice to use for speech synthesis.
+ *
+ *
+ * Protobuf type {@code google.cloud.dialogflow.v2.VoiceSelectionParams}
+ */
+public final class VoiceSelectionParams extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.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;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+
+ ssmlGender_ = rawValue;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ 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.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.class,
+ com.google.cloud.dialogflow.v2.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.v2.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.v2.SsmlVoiceGender ssml_gender = 2;
+ */
+ public com.google.cloud.dialogflow.v2.SsmlVoiceGender getSsmlGender() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.SsmlVoiceGender result =
+ com.google.cloud.dialogflow.v2.SsmlVoiceGender.valueOf(ssmlGender_);
+ return result == null ? com.google.cloud.dialogflow.v2.SsmlVoiceGender.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (ssmlGender_
+ != com.google.cloud.dialogflow.v2.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, ssmlGender_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ 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.v2.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.v2.VoiceSelectionParams)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams other =
+ (com.google.cloud.dialogflow.v2.VoiceSelectionParams) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (ssmlGender_ != other.ssmlGender_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + SSML_GENDER_FIELD_NUMBER;
+ hash = (53 * hash) + ssmlGender_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dialogflow.v2.VoiceSelectionParams parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.VoiceSelectionParams parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dialogflow.v2.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.v2.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.v2.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dialogflow.v2.VoiceSelectionParams prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ 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.v2.VoiceSelectionParams}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.VoiceSelectionParams)
+ com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.class,
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dialogflow.v2.VoiceSelectionParams.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ name_ = "";
+
+ ssmlGender_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dialogflow.v2.AudioConfigProto
+ .internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams getDefaultInstanceForType() {
+ return com.google.cloud.dialogflow.v2.VoiceSelectionParams.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams build() {
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams buildPartial() {
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams result =
+ new com.google.cloud.dialogflow.v2.VoiceSelectionParams(this);
+ result.name_ = name_;
+ result.ssmlGender_ = ssmlGender_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dialogflow.v2.VoiceSelectionParams) {
+ return mergeFrom((com.google.cloud.dialogflow.v2.VoiceSelectionParams) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dialogflow.v2.VoiceSelectionParams other) {
+ if (other == com.google.cloud.dialogflow.v2.VoiceSelectionParams.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.ssmlGender_ != 0) {
+ setSsmlGenderValue(other.getSsmlGenderValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dialogflow.v2.VoiceSelectionParams parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dialogflow.v2.VoiceSelectionParams) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private 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)) {
+ 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.v2.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.v2.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.v2.SsmlVoiceGender ssml_gender = 2;
+ */
+ public com.google.cloud.dialogflow.v2.SsmlVoiceGender getSsmlGender() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dialogflow.v2.SsmlVoiceGender result =
+ com.google.cloud.dialogflow.v2.SsmlVoiceGender.valueOf(ssmlGender_);
+ return result == null ? com.google.cloud.dialogflow.v2.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.v2.SsmlVoiceGender ssml_gender = 2;
+ */
+ public Builder setSsmlGender(com.google.cloud.dialogflow.v2.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.v2.SsmlVoiceGender ssml_gender = 2;
+ */
+ public Builder clearSsmlGender() {
+
+ ssmlGender_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.VoiceSelectionParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.VoiceSelectionParams)
+ private static final com.google.cloud.dialogflow.v2.VoiceSelectionParams DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.VoiceSelectionParams();
+ }
+
+ public static com.google.cloud.dialogflow.v2.VoiceSelectionParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public VoiceSelectionParams parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new VoiceSelectionParams(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dialogflow.v2.VoiceSelectionParams getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java
new file mode 100644
index 000000000000..e79b5af870c5
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java
@@ -0,0 +1,62 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/audio_config.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public interface VoiceSelectionParamsOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.VoiceSelectionParams)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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.v2.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.v2.SsmlVoiceGender ssml_gender = 2;
+ */
+ com.google.cloud.dialogflow.v2.SsmlVoiceGender getSsmlGender();
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java
index cd492de3198e..345e2d1c573a 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java
@@ -34,12 +34,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n(google/cloud/dialogflow/v2/webhook.pro"
- + "to\022\032google.cloud.dialogflow.v2\032\034google/a"
- + "pi/annotations.proto\032(google/cloud/dialo"
- + "gflow/v2/context.proto\032\'google/cloud/dia"
- + "logflow/v2/intent.proto\032(google/cloud/di"
- + "alogflow/v2/session.proto\032\034google/protob"
- + "uf/struct.proto\"\326\001\n\016WebhookRequest\022\017\n\007se"
+ + "to\022\032google.cloud.dialogflow.v2\032(google/c"
+ + "loud/dialogflow/v2/context.proto\032\'google"
+ + "/cloud/dialogflow/v2/intent.proto\032(googl"
+ + "e/cloud/dialogflow/v2/session.proto\032\034goo"
+ + "gle/protobuf/struct.proto\032\034google/api/an"
+ + "notations.proto\"\326\001\n\016WebhookRequest\022\017\n\007se"
+ "ssion\030\004 \001(\t\022\023\n\013response_id\030\001 \001(\t\022=\n\014quer"
+ "y_result\030\002 \001(\0132\'.google.cloud.dialogflow"
+ ".v2.QueryResult\022_\n\036original_detect_inten"
@@ -52,13 +52,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "buf.Struct\022<\n\017output_contexts\030\005 \003(\0132#.go"
+ "ogle.cloud.dialogflow.v2.Context\022D\n\024foll"
+ "owup_event_input\030\006 \001(\0132&.google.cloud.di"
- + "alogflow.v2.EventInput\"W\n\033OriginalDetect"
- + "IntentRequest\022\016\n\006source\030\001 \001(\t\022(\n\007payload"
- + "\030\003 \001(\0132\027.google.protobuf.StructB\233\001\n\036com."
- + "google.cloud.dialogflow.v2B\014WebhookProto"
- + "P\001ZDgoogle.golang.org/genproto/googleapi"
- + "s/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF"
- + "\252\002\032Google.Cloud.Dialogflow.V2b\006proto3"
+ + "alogflow.v2.EventInput\"h\n\033OriginalDetect"
+ + "IntentRequest\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.protobu"
+ + "f.StructB\233\001\n\036com.google.cloud.dialogflow"
+ + ".v2B\014WebhookProtoP\001ZDgoogle.golang.org/g"
+ + "enproto/googleapis/cloud/dialogflow/v2;d"
+ + "ialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogf"
+ + "low.V2b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -71,11 +72,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.cloud.dialogflow.v2.ContextProto.getDescriptor(),
com.google.cloud.dialogflow.v2.IntentProto.getDescriptor(),
com.google.cloud.dialogflow.v2.SessionProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
+ com.google.api.AnnotationsProto.getDescriptor(),
},
assigner);
internal_static_google_cloud_dialogflow_v2_WebhookRequest_descriptor =
@@ -105,13 +106,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_OriginalDetectIntentRequest_descriptor,
new java.lang.String[] {
- "Source", "Payload",
+ "Source", "Version", "Payload",
});
- com.google.api.AnnotationsProto.getDescriptor();
com.google.cloud.dialogflow.v2.ContextProto.getDescriptor();
com.google.cloud.dialogflow.v2.IntentProto.getDescriptor();
com.google.cloud.dialogflow.v2.SessionProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
+ com.google.api.AnnotationsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java
index 929bbdab3b7c..e81642515319 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java
@@ -140,7 +140,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -162,7 +164,9 @@ public java.lang.String getSession() {
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -718,7 +722,9 @@ public Builder mergeFrom(
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -740,7 +746,9 @@ public java.lang.String getSession() {
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -762,7 +770,9 @@ public com.google.protobuf.ByteString getSessionBytes() {
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -782,7 +792,9 @@ public Builder setSession(java.lang.String value) {
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -799,7 +811,9 @@ public Builder clearSession() {
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java
index 839d5b541ae4..388d71a634dd 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java
@@ -14,7 +14,9 @@ public interface WebhookRequestOrBuilder
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
@@ -26,7 +28,9 @@ public interface WebhookRequestOrBuilder
*
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
+ * Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
+ * `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
+ * ID>/sessions/<Session ID>`.
*
*
* string session = 4;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto
index 2e54b9ebca00..a0c7c0d0f994 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,12 +11,14 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/annotations.proto";
+import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
@@ -35,30 +37,29 @@ option objc_class_prefix = "DF";
// in your app, product, or service to determine user intent and respond to the
// user in a natural way.
//
-// After you create an agent, you can add
-// [Intents][google.cloud.dialogflow.v2.Intents],
-// [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity
-// Types][google.cloud.dialogflow.v2.EntityTypes],
-// [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage
-// the flow of a conversation and match user input to predefined intents and
-// actions.
+// After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts],
+// [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to
+// manage the flow of a conversation and match user input to predefined intents
+// 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.v2.Agents.ExportAgent]
-// method. You can import a saved agent by using the
-// [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
+// using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved
+// agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
//
// Dialogflow provides several
-// [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common
-// conversation scenarios such as determining a date and time, converting
-// currency, and so on.
+// [prebuilt
+// agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt)
+// for common conversation scenarios such as determining a date and time,
+// converting currency, and so on.
//
// For more information about agents, see the
-// [Dialogflow documentation](https://dialogflow.com/docs/agents).
+// [Dialogflow
+// documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview).
service Agents {
// Retrieves the specified agent.
rpc GetAgent(GetAgentRequest) returns (Agent) {
@@ -82,8 +83,7 @@ service Agents {
// Trains the specified agent.
//
- // Operation
+ // Operation
rpc TrainAgent(TrainAgentRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:train"
@@ -93,9 +93,7 @@ service Agents {
// Exports the specified agent to a ZIP file.
//
- // Operation
+ // Operation
rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:export"
@@ -109,8 +107,7 @@ service Agents {
// Intents and entity types with the same name are replaced with the new
// versions from ImportAgentRequest.
//
- // Operation
+ // Operation
rpc ImportAgent(ImportAgentRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:import"
@@ -123,8 +120,7 @@ service Agents {
// Replaces the current agent version with a new one. All the intents and
// entity types in the older version are deleted.
//
- // Operation
+ // Operation
rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:restore"
@@ -157,9 +153,10 @@ message Agent {
string display_name = 2;
// Required. The default language of the agent as a language tag. See
- // [Language Support](https://dialogflow.com/docs/reference/language) for a
- // list of the currently supported language codes.
- // This field cannot be set by the `Update` method.
+ // [Language
+ // Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // for a list of the currently supported language codes. This field cannot be
+ // set by the `Update` method.
string default_language_code = 3;
// Optional. The list of all languages supported by this agent (except for the
@@ -177,7 +174,9 @@ message Agent {
// Optional. The URI of the agent's avatar.
// Avatars are used throughout the Dialogflow console and in the self-hosted
- // [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ // [Web
+ // Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ // integration.
string avatar_uri = 7;
// Optional. Determines whether this agent should log conversation queries.
@@ -189,23 +188,21 @@ message Agent {
// Optional. To filter out false positive results and still get variety in
// matched natural language inputs for your agent, you can tune the machine
// learning classification threshold. If the returned score value is less than
- // the threshold value, then a fallback intent is be triggered or, if there
+ // the threshold value, then a fallback intent will be triggered or, if there
// are no fallback intents defined, no intent will be triggered. The score
// values range from 0.0 (completely uncertain) to 1.0 (completely certain).
// If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10;
}
-// The request message for
-// [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
+// The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
message GetAgentRequest {
// Required. The project that the agent to fetch is associated with.
// Format: `projects/`.
string parent = 1;
}
-// The request message for
-// [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
message SearchAgentsRequest {
// Required. The project to list agents from.
// Format: `projects/`.
@@ -219,8 +216,7 @@ message SearchAgentsRequest {
string page_token = 3;
}
-// The response message for
-// [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+// The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
message SearchAgentsResponse {
// The list of agents. There will be a maximum number of items returned based
// on the page_size field in the request.
@@ -231,29 +227,28 @@ message SearchAgentsResponse {
string next_page_token = 2;
}
-// The request message for
-// [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
+// The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
message TrainAgentRequest {
// Required. The project that the agent to train is associated with.
// Format: `projects/`.
string parent = 1;
}
-// The request message for
-// [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
+// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
message ExportAgentRequest {
// Required. The project that the agent to export is associated with.
// 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;
}
-// The response message for
-// [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
+// The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
message ExportAgentResponse {
// Required. The exported agent.
oneof agent {
@@ -264,23 +259,22 @@ 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/v2/projects//agent:export'\
+ // curl \
+ // 'https://dialogflow.googleapis.com/v2/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 >
+ // | base64 --decode > <agent zip file>
bytes agent_content = 2;
}
}
-// The request message for
-// [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
+// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
message ImportAgentRequest {
// Required. The project that the agent to import is associated with.
// Format: `projects/`.
@@ -295,23 +289,22 @@ message ImportAgentRequest {
// The agent to import.
//
// Example for how to import an agent via the command line:
- //
- // curl \
- // 'https://dialogflow.googleapis.com/v2/projects//agent:import\
+ // curl \
+ // 'https://dialogflow.googleapis.com/v2/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 | base64 -w 0)'
- // }"
+ // 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+ // }"
bytes agent_content = 3;
}
}
-// The request message for
-// [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
+// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
message RestoreAgentRequest {
// Required. The project that the agent to restore is associated with.
// Format: `projects/`.
@@ -326,17 +319,17 @@ message RestoreAgentRequest {
// The agent to restore.
//
// Example for how to restore an agent via the command line:
- //
- // curl \
- // 'https://dialogflow.googleapis.com/v2/projects//agent:restore\
+ // curl \
+ // 'https://dialogflow.googleapis.com/v2/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 | base64 -w 0)'
- // }" \
+ // 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
+ // }"
bytes agent_content = 3;
}
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
new file mode 100644
index 000000000000..d3ae64e9f8cd
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
@@ -0,0 +1,126 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.dialogflow.v2;
+
+import "google/api/annotations.proto";
+
+option cc_enable_arenas = true;
+option csharp_namespace = "Google.Cloud.Dialogflow.V2";
+option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow";
+option java_multiple_files = true;
+option java_outer_classname = "AudioConfigProto";
+option java_package = "com.google.cloud.dialogflow.v2";
+option objc_class_prefix = "DF";
+
+// Gender of the voice as described in
+// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
+enum SsmlVoiceGender {
+ // An unspecified gender, which means that the client doesn't care which
+ // gender the selected voice will have.
+ SSML_VOICE_GENDER_UNSPECIFIED = 0;
+
+ // A male voice.
+ SSML_VOICE_GENDER_MALE = 1;
+
+ // A female voice.
+ SSML_VOICE_GENDER_FEMALE = 2;
+
+ // A gender-neutral voice.
+ SSML_VOICE_GENDER_NEUTRAL = 3;
+}
+
+// Description of which voice to use for speech synthesis.
+message VoiceSelectionParams {
+ // 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;
+
+ // 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.
+ SsmlVoiceGender ssml_gender = 2;
+}
+
+// Configuration of how speech should be synthesized.
+message SynthesizeSpeechConfig {
+ // 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;
+
+ // 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;
+
+ // 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;
+
+ // 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;
+
+ // Optional. The desired voice of the synthesized audio.
+ VoiceSelectionParams voice = 4;
+}
+
+// Audio encoding of the output audio format in Text-To-Speech.
+enum OutputAudioEncoding {
+ // Not specified.
+ 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;
+
+ // MP3 audio.
+ 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;
+}
+
+// Instructs the speech synthesizer how to generate the output audio content.
+message OutputAudioConfig {
+ // Required. Audio encoding of the synthesized audio content.
+ OutputAudioEncoding audio_encoding = 1;
+
+ // 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;
+
+ // Optional. Configuration of how speech should be synthesized.
+ SynthesizeSpeechConfig synthesize_speech_config = 3;
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto
index 1d693f19d363..3c870e32b794 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,12 +11,14 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/annotations.proto";
+import "google/api/resource.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
@@ -38,14 +40,15 @@ option objc_class_prefix = "DF";
//
// You can include contexts as input parameters of a
// [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
-// [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent])
-// request, or as output contexts included in the returned intent. Contexts
-// expire when an intent is matched, after the number of `DetectIntent` requests
-// specified by the `lifespan_count` parameter, or after 10 minutes if no
-// intents are matched for a `DetectIntent` request.
+// [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request,
+// or as output contexts included in the returned intent.
+// Contexts expire when an intent is matched, after the number of `DetectIntent`
+// requests specified by the `lifespan_count` parameter, or after 20 minutes
+// if no intents are matched for a `DetectIntent` request.
//
// For more information about contexts, see the
-// [Dialogflow documentation](https://dialogflow.com/docs/contexts).
+// [Dialogflow
+// documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview).
service Contexts {
// Returns the list of all contexts in the specified session.
rpc ListContexts(ListContextsRequest) returns (ListContextsResponse) {
@@ -62,6 +65,8 @@ service Contexts {
}
// Creates a context.
+ //
+ // If the specified context already exists, overrides the context.
rpc CreateContext(CreateContextRequest) returns (Context) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent/sessions/*}/contexts"
@@ -85,8 +90,7 @@ service Contexts {
}
// Deletes all active contexts in the specified session.
- rpc DeleteAllContexts(DeleteAllContextsRequest)
- returns (google.protobuf.Empty) {
+ rpc DeleteAllContexts(DeleteAllContextsRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2/{parent=projects/*/agent/sessions/*}/contexts"
};
@@ -97,22 +101,25 @@ service Contexts {
message Context {
// Required. The unique identifier of the context. Format:
// `projects//agent/sessions//contexts/`.
+ //
+ // The `Context ID` is always converted to lowercase, may only contain
+ // characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
string name = 1;
// Optional. The number of conversational query requests after which the
// context expires. If set to `0` (the default) the context expires
- // immediately. Contexts expire automatically after 10 minutes even if there
+ // immediately. Contexts expire automatically after 20 minutes if there
// are no matching queries.
int32 lifespan_count = 2;
// Optional. The collection of parameters associated with this context.
- // Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
- // syntax.
+ // Refer to [this
+ // doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters)
+ // for syntax.
google.protobuf.Struct parameters = 3;
}
-// The request message for
-// [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+// The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
message ListContextsRequest {
// Required. The session to list all contexts from.
// Format: `projects//agent/sessions/`.
@@ -126,8 +133,7 @@ message ListContextsRequest {
string page_token = 3;
}
-// The response message for
-// [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+// The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
message ListContextsResponse {
// The list of contexts. There will be a maximum number of items
// returned based on the page_size field in the request.
@@ -138,16 +144,14 @@ message ListContextsResponse {
string next_page_token = 2;
}
-// The request message for
-// [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
+// The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
message GetContextRequest {
// Required. The name of the context. Format:
// `projects//agent/sessions//contexts/`.
string name = 1;
}
-// The request message for
-// [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
+// The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
message CreateContextRequest {
// Required. The session to create a context for.
// Format: `projects//agent/sessions/`.
@@ -157,8 +161,7 @@ message CreateContextRequest {
Context context = 2;
}
-// The request message for
-// [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
+// The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
message UpdateContextRequest {
// Required. The context to update.
Context context = 1;
@@ -167,16 +170,14 @@ message UpdateContextRequest {
google.protobuf.FieldMask update_mask = 2;
}
-// The request message for
-// [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
+// The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
message DeleteContextRequest {
// Required. The name of the context to delete. Format:
// `projects//agent/sessions//contexts/`.
string name = 1;
}
-// The request message for
-// [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
+// The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
message DeleteAllContextsRequest {
// Required. The name of the session to delete all contexts from. Format:
// `projects//agent/sessions/`.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto
index 3db353774070..ea24d9d1be46 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,12 +11,14 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/annotations.proto";
+import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
@@ -53,15 +55,14 @@ option objc_class_prefix = "DF";
//
// * **User** - entities that are built for an individual user such as
// favorites, preferences, playlists, and so on. A user entity is
-// represented by the
-// [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type.
+// represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type.
//
// For more information about entity types, see the
-// [Dialogflow documentation](https://dialogflow.com/docs/entities).
+// [Dialogflow
+// documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview).
service EntityTypes {
// Returns the list of all entity types in the specified agent.
- rpc ListEntityTypes(ListEntityTypesRequest)
- returns (ListEntityTypesResponse) {
+ rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) {
option (google.api.http) = {
get: "/v2/{parent=projects/*/agent}/entityTypes"
};
@@ -91,8 +92,7 @@ service EntityTypes {
}
// Deletes the specified entity type.
- rpc DeleteEntityType(DeleteEntityTypeRequest)
- returns (google.protobuf.Empty) {
+ rpc DeleteEntityType(DeleteEntityTypeRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2/{name=projects/*/agent/entityTypes/*}"
};
@@ -100,11 +100,8 @@ service EntityTypes {
// Updates/Creates multiple entity types in the specified agent.
//
- // Operation
- rpc BatchUpdateEntityTypes(BatchUpdateEntityTypesRequest)
- returns (google.longrunning.Operation) {
+ // Operation
+ rpc BatchUpdateEntityTypes(BatchUpdateEntityTypesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent}/entityTypes:batchUpdate"
body: "*"
@@ -113,35 +110,30 @@ service EntityTypes {
// Deletes entity types in the specified agent.
//
- // Operation
- rpc BatchDeleteEntityTypes(BatchDeleteEntityTypesRequest)
- returns (google.longrunning.Operation) {
+ // Operation
+ rpc BatchDeleteEntityTypes(BatchDeleteEntityTypesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent}/entityTypes:batchDelete"
body: "*"
};
}
- // Creates multiple new entities in the specified entity type (extends the
- // existing collection of entries).
+ // Creates multiple new entities in the specified entity type.
//
// Operation
- rpc BatchCreateEntities(BatchCreateEntitiesRequest)
- returns (google.longrunning.Operation) {
+ rpc BatchCreateEntities(BatchCreateEntitiesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate"
body: "*"
};
}
- // Updates entities in the specified entity type (replaces the existing
- // collection of entries).
+ // Updates or creates multiple entities in the specified entity type. This
+ // method does not affect entities in the entity type that aren't explicitly
+ // specified in the request.
//
- // Operation
- rpc BatchUpdateEntities(BatchUpdateEntitiesRequest)
- returns (google.longrunning.Operation) {
+ // Operation
+ rpc BatchUpdateEntities(BatchUpdateEntitiesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate"
body: "*"
@@ -150,10 +142,8 @@ service EntityTypes {
// Deletes entities in the specified entity type.
//
- // Operation
- rpc BatchDeleteEntities(BatchDeleteEntitiesRequest)
- returns (google.longrunning.Operation) {
+ // Operation
+ rpc BatchDeleteEntities(BatchDeleteEntitiesRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete"
body: "*"
@@ -165,18 +155,29 @@ service EntityTypes {
// Entity types serve as a tool for extracting parameter values from natural
// language queries.
message EntityType {
- // Optional. Represents an entity.
+ // An **entity entry** for an associated entity type.
message Entity {
- // Required.
+ // Required. The primary value associated with this entity entry.
+ // For example, if the entity type is *vegetable*, the value could be
+ // *scallions*.
+ //
// For `KIND_MAP` entity types:
- // A canonical name to be used in place of synonyms.
+ //
+ // * A canonical value to be used in place of synonyms.
+ //
// For `KIND_LIST` entity types:
- // A string that can contain references to other entity types (with or
- // without aliases).
+ //
+ // * A string that can contain references to other entity types (with or
+ // without aliases).
string value = 1;
- // Required. A collection of synonyms. For `KIND_LIST` entity types this
- // must contain exactly one synonym equal to `value`.
+ // Required. A collection of value synonyms. For example, if the entity type
+ // is *vegetable*, and `value` is *scallions*, a synonym could be *green
+ // onions*.
+ //
+ // For `KIND_LIST` entity types:
+ //
+ // * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
}
@@ -207,13 +208,13 @@ message EntityType {
AUTO_EXPANSION_MODE_DEFAULT = 1;
}
- // Required for all methods except `create` (`create` populates the name
- // automatically.
- // The unique identifier of the entity type. Format:
- // `projects//agent/entityTypes/`.
+ // The unique identifier of the entity type.
+ // Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
+ // [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods.
+ // Format: `projects//agent/entityTypes/`.
string name = 1;
- // Required. The name of the entity.
+ // Required. The name of the entity type.
string display_name = 2;
// Required. Indicates the kind of entity type.
@@ -223,12 +224,11 @@ message EntityType {
// expanded.
AutoExpansionMode auto_expansion_mode = 4;
- // Optional. The collection of entities associated with the entity type.
+ // Optional. The collection of entity entries associated with the entity type.
repeated Entity entities = 6;
}
-// The request message for
-// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
message ListEntityTypesRequest {
// Required. The agent to list all entity types from.
// Format: `projects//agent`.
@@ -236,9 +236,10 @@ message ListEntityTypesRequest {
// Optional. The language to list entity synonyms for. If not specified,
// the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 2;
// Optional. The maximum number of items to return in a single page. By
@@ -249,8 +250,7 @@ message ListEntityTypesRequest {
string page_token = 4;
}
-// The response message for
-// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
message ListEntityTypesResponse {
// The list of agent entity types. There will be a maximum number of items
// returned based on the page_size field in the request.
@@ -261,8 +261,7 @@ message ListEntityTypesResponse {
string next_page_token = 2;
}
-// The request message for
-// [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
+// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
message GetEntityTypeRequest {
// Required. The name of the entity type.
// Format: `projects//agent/entityTypes/`.
@@ -270,14 +269,14 @@ message GetEntityTypeRequest {
// Optional. The language to retrieve entity synonyms for. If not specified,
// the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 2;
}
-// The request message for
-// [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
+// The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
message CreateEntityTypeRequest {
// Required. The agent to create a entity type for.
// Format: `projects//agent`.
@@ -288,40 +287,38 @@ message CreateEntityTypeRequest {
// Optional. The language of entity synonyms defined in `entity_type`. If not
// specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 3;
}
-// The request message for
-// [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
+// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
message UpdateEntityTypeRequest {
// Required. The entity type to update.
- // Format: `projects//agent/entityTypes/`.
EntityType entity_type = 1;
// Optional. The language of entity synonyms defined in `entity_type`. If not
// specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 2;
// Optional. The mask to control which fields get updated.
google.protobuf.FieldMask update_mask = 3;
}
-// The request message for
-// [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
+// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
message DeleteEntityTypeRequest {
// Required. The name of the entity type to delete.
// Format: `projects//agent/entityTypes/`.
string name = 1;
}
-// The request message for
-// [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
+// The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
message BatchUpdateEntityTypesRequest {
// Required. The name of the agent to update or create entity types in.
// Format: `projects//agent`.
@@ -330,8 +327,9 @@ message BatchUpdateEntityTypesRequest {
// Required. The source of the entity type batch.
//
// For each entity type in the batch:
- // * If `name` is specified, we update an existing entity type.
- // * If `name` is not specified, we create a new entity type.
+ //
+ // * If `name` is specified, we update an existing entity type.
+ // * If `name` is not specified, we create a new entity type.
oneof entity_type_batch {
// The URI to a Google Cloud Storage file containing entity types to update
// or create. The file format can either be a serialized proto (of
@@ -339,30 +337,29 @@ message BatchUpdateEntityTypesRequest {
// "gs://".
string entity_type_batch_uri = 2;
- // The collection of entity type to update or create.
+ // The collection of entity types to update or create.
EntityTypeBatch entity_type_batch_inline = 3;
}
// Optional. The language of entity synonyms defined in `entity_types`. If not
// specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 4;
// Optional. The mask to control which fields get updated.
google.protobuf.FieldMask update_mask = 5;
}
-// The response message for
-// [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
+// The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
message BatchUpdateEntityTypesResponse {
// The collection of updated or created entity types.
repeated EntityType entity_types = 1;
}
-// The request message for
-// [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
+// The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
message BatchDeleteEntityTypesRequest {
// Required. The name of the agent to delete all entities types for. Format:
// `projects//agent`.
@@ -373,47 +370,46 @@ message BatchDeleteEntityTypesRequest {
repeated string entity_type_names = 2;
}
-// The request message for
-// [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
+// The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
message BatchCreateEntitiesRequest {
// Required. The name of the entity type to create entities in. Format:
// `projects//agent/entityTypes/`.
string parent = 1;
- // Required. The collection of entities to create.
+ // Required. The entities to create.
repeated EntityType.Entity entities = 2;
// Optional. The language of entity synonyms defined in `entities`. If not
// specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 3;
}
-// The response message for
-// [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
+// The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].
message BatchUpdateEntitiesRequest {
- // Required. The name of the entity type to update the entities in. Format:
- // `projects//agent/entityTypes/`.
+ // Required. The name of the entity type to update or create entities in.
+ // Format: `projects//agent/entityTypes/`.
string parent = 1;
- // Required. The collection of new entities to replace the existing entities.
+ // Required. The entities to update or create.
repeated EntityType.Entity entities = 2;
// Optional. The language of entity synonyms defined in `entities`. If not
// specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 3;
// Optional. The mask to control which fields get updated.
google.protobuf.FieldMask update_mask = 4;
}
-// The request message for
-// [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
+// The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
message BatchDeleteEntitiesRequest {
// Required. The name of the entity type to delete entries for. Format:
// `projects//agent/entityTypes/`.
@@ -426,9 +422,10 @@ message BatchDeleteEntitiesRequest {
// Optional. The language of entity synonyms defined in `entities`. If not
// specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 3;
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto
index 77105c3e5235..bd7382fcf718 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,14 +11,17 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/annotations.proto";
+import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/context.proto";
import "google/longrunning/operations.proto";
+import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
@@ -34,10 +37,10 @@ option objc_class_prefix = "DF";
// An intent represents a mapping between input from a user and an action to
// be taken by your application. When you pass user input to the
// [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
-// [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent])
-// method, the Dialogflow API analyzes the input and searches for a matching
-// intent. If no match is found, the Dialogflow API returns a fallback intent
-// (`is_fallback` = true).
+// [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the
+// Dialogflow API analyzes the input and searches
+// for a matching intent. If no match is found, the Dialogflow API returns a
+// fallback intent (`is_fallback` = true).
//
// You can provide additional information for the Dialogflow API to use to
// match user input to an intent by adding the following to your intent.
@@ -45,7 +48,7 @@ option objc_class_prefix = "DF";
// * **Contexts** - provide additional context for intent analysis. For
// example, if an intent is related to an object in your application that
// plays music, you can provide a context to determine when to match the
-// intent if the user input is “turn it off”. You can include a context
+// intent if the user input is "turn it off". You can include a context
// that matches the intent when there is previous user input of
// "play music", and not when there is previous user input of
// "turn on the light".
@@ -61,7 +64,8 @@ option objc_class_prefix = "DF";
// Dialogflow API agent to better match intents.
//
// For more information about intents, see the
-// [Dialogflow documentation](https://dialogflow.com/docs/intents).
+// [Dialogflow
+// documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview).
service Intents {
// Returns the list of all intents in the specified agent.
rpc ListIntents(ListIntentsRequest) returns (ListIntentsResponse) {
@@ -93,7 +97,7 @@ service Intents {
};
}
- // Deletes the specified intent.
+ // Deletes the specified intent and its direct or indirect followup intents.
rpc DeleteIntent(DeleteIntentRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2/{name=projects/*/agent/intents/*}"
@@ -102,10 +106,8 @@ service Intents {
// Updates/Creates multiple intents in the specified agent.
//
- // Operation
- rpc BatchUpdateIntents(BatchUpdateIntentsRequest)
- returns (google.longrunning.Operation) {
+ // Operation
+ rpc BatchUpdateIntents(BatchUpdateIntentsRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent}/intents:batchUpdate"
body: "*"
@@ -115,8 +117,7 @@ service Intents {
// Deletes intents in the specified agent.
//
// Operation
- rpc BatchDeleteIntents(BatchDeleteIntentsRequest)
- returns (google.longrunning.Operation) {
+ rpc BatchDeleteIntents(BatchDeleteIntentsRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent}/intents:batchDelete"
body: "*"
@@ -128,26 +129,26 @@ service Intents {
// Intents convert a number of user expressions or patterns into an action. An
// action is an extraction of a user command or sentence semantics.
message Intent {
- // Represents an example or template that the agent is trained on.
+ // Represents an example that the agent is trained on.
message TrainingPhrase {
// Represents a part of a training phrase.
message Part {
- // Required. The text corresponding to the example or template,
- // if there are no annotations. For
- // annotated examples, it is the text for one of the example's parts.
+ // Required. The text for this part.
string text = 1;
- // Optional. The entity type name prefixed with `@`. This field is
- // required for the annotated part of the text and applies only to
- // examples.
+ // Optional. The entity type name prefixed with `@`.
+ // This field is required for annotated parts of the training phrase.
string entity_type = 2;
// Optional. The parameter name for the value extracted from the
// annotated part of the example.
+ // This field is required for annotated parts of the training phrase.
string alias = 3;
- // Optional. Indicates whether the text was manually annotated by the
- // developer.
+ // Optional. Indicates whether the text was manually annotated.
+ // This field is set to true when the Dialogflow Console is used to
+ // manually annotate the part. When creating an annotated part with the
+ // API, you must set this to true.
bool user_defined = 4;
}
@@ -162,21 +163,41 @@ message Intent {
// Templates are not annotated with entity types, but they can contain
// @-prefixed entity type names as substrings.
- TEMPLATE = 2;
+ // Template mode has been deprecated. Example mode is the only supported
+ // way to create new training phrases. If you have existing training
+ // phrases that you've created in template mode, those will continue to
+ // work.
+ TEMPLATE = 2 [deprecated = true];
}
- // Required. The unique identifier of this training phrase.
+ // Output only. The unique identifier of this training phrase.
string name = 1;
// Required. The type of the training phrase.
Type type = 2;
- // Required. The collection of training phrase parts (can be annotated).
- // Fields: `entity_type`, `alias` and `user_defined` should be populated
- // only for the annotated parts of the training phrase.
+ // Required. The ordered list of training phrase parts.
+ // The parts are concatenated in order to form the training phrase.
+ //
+ // Note: The API does not automatically annotate training phrases like the
+ // Dialogflow Console does.
+ //
+ // Note: Do not forget to include whitespace at part boundaries,
+ // so the training phrase is well formatted when the parts are concatenated.
+ //
+ // If the training phrase does not need to be annotated with parameters,
+ // you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set.
+ //
+ // If you want to annotate the training phrase, you must create multiple
+ // parts, where the fields of each part are populated in one of two ways:
+ //
+ // - `Part.text` is set to a part of the phrase that has no parameters.
+ // - `Part.text` is set to a part of the phrase that you want to annotate,
+ // and the `entity_type`, `alias`, and `user_defined` fields are all
+ // set.
repeated Part parts = 3;
- // Optional. Indicates how many times this example or template was added to
+ // Optional. Indicates how many times this example was added to
// the intent. Each time a developer adds an existing sample by editing an
// intent or training, this counter is increased.
int32 times_added_count = 4;
@@ -550,7 +571,7 @@ message Intent {
// Format: `projects//agent/intents/`.
string followup_intent_name = 1;
- // The unique identifier of the followup intent parent.
+ // The unique identifier of the followup intent's parent.
// Format: `projects//agent/intents/`.
string parent_followup_intent_name = 2;
}
@@ -568,20 +589,23 @@ message Intent {
WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 2;
}
- // Required for all methods except `create` (`create` populates the name
- // automatically.
// The unique identifier of this intent.
+ // Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ // methods.
// Format: `projects//agent/intents/`.
string name = 1;
// Required. The name of this intent.
string display_name = 2;
- // Required. Indicates whether webhooks are enabled for the intent.
+ // Optional. Indicates whether webhooks are enabled for the intent.
WebhookState webhook_state = 6;
// Optional. The priority of this intent. Higher numbers represent higher
- // priorities. Zero or negative numbers mean that the intent is disabled.
+ // priorities. If this is zero or unspecified, we use the default
+ // priority 500000.
+ //
+ // Negative numbers mean that the intent is disabled.
int32 priority = 3;
// Optional. Indicates whether this is a fallback intent.
@@ -603,11 +627,12 @@ message Intent {
// be present in the active user session for an event to trigger this intent.
repeated string events = 8;
- // Optional. The collection of examples/templates that the agent is
+ // Optional. The collection of examples that the agent is
// trained on.
repeated TrainingPhrase training_phrases = 9;
// Optional. The name of the action associated with the intent.
+ // Note: The action name must not contain whitespaces.
string action = 10;
// Optional. The collection of contexts that are activated when the intent
@@ -632,24 +657,28 @@ message Intent {
// taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated Message.Platform default_response_platforms = 15;
- // The unique identifier of the root intent in the chain of followup intents.
- // It identifies the correct followup intents chain for this intent.
+ // Read-only. The unique identifier of the root intent in the chain of
+ // followup intents. It identifies the correct followup intents chain for
+ // this intent. We populate this field only in the output.
+ //
// Format: `projects//agent/intents/`.
string root_followup_intent_name = 16;
- // The unique identifier of the parent intent in the chain of followup
- // intents.
+ // Read-only after creation. The unique identifier of the parent intent in the
+ // chain of followup intents. You can set this field when creating an intent,
+ // for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ // make this intent a followup intent.
+ //
// It identifies the parent followup intent.
// Format: `projects//agent/intents/`.
string parent_followup_intent_name = 17;
- // Optional. Collection of information about all followup intents that have
- // name of this intent as a root_name.
+ // Read-only. Information about all followup intents that have this intent as
+ // a direct or indirect parent. We populate this field only in the output.
repeated FollowupIntentInfo followup_intent_info = 18;
}
-// The request message for
-// [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+// The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
message ListIntentsRequest {
// Required. The agent to list all intents from.
// Format: `projects//agent`.
@@ -657,9 +686,10 @@ message ListIntentsRequest {
// Optional. The language to list training phrases, parameters and rich
// messages for. If not specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 2;
// Optional. The resource view to apply to the returned intent.
@@ -673,8 +703,7 @@ message ListIntentsRequest {
string page_token = 5;
}
-// The response message for
-// [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+// The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
message ListIntentsResponse {
// The list of agent intents. There will be a maximum number of items
// returned based on the page_size field in the request.
@@ -685,8 +714,7 @@ message ListIntentsResponse {
string next_page_token = 2;
}
-// The request message for
-// [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
+// The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
message GetIntentRequest {
// Required. The name of the intent.
// Format: `projects//agent/intents/`.
@@ -694,17 +722,17 @@ message GetIntentRequest {
// Optional. The language to retrieve training phrases, parameters and rich
// messages for. If not specified, the agent's default language is used.
- // [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 2;
// Optional. The resource view to apply to the returned intent.
IntentView intent_view = 3;
}
-// The request message for
-// [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
+// The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
message CreateIntentRequest {
// Required. The agent to create a intent for.
// Format: `projects//agent`.
@@ -715,27 +743,27 @@ message CreateIntentRequest {
// Optional. The language of training phrases, parameters and rich messages
// defined in `intent`. If not specified, the agent's default language is
- // used. [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // used. [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 3;
// Optional. The resource view to apply to the returned intent.
IntentView intent_view = 4;
}
-// The request message for
-// [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
+// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
message UpdateIntentRequest {
// Required. The intent to update.
- // Format: `projects//agent/intents/`.
Intent intent = 1;
// Optional. The language of training phrases, parameters and rich messages
// defined in `intent`. If not specified, the agent's default language is
- // used. [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // used. [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 2;
// Optional. The mask to control which fields get updated.
@@ -745,16 +773,15 @@ message UpdateIntentRequest {
IntentView intent_view = 4;
}
-// The request message for
-// [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
+// The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
message DeleteIntentRequest {
- // Required. The name of the intent to delete.
+ // Required. The name of the intent to delete. If this intent has direct or
+ // indirect followup intents, we also delete them.
// Format: `projects//agent/intents/`.
string name = 1;
}
-// The request message for
-// [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
+// The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
message BatchUpdateIntentsRequest {
// Required. The name of the agent to update or create intents in.
// Format: `projects//agent`.
@@ -773,9 +800,10 @@ message BatchUpdateIntentsRequest {
// Optional. The language of training phrases, parameters and rich messages
// defined in `intents`. If not specified, the agent's default language is
- // used. [More than a dozen
- // languages](https://dialogflow.com/docs/reference/language) are supported.
- // Note: languages must be enabled in the agent, before they can be used.
+ // used. [Many
+ // languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // are supported. Note: languages must be enabled in the agent before they can
+ // be used.
string language_code = 4;
// Optional. The mask to control which fields get updated.
@@ -785,15 +813,13 @@ message BatchUpdateIntentsRequest {
IntentView intent_view = 6;
}
-// The response message for
-// [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
+// The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
message BatchUpdateIntentsResponse {
// The collection of updated or created intents.
repeated Intent intents = 1;
}
-// The request message for
-// [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
+// The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
message BatchDeleteIntentsRequest {
// Required. The name of the agent to delete all entities types for. Format:
// `projects//agent`.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
index 4b337b7a56a8..8f5d7323b0ae 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,12 +11,15 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/annotations.proto";
+import "google/api/resource.proto";
+import "google/cloud/dialogflow/v2/audio_config.proto";
import "google/cloud/dialogflow/v2/context.proto";
import "google/cloud/dialogflow/v2/intent.proto";
import "google/cloud/dialogflow/v2/session_entity_type.proto";
@@ -33,10 +36,9 @@ option java_package = "com.google.cloud.dialogflow.v2";
option objc_class_prefix = "DF";
// A session represents an interaction with a user. You retrieve user input
-// and pass it to the
-// [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
-// [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent])
-// method to determine user intent and respond.
+// and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
+// [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine
+// user intent and respond.
service Sessions {
// Processes a natural language query and returns structured, actionable data
// as a result. This method is not idempotent, because it may cause contexts
@@ -52,8 +54,8 @@ service Sessions {
// Processes a natural language query in audio format in a streaming fashion
// and returns structured, actionable data as a result. This method is only
// available via the gRPC API (not REST).
- rpc StreamingDetectIntent(stream StreamingDetectIntentRequest)
- returns (stream StreamingDetectIntentResponse);
+ rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse) {
+ }
}
// The request to detect user's intent.
@@ -78,6 +80,11 @@ message DetectIntentRequest {
// 3. an event that specifies which intent to trigger.
QueryInput query_input = 3;
+ // 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.
+ OutputAudioConfig output_audio_config = 4;
+
// Optional. The natural language speech audio to be processed. This field
// should be populated iff `query_input` is set to an input audio config.
// A single request can contain up to 1 minute of speech audio data.
@@ -90,12 +97,23 @@ message DetectIntentResponse {
// locate a response in the training example set or for reporting issues.
string response_id = 1;
- // 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.
QueryResult query_result = 2;
- // Specifies the status of the webhook request. `webhook_status`
- // is never populated in webhook requests.
+ // Specifies the status of the webhook request.
google.rpc.Status webhook_status = 3;
+
+ // The audio data bytes encoded as specified in the request.
+ // Note: The output audio is generated based on the values of default platform
+ // text responses found in the `query_result.fulfillment_messages` field. If
+ // multiple default text responses exist, they will be concatenated when
+ // generating audio. If no default platform text responses exist, the
+ // generated audio content will be empty.
+ bytes output_audio = 4;
+
+ // The config used by the speech synthesizer to generate the output audio.
+ OutputAudioConfig output_audio_config = 6;
}
// Represents the parameters of the conversational query.
@@ -117,14 +135,18 @@ message QueryParameters {
// before the new ones are activated.
bool reset_contexts = 4;
- // Optional. The collection of session entity types to replace or extend
- // developer entities with for this query only. The entity synonyms apply
- // to all languages.
+ // Optional. Additional session entity types to replace or extend developer
+ // entity types with. The entity synonyms apply to all languages and persist
+ // for the session of this query.
repeated SessionEntityType session_entity_types = 5;
// Optional. This field can be used to pass custom data into the webhook
// associated with the agent. Arbitrary JSON objects are supported.
google.protobuf.Struct payload = 6;
+
+ // Optional. Configures the type of sentiment analysis to perform. If not
+ // provided, sentiment analysis is not performed.
+ SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
}
// Represents the query input. It can contain either:
@@ -161,7 +183,8 @@ message QueryResult {
string query_text = 1;
// The language that was triggered during intent detection.
- // See [Language Support](https://dialogflow.com/docs/reference/language)
+ // See [Language
+ // Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
// for a list of the currently supported language codes.
string language_code = 15;
@@ -170,10 +193,10 @@ message QueryResult {
// 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;
// The action name from the matched intent.
@@ -190,6 +213,7 @@ message QueryResult {
bool all_required_params_present = 5;
// The text to be pronounced to the user or shown on the screen.
+ // Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;
// The collection of rich messages to present to the user.
@@ -216,11 +240,18 @@ message QueryResult {
// 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;
- // The free-form diagnostic info. For example, this field
- // could contain webhook call latency.
+ // The free-form diagnostic info. For example, this field could contain
+ // webhook call latency. The string keys of the Struct's fields map can change
+ // without notice.
google.protobuf.Struct diagnostic_info = 14;
+
+ // The sentiment analysis result, which depends on the
+ // `sentiment_analysis_request_config` specified in the request.
+ SentimentAnalysisResult sentiment_analysis_result = 17;
}
// The top-level message sent by the client to the
@@ -229,8 +260,7 @@ message QueryResult {
// 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`. 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`.
@@ -239,7 +269,7 @@ message StreamingDetectIntentRequest {
// Required. The name of the session the query is sent to.
// Format of the session name:
// `projects//agent/sessions/`. It’s up to the API
- // caller to choose an appropriate . It can be a random number or
+ // caller to choose an appropriate `Session ID`. It can be a random number or
// some type of user identifier (preferably hashed). The length of the session
// ID must not exceed 36 characters.
string session = 1;
@@ -267,6 +297,11 @@ message StreamingDetectIntentRequest {
// This setting is ignored when `query_input` is a piece of text or an event.
bool single_utterance = 4;
+ // 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.
+ OutputAudioConfig output_audio_config = 5;
+
// Optional. The input audio content to be recognized. Must be sent if
// `query_input` was set to a streaming input audio config. The complete audio
// over all streaming messages must not exceed 1 minute.
@@ -298,6 +333,14 @@ message StreamingDetectIntentResponse {
// Specifies the status of the webhook request.
google.rpc.Status webhook_status = 4;
+
+ // The audio data bytes encoded as specified in the request.
+ bytes output_audio = 5;
+
+ // Instructs the speech synthesizer how to generate the output audio. This
+ // field is populated from the agent-level speech synthesizer configuration,
+ // if enabled.
+ OutputAudioConfig output_audio_config = 6;
}
// Contains a speech recognition result corresponding to a portion of the audio
@@ -319,7 +362,7 @@ message StreamingDetectIntentResponse {
//
// 6. transcript: " that is"
//
-// 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE`
+// 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
//
// 8. transcript: " that is the question"
// is_final: true
@@ -332,7 +375,7 @@ message StreamingDetectIntentResponse {
//
// * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
//
-// * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`.
+// * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
message StreamingRecognitionResult {
// Type of the response message.
enum MessageType {
@@ -356,14 +399,13 @@ message StreamingRecognitionResult {
MessageType message_type = 1;
// Transcript text representing the words that the user spoke.
- // Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ // Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
string transcript = 2;
- // The default of 0.0 is a sentinel value indicating `confidence` was not set.
// If `false`, the `StreamingRecognitionResult` represents an
// interim result that may change. If `true`, the recognizer will not return
// any further hypotheses about this piece of the audio. May only be populated
- // for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ // for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
bool is_final = 3;
// The Speech confidence between 0.0 and 1.0 for the current portion of audio.
@@ -382,20 +424,24 @@ message InputAudioConfig {
AudioEncoding audio_encoding = 1;
// 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;
// Required. The language of the supplied audio. Dialogflow does not do
// translations. See [Language
- // Support](https://dialogflow.com/docs/languages) for a list of the
- // currently supported language codes. Note that queries in the same session
- // do not necessarily need to specify the same language.
+ // Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // for a list of the currently supported language codes. Note that queries in
+ // the same session do not necessarily need to specify the same language.
string language_code = 3;
// 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.
repeated string phrase_hints = 4;
}
@@ -403,21 +449,21 @@ message InputAudioConfig {
// Represents the natural language text to be processed.
message TextInput {
// Required. The UTF-8 encoded natural language text to be processed.
- // Text length must not exceed 256 bytes.
+ // Text length must not exceed 256 characters.
string text = 1;
// Required. The language of this conversational query. See [Language
- // Support](https://dialogflow.com/docs/languages) for a list of the
- // currently supported language codes. Note that queries in the same session
- // do not necessarily need to specify the same language.
+ // Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // for a list of the currently supported language codes. Note that queries in
+ // the same session do not necessarily need to specify the same language.
string language_code = 2;
}
// Events allow for matching intents by event name instead of the natural
-// language input. For instance, input `` can trigger a personalized welcome response.
+// language input. For instance, input `` can trigger a personalized welcome response.
// The parameter `name` may be used by the agent in the response:
-// `“Hello #welcome_event.name! What can I do for you today?”`.
+// `"Hello #welcome_event.name! What can I do for you today?"`.
message EventInput {
// Required. The unique identifier of the event.
string name = 1;
@@ -426,14 +472,16 @@ message EventInput {
google.protobuf.Struct parameters = 2;
// Required. The language of this query. See [Language
- // Support](https://dialogflow.com/docs/languages) for a list of the
- // currently supported language codes. Note that queries in the same session
- // do not necessarily need to specify the same language.
+ // Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ // for a list of the currently supported language codes. Note that queries in
+ // the same session do not necessarily need to specify the same language.
string language_code = 3;
}
// 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.
enum AudioEncoding {
// Not specified.
@@ -478,3 +526,30 @@ enum AudioEncoding {
// wideband is supported. `sample_rate_hertz` must be 16000.
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
}
+
+// Configures the types of sentiment analysis to perform.
+message SentimentAnalysisRequestConfig {
+ // 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;
+}
+
+// The result of sentiment analysis as configured by
+// `sentiment_analysis_request_config`.
+message SentimentAnalysisResult {
+ // The sentiment analysis result for `query_text`.
+ Sentiment query_text_sentiment = 1;
+}
+
+// The sentiment, such as positive/negative feeling or association, for a unit
+// of analysis, such as the query text.
+message Sentiment {
+ // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
+ // sentiment).
+ float score = 1;
+
+ // 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;
+}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto
index dd779c682a45..10d666fd1a99 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,12 +11,14 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
syntax = "proto3";
package google.cloud.dialogflow.v2;
import "google/api/annotations.proto";
+import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/entity_type.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
@@ -40,27 +42,28 @@ option objc_class_prefix = "DF";
// entity type at the session level.
//
// For more information about entity types, see the
-// [Dialogflow documentation](https://dialogflow.com/docs/entities).
+// [Dialogflow
+// documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview).
service SessionEntityTypes {
// Returns the list of all session entity types in the specified session.
- rpc ListSessionEntityTypes(ListSessionEntityTypesRequest)
- returns (ListSessionEntityTypesResponse) {
+ rpc ListSessionEntityTypes(ListSessionEntityTypesRequest) returns (ListSessionEntityTypesResponse) {
option (google.api.http) = {
get: "/v2/{parent=projects/*/agent/sessions/*}/entityTypes"
};
}
// Retrieves the specified session entity type.
- rpc GetSessionEntityType(GetSessionEntityTypeRequest)
- returns (SessionEntityType) {
+ rpc GetSessionEntityType(GetSessionEntityTypeRequest) returns (SessionEntityType) {
option (google.api.http) = {
get: "/v2/{name=projects/*/agent/sessions/*/entityTypes/*}"
};
}
// Creates a session entity type.
- rpc CreateSessionEntityType(CreateSessionEntityTypeRequest)
- returns (SessionEntityType) {
+ //
+ // If the specified session entity type already exists, overrides the session
+ // entity type.
+ rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) returns (SessionEntityType) {
option (google.api.http) = {
post: "/v2/{parent=projects/*/agent/sessions/*}/entityTypes"
body: "session_entity_type"
@@ -68,8 +71,7 @@ service SessionEntityTypes {
}
// Updates the specified session entity type.
- rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest)
- returns (SessionEntityType) {
+ rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) returns (SessionEntityType) {
option (google.api.http) = {
patch: "/v2/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}"
body: "session_entity_type"
@@ -77,8 +79,7 @@ service SessionEntityTypes {
}
// Deletes the specified session entity type.
- rpc DeleteSessionEntityType(DeleteSessionEntityTypeRequest)
- returns (google.protobuf.Empty) {
+ rpc DeleteSessionEntityType(DeleteSessionEntityTypeRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2/{name=projects/*/agent/sessions/*/entityTypes/*}"
};
@@ -104,16 +105,22 @@ message SessionEntityType {
// The collection of session entities extends the collection of entities in
// the corresponding developer entity type.
- // Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
- // `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
- // collection of entities from the developer entity type in the agent's
- // default language and the session entity type.
+ //
+ // Note: Even in this override mode calls to `ListSessionEntityTypes`,
+ // `GetSessionEntityType`, `CreateSessionEntityType` and
+ // `UpdateSessionEntityType` only return the additional entities added in
+ // this session entity type. If you want to get the supplemented list,
+ // please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the developer entity type
+ // and merge.
ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2;
}
// Required. The unique identifier of this session entity type. Format:
// `projects//agent/sessions//entityTypes/`.
+ //
+ // `` must be the display name of an existing entity
+ // type in the same agent that will be overridden or supplemented.
string name = 1;
// Required. Indicates whether the additional data should override or
@@ -125,8 +132,7 @@ message SessionEntityType {
repeated EntityType.Entity entities = 3;
}
-// The request message for
-// [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
message ListSessionEntityTypesRequest {
// Required. The session to list all session entity types from.
// Format: `projects//agent/sessions/`.
@@ -140,8 +146,7 @@ message ListSessionEntityTypesRequest {
string page_token = 3;
}
-// The response message for
-// [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+// The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
message ListSessionEntityTypesResponse {
// The list of session entity types. There will be a maximum number of items
// returned based on the page_size field in the request.
@@ -152,8 +157,7 @@ message ListSessionEntityTypesResponse {
string next_page_token = 2;
}
-// The request message for
-// [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
+// The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
message GetSessionEntityTypeRequest {
// Required. The name of the session entity type. Format:
// `projects//agent/sessions//entityTypes//agent/sessions/`.
@@ -172,8 +175,7 @@ message CreateSessionEntityTypeRequest {
SessionEntityType session_entity_type = 2;
}
-// The request message for
-// [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
+// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
message UpdateSessionEntityTypeRequest {
// Required. The entity type to update. Format:
// `projects//agent/sessions//entityTypes//agent/sessions//entityTypes//agent/sessions/`.
+ // Format: `projects//agent/sessions/`, or
+ // `projects//agent/environments//users//sessions/`.
string session = 4;
// The unique identifier of the response. Contains the same value as
@@ -104,7 +107,22 @@ message OriginalDetectIntentRequest {
// by Dialogflow-owned servers.
string source = 1;
- // Optional. This field is set to the value of `QueryParameters.payload` field
- // passed in the request.
+ // Optional. The version of the protocol used for this request.
+ // This field is AoG-specific.
+ string version = 2;
+
+ // Optional. This field is set to the value of the `QueryParameters.payload`
+ // field passed in the request. Some integrations that query a Dialogflow
+ // agent may provide additional information in the payload.
+ //
+ // In particular for the Telephony Gateway this field has the form:
+ // {
+ // "telephony": {
+ // "caller_id": "+18558363987"
+ // }
+ // }
+ // Note: The caller ID field (`caller_id`) will be redacted for Standard
+ // Edition agents and populated with the caller ID in [E.164
+ // format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
google.protobuf.Struct payload = 3;
}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java
index 3bcc2e58ad82..da68c42be2de 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java
@@ -408,9 +408,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -431,9 +432,10 @@ public java.lang.String getDefaultLanguageCode() {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -605,7 +607,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -627,7 +631,9 @@ public java.lang.String getAvatarUri() {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -700,7 +706,7 @@ public com.google.cloud.dialogflow.v2beta1.Agent.MatchMode getMatchMode() {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -1395,9 +1401,10 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -1418,9 +1425,10 @@ public java.lang.String getDefaultLanguageCode() {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -1441,9 +1449,10 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -1462,9 +1471,10 @@ public Builder setDefaultLanguageCode(java.lang.String value) {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -1480,9 +1490,10 @@ public Builder clearDefaultLanguageCode() {
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -1861,7 +1872,9 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -1883,7 +1896,9 @@ public java.lang.String getAvatarUri() {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -1905,7 +1920,9 @@ public com.google.protobuf.ByteString getAvatarUriBytes() {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -1925,7 +1942,9 @@ public Builder setAvatarUri(java.lang.String value) {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -1942,7 +1961,9 @@ public Builder clearAvatarUri() {
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -2088,7 +2109,7 @@ public Builder clearMatchMode() {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -2106,7 +2127,7 @@ public float getClassificationThreshold() {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -2127,7 +2148,7 @@ public Builder setClassificationThreshold(float value) {
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java
index 530a444374a2..0a92f63e5ea5 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java
@@ -57,9 +57,10 @@ public interface AgentOrBuilder
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -70,9 +71,10 @@ public interface AgentOrBuilder
*
*
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
*
* string default_language_code = 3;
@@ -178,7 +180,9 @@ public interface AgentOrBuilder
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -190,7 +194,9 @@ public interface AgentOrBuilder
*
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
*
* string avatar_uri = 7;
@@ -236,7 +242,7 @@ public interface AgentOrBuilder
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java
index b7ece857f5bd..a06e4e084d37 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java
@@ -59,63 +59,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n+google/cloud/dialogflow/v2beta1/agent."
+ "proto\022\037google.cloud.dialogflow.v2beta1\032\034"
- + "google/api/annotations.proto\032#google/lon"
- + "grunning/operations.proto\032\033google/protob"
- + "uf/empty.proto\032 google/protobuf/field_ma"
- + "sk.proto\032\034google/protobuf/struct.proto\"\202"
- + "\003\n\005Agent\022\016\n\006parent\030\001 \001(\t\022\024\n\014display_name"
- + "\030\002 \001(\t\022\035\n\025default_language_code\030\003 \001(\t\022 \n"
- + "\030supported_language_codes\030\004 \003(\t\022\021\n\ttime_"
- + "zone\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\022\022\n\navata"
- + "r_uri\030\007 \001(\t\022\026\n\016enable_logging\030\010 \001(\010\022D\n\nm"
- + "atch_mode\030\t \001(\01620.google.cloud.dialogflo"
- + "w.v2beta1.Agent.MatchMode\022 \n\030classificat"
- + "ion_threshold\030\n \001(\002\"V\n\tMatchMode\022\032\n\026MATC"
- + "H_MODE_UNSPECIFIED\020\000\022\025\n\021MATCH_MODE_HYBRI"
- + "D\020\001\022\026\n\022MATCH_MODE_ML_ONLY\020\002\"!\n\017GetAgentR"
- + "equest\022\016\n\006parent\030\001 \001(\t\"L\n\023SearchAgentsRe"
- + "quest\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\"g\n\024SearchAgentsResp"
- + "onse\0226\n\006agents\030\001 \003(\0132&.google.cloud.dial"
- + "ogflow.v2beta1.Agent\022\027\n\017next_page_token\030"
- + "\002 \001(\t\"#\n\021TrainAgentRequest\022\016\n\006parent\030\001 \001"
- + "(\t\"7\n\022ExportAgentRequest\022\016\n\006parent\030\001 \001(\t"
- + "\022\021\n\tagent_uri\030\002 \001(\t\"L\n\023ExportAgentRespon"
- + "se\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_content"
- + "\030\002 \001(\014H\000B\007\n\005agent\"[\n\022ImportAgentRequest\022"
- + "\016\n\006parent\030\001 \001(\t\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\r"
- + "agent_content\030\003 \001(\014H\000B\007\n\005agent\"\\\n\023Restor"
- + "eAgentRequest\022\016\n\006parent\030\001 \001(\t\022\023\n\tagent_u"
- + "ri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014H\000B\007\n\005a"
- + "gent2\264\007\n\006Agents\022\220\001\n\010GetAgent\0220.google.cl"
- + "oud.dialogflow.v2beta1.GetAgentRequest\032&"
- + ".google.cloud.dialogflow.v2beta1.Agent\"*"
- + "\202\323\344\223\002$\022\"/v2beta1/{parent=projects/*}/age"
- + "nt\022\256\001\n\014SearchAgents\0224.google.cloud.dialo"
- + "gflow.v2beta1.SearchAgentsRequest\0325.goog"
- + "le.cloud.dialogflow.v2beta1.SearchAgents"
- + "Response\"1\202\323\344\223\002+\022)/v2beta1/{parent=proje"
- + "cts/*}/agent:search\022\224\001\n\nTrainAgent\0222.goo"
- + "gle.cloud.dialogflow.v2beta1.TrainAgentR"
- + "equest\032\035.google.longrunning.Operation\"3\202"
- + "\323\344\223\002-\"(/v2beta1/{parent=projects/*}/agen"
- + "t:train:\001*\022\227\001\n\013ExportAgent\0223.google.clou"
- + "d.dialogflow.v2beta1.ExportAgentRequest\032"
- + "\035.google.longrunning.Operation\"4\202\323\344\223\002.\")"
- + "/v2beta1/{parent=projects/*}/agent:expor"
- + "t:\001*\022\227\001\n\013ImportAgent\0223.google.cloud.dial"
- + "ogflow.v2beta1.ImportAgentRequest\032\035.goog"
- + "le.longrunning.Operation\"4\202\323\344\223\002.\")/v2bet"
- + "a1/{parent=projects/*}/agent:import:\001*\022\232"
- + "\001\n\014RestoreAgent\0224.google.cloud.dialogflo"
- + "w.v2beta1.RestoreAgentRequest\032\035.google.l"
- + "ongrunning.Operation\"5\202\323\344\223\002/\"*/v2beta1/{"
- + "parent=projects/*}/agent:restore:\001*B\250\001\n#"
- + "com.google.cloud.dialogflow.v2beta1B\nAge"
- + "ntProtoP\001ZIgoogle.golang.org/genproto/go"
- + "ogleapis/cloud/dialogflow/v2beta1;dialog"
- + "flow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V"
- + "2beta1b\006proto3"
+ + "google/api/annotations.proto\032\031google/api"
+ + "/resource.proto\032#google/longrunning/oper"
+ + "ations.proto\032\033google/protobuf/empty.prot"
+ + "o\032 google/protobuf/field_mask.proto\032\034goo"
+ + "gle/protobuf/struct.proto\"\202\003\n\005Agent\022\016\n\006p"
+ + "arent\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\035\n\025def"
+ + "ault_language_code\030\003 \001(\t\022 \n\030supported_la"
+ + "nguage_codes\030\004 \003(\t\022\021\n\ttime_zone\030\005 \001(\t\022\023\n"
+ + "\013description\030\006 \001(\t\022\022\n\navatar_uri\030\007 \001(\t\022\026"
+ + "\n\016enable_logging\030\010 \001(\010\022D\n\nmatch_mode\030\t \001"
+ + "(\01620.google.cloud.dialogflow.v2beta1.Age"
+ + "nt.MatchMode\022 \n\030classification_threshold"
+ + "\030\n \001(\002\"V\n\tMatchMode\022\032\n\026MATCH_MODE_UNSPEC"
+ + "IFIED\020\000\022\025\n\021MATCH_MODE_HYBRID\020\001\022\026\n\022MATCH_"
+ + "MODE_ML_ONLY\020\002\"!\n\017GetAgentRequest\022\016\n\006par"
+ + "ent\030\001 \001(\t\"L\n\023SearchAgentsRequest\022\016\n\006pare"
+ + "nt\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke"
+ + "n\030\003 \001(\t\"g\n\024SearchAgentsResponse\0226\n\006agent"
+ + "s\030\001 \003(\0132&.google.cloud.dialogflow.v2beta"
+ + "1.Agent\022\027\n\017next_page_token\030\002 \001(\t\"#\n\021Trai"
+ + "nAgentRequest\022\016\n\006parent\030\001 \001(\t\"7\n\022ExportA"
+ + "gentRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tagent_uri"
+ + "\030\002 \001(\t\"L\n\023ExportAgentResponse\022\023\n\tagent_u"
+ + "ri\030\001 \001(\tH\000\022\027\n\ragent_content\030\002 \001(\014H\000B\007\n\005a"
+ + "gent\"[\n\022ImportAgentRequest\022\016\n\006parent\030\001 \001"
+ + "(\t\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\ragent_content"
+ + "\030\003 \001(\014H\000B\007\n\005agent\"\\\n\023RestoreAgentRequest"
+ + "\022\016\n\006parent\030\001 \001(\t\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n"
+ + "\ragent_content\030\003 \001(\014H\000B\007\n\005agent2\264\007\n\006Agen"
+ + "ts\022\220\001\n\010GetAgent\0220.google.cloud.dialogflo"
+ + "w.v2beta1.GetAgentRequest\032&.google.cloud"
+ + ".dialogflow.v2beta1.Agent\"*\202\323\344\223\002$\022\"/v2be"
+ + "ta1/{parent=projects/*}/agent\022\256\001\n\014Search"
+ + "Agents\0224.google.cloud.dialogflow.v2beta1"
+ + ".SearchAgentsRequest\0325.google.cloud.dial"
+ + "ogflow.v2beta1.SearchAgentsResponse\"1\202\323\344"
+ + "\223\002+\022)/v2beta1/{parent=projects/*}/agent:"
+ + "search\022\224\001\n\nTrainAgent\0222.google.cloud.dia"
+ + "logflow.v2beta1.TrainAgentRequest\032\035.goog"
+ + "le.longrunning.Operation\"3\202\323\344\223\002-\"(/v2bet"
+ + "a1/{parent=projects/*}/agent:train:\001*\022\227\001"
+ + "\n\013ExportAgent\0223.google.cloud.dialogflow."
+ + "v2beta1.ExportAgentRequest\032\035.google.long"
+ + "running.Operation\"4\202\323\344\223\002.\")/v2beta1/{par"
+ + "ent=projects/*}/agent:export:\001*\022\227\001\n\013Impo"
+ + "rtAgent\0223.google.cloud.dialogflow.v2beta"
+ + "1.ImportAgentRequest\032\035.google.longrunnin"
+ + "g.Operation\"4\202\323\344\223\002.\")/v2beta1/{parent=pr"
+ + "ojects/*}/agent:import:\001*\022\232\001\n\014RestoreAge"
+ + "nt\0224.google.cloud.dialogflow.v2beta1.Res"
+ + "toreAgentRequest\032\035.google.longrunning.Op"
+ + "eration\"5\202\323\344\223\002/\"*/v2beta1/{parent=projec"
+ + "ts/*}/agent:restore:\001*B\250\001\n#com.google.cl"
+ + "oud.dialogflow.v2beta1B\nAgentProtoP\001ZIgo"
+ + "ogle.golang.org/genproto/googleapis/clou"
+ + "d/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252"
+ + "\002\037Google.Cloud.Dialogflow.V2beta1b\006proto"
+ + "3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -129,6 +130,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -222,6 +224,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.EmptyProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
index ee0098d93966..4ef97493f92d 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java
@@ -12,6 +12,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -35,33 +39,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n2google/cloud/dialogflow/v2beta1/audio_"
+ "config.proto\022\037google.cloud.dialogflow.v2"
- + "beta1\032\034google/api/annotations.proto\"k\n\024V"
- + "oiceSelectionParams\022\014\n\004name\030\001 \001(\t\022E\n\013ssm"
- + "l_gender\030\002 \001(\01620.google.cloud.dialogflow"
- + ".v2beta1.SsmlVoiceGender\"\270\001\n\026SynthesizeS"
- + "peechConfig\022\025\n\rspeaking_rate\030\001 \001(\001\022\r\n\005pi"
- + "tch\030\002 \001(\001\022\026\n\016volume_gain_db\030\003 \001(\001\022\032\n\022eff"
- + "ects_profile_id\030\005 \003(\t\022D\n\005voice\030\004 \001(\01325.g"
- + "oogle.cloud.dialogflow.v2beta1.VoiceSele"
- + "ctionParams\"\327\001\n\021OutputAudioConfig\022L\n\016aud"
- + "io_encoding\030\001 \001(\01624.google.cloud.dialogf"
- + "low.v2beta1.OutputAudioEncoding\022\031\n\021sampl"
- + "e_rate_hertz\030\002 \001(\005\022Y\n\030synthesize_speech_"
- + "config\030\003 \001(\01327.google.cloud.dialogflow.v"
- + "2beta1.SynthesizeSpeechConfig*\215\001\n\017SsmlVo"
- + "iceGender\022!\n\035SSML_VOICE_GENDER_UNSPECIFI"
- + "ED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030SSML"
- + "_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE_GEN"
- + "DER_NEUTRAL\020\003*\244\001\n\023OutputAudioEncoding\022%\n"
- + "!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037"
- + "OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUT"
- + "PUT_AUDIO_ENCODING_MP3\020\002\022\"\n\036OUTPUT_AUDIO"
- + "_ENCODING_OGG_OPUS\020\003B\256\001\n#com.google.clou"
- + "d.dialogflow.v2beta1B\020AudioConfigProtoP\001"
- + "ZIgoogle.golang.org/genproto/googleapis/"
- + "cloud/dialogflow/v2beta1;dialogflow\370\001\001\242\002"
- + "\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1b\006p"
- + "roto3"
+ + "beta1\032\034google/api/annotations.proto\"\261\001\n\020"
+ + "InputAudioConfig\022F\n\016audio_encoding\030\001 \001(\016"
+ + "2..google.cloud.dialogflow.v2beta1.Audio"
+ + "Encoding\022\031\n\021sample_rate_hertz\030\002 \001(\005\022\025\n\rl"
+ + "anguage_code\030\003 \001(\t\022\024\n\014phrase_hints\030\004 \003(\t"
+ + "\022\r\n\005model\030\007 \001(\t\"k\n\024VoiceSelectionParams\022"
+ + "\014\n\004name\030\001 \001(\t\022E\n\013ssml_gender\030\002 \001(\01620.goo"
+ + "gle.cloud.dialogflow.v2beta1.SsmlVoiceGe"
+ + "nder\"\270\001\n\026SynthesizeSpeechConfig\022\025\n\rspeak"
+ + "ing_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volume_"
+ + "gain_db\030\003 \001(\001\022\032\n\022effects_profile_id\030\005 \003("
+ + "\t\022D\n\005voice\030\004 \001(\01325.google.cloud.dialogfl"
+ + "ow.v2beta1.VoiceSelectionParams\"\327\001\n\021Outp"
+ + "utAudioConfig\022L\n\016audio_encoding\030\001 \001(\01624."
+ + "google.cloud.dialogflow.v2beta1.OutputAu"
+ + "dioEncoding\022\031\n\021sample_rate_hertz\030\002 \001(\005\022Y"
+ + "\n\030synthesize_speech_config\030\003 \001(\01327.googl"
+ + "e.cloud.dialogflow.v2beta1.SynthesizeSpe"
+ + "echConfig*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENC"
+ + "ODING_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LI"
+ + "NEAR_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AU"
+ + "DIO_ENCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_A"
+ + "MR\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO"
+ + "_ENCODING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_S"
+ + "PEEX_WITH_HEADER_BYTE\020\007*\215\001\n\017SsmlVoiceGen"
+ + "der\022!\n\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032"
+ + "\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE"
+ + "_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NE"
+ + "UTRAL\020\003*\244\001\n\023OutputAudioEncoding\022%\n!OUTPU"
+ + "T_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT"
+ + "_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AU"
+ + "DIO_ENCODING_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCOD"
+ + "ING_OGG_OPUS\020\003B\256\001\n#com.google.cloud.dial"
+ + "ogflow.v2beta1B\020AudioConfigProtoP\001ZIgoog"
+ + "le.golang.org/genproto/googleapis/cloud/"
+ + "dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037"
+ + "Google.Cloud.Dialogflow.V2beta1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -77,8 +91,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.api.AnnotationsProto.getDescriptor(),
},
assigner);
- internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_descriptor =
+ internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor =
getDescriptor().getMessageTypes().get(0);
+ 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", "Model",
+ });
+ internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_descriptor =
+ getDescriptor().getMessageTypes().get(1);
internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_VoiceSelectionParams_descriptor,
@@ -86,7 +108,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Name", "SsmlGender",
});
internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor =
- getDescriptor().getMessageTypes().get(1);
+ getDescriptor().getMessageTypes().get(2);
internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_SynthesizeSpeechConfig_descriptor,
@@ -94,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"SpeakingRate", "Pitch", "VolumeGainDb", "EffectsProfileId", "Voice",
});
internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor =
- getDescriptor().getMessageTypes().get(2);
+ getDescriptor().getMessageTypes().get(3);
internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2beta1_OutputAudioConfig_descriptor,
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java
index 857a4d3f4cc6..02170b409788 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/dialogflow/v2beta1/session.proto
+// source: google/cloud/dialogflow/v2beta1/audio_config.proto
package com.google.cloud.dialogflow.v2beta1;
@@ -274,7 +274,9 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor().getEnumTypes().get(0);
+ return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor()
+ .getEnumTypes()
+ .get(0);
}
private static final AudioEncoding[] VALUES = values();
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java
index c21aa3407070..a3e72280c9c0 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities].
+ * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest}
@@ -170,7 +169,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -182,7 +181,7 @@ public java.util.List get
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -195,7 +194,7 @@ public java.util.List get
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -207,7 +206,7 @@ public int getEntitiesCount() {
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -219,7 +218,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getEntities(int ind
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -237,9 +236,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -261,9 +261,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -464,8 +465,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities].
+ * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest}
@@ -800,7 +800,7 @@ private void ensureEntitiesIsMutable() {
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -816,7 +816,7 @@ public java.util.List get
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -832,7 +832,7 @@ public int getEntitiesCount() {
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -848,7 +848,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getEntities(int ind
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -871,7 +871,7 @@ public Builder setEntities(
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -891,7 +891,7 @@ public Builder setEntities(
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -913,7 +913,7 @@ public Builder addEntities(com.google.cloud.dialogflow.v2beta1.EntityType.Entity
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -936,7 +936,7 @@ public Builder addEntities(
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -956,7 +956,7 @@ public Builder addEntities(
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -976,7 +976,7 @@ public Builder addEntities(
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -997,7 +997,7 @@ public Builder addAllEntities(
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1016,7 +1016,7 @@ public Builder clearEntities() {
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1035,7 +1035,7 @@ public Builder removeEntities(int index) {
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1048,7 +1048,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder getEntities
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1065,7 +1065,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1082,7 +1082,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1095,7 +1095,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder addEntities
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1110,7 +1110,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder addEntities
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -1144,9 +1144,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder addEntities
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -1168,9 +1169,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -1192,9 +1194,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -1214,9 +1217,10 @@ public Builder setLanguageCode(java.lang.String value) {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -1233,9 +1237,10 @@ public Builder clearLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java
index 5de39fcffcc8..2673cc9f98af 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java
@@ -35,7 +35,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -45,7 +45,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -55,7 +55,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -65,7 +65,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -76,7 +76,7 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
*
*
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -89,9 +89,10 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -103,9 +104,10 @@ public interface BatchCreateEntitiesRequestOrBuilder
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java
index 7db60cb8ee4d..00f13f04a324 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities].
+ * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest}
@@ -227,9 +226,10 @@ public com.google.protobuf.ByteString getEntityValuesBytes(int index) {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -251,9 +251,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -459,8 +460,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities].
+ * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest}
@@ -914,9 +914,10 @@ public Builder addEntityValuesBytes(com.google.protobuf.ByteString value) {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -938,9 +939,10 @@ public java.lang.String getLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -962,9 +964,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -984,9 +987,10 @@ public Builder setLanguageCode(java.lang.String value) {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -1003,9 +1007,10 @@ public Builder clearLanguageCode() {
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java
index 559f05058a72..6abd01e77900 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java
@@ -86,9 +86,10 @@ public interface BatchDeleteEntitiesRequestOrBuilder
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
@@ -100,9 +101,10 @@ public interface BatchDeleteEntitiesRequestOrBuilder
*
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
*
* string language_code = 3;
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java
index 3c020f51dedc..bf2db0687a45 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes].
+ * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest}
@@ -388,8 +387,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes].
+ * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java
index ab2aa4b5dfc6..131de5e7b782 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The request message for
- * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents].
+ * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest}
@@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request message for
- * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents].
+ * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest}
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java
index 7a9f4df8cc0b..37322713ef71 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java
@@ -7,8 +7,7 @@
*
*
*
- * The response message for
- * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities].
+ * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntities].
*
*
* Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest}
@@ -140,8 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The name of the entity type to update the entities in. Format:
- * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
+ * Required. The name of the entity type to update or create entities in.
+ * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
*
*
* string parent = 1;
@@ -161,8 +160,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The name of the entity type to update the entities in. Format:
- * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
+ * Required. The name of the entity type to update or create entities in.
+ * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
*
*
* string parent = 1;
@@ -185,7 +184,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The collection of new entities to replace the existing entities.
+ * Required. The entities to update or create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -197,7 +196,7 @@ public java.util.List get
*
*
*
- * Required. The collection of new entities to replace the existing entities.
+ * Required. The entities to update or create.
*
*
* repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2;
@@ -210,7 +209,7 @@ public java.util.List get
*
*
*