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 { @@ -640,8 +632,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( @@ -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 { @@ -937,8 +917,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * *
      * 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 @@ -952,9 +931,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * *
      * 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 @@ -971,8 +948,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * 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.common.util.concurrent.ListenableFuture @@ -988,8 +964,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * 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.common.util.concurrent.ListenableFuture diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java index 709c0f9e77f7..aab4c1effb86 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java @@ -19,13 +19,14 @@ * 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). * */ @javax.annotation.Generated( @@ -397,13 +398,14 @@ public static ContextsFutureStub newFutureStub(io.grpc.Channel channel) { * 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 abstract static class ContextsImplBase implements io.grpc.BindableService { @@ -440,6 +442,7 @@ public void getContext( * *
      * 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 { @@ -604,6 +608,7 @@ public void getContext( * *
      * 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 { @@ -1012,9 +1007,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( @@ -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 @@ -1422,8 +1405,7 @@ protected EntityTypesFutureStub build( * *
      * 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 @@ -1437,8 +1419,7 @@ protected EntityTypesFutureStub build( * * *
-     * 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 @@ -1469,8 +1450,7 @@ protected EntityTypesFutureStub build( * *
      * 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 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java index 78f79b5bfbe1..0f3f2f622810 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java @@ -14,16 +14,16 @@ * 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". @@ -36,7 +36,8 @@ * * **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). * */ @javax.annotation.Generated( @@ -455,16 +456,16 @@ public static IntentsFutureStub newFutureStub(io.grpc.Channel channel) { * 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". @@ -477,7 +478,8 @@ public static IntentsFutureStub newFutureStub(io.grpc.Channel channel) { * * **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 abstract static class IntentsImplBase implements io.grpc.BindableService { @@ -539,7 +541,7 @@ public void updateIntent( * * *
-     * 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 { @@ -742,7 +744,7 @@ public void updateIntent( * * *
-     * 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 { @@ -1034,7 +1036,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * * *
-     * Deletes the specified intent.
+     * Deletes the specified intent and its direct or indirect followup intents.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1048,8 +1050,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * *
      * 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 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java index 1a73dc0bcee4..6a8ff5089253 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java @@ -20,7 +20,8 @@ * 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). * */ @javax.annotation.Generated( @@ -372,7 +373,8 @@ public static SessionEntityTypesFutureStub newFutureStub(io.grpc.Channel channel * 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 abstract static class SessionEntityTypesImplBase implements io.grpc.BindableService { @@ -410,6 +412,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( @@ -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 { @@ -305,10 +302,9 @@ public void 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 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 { @@ -654,8 +643,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( @@ -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 { @@ -954,8 +929,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * *
      * 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 @@ -969,9 +943,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * *
      * 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 @@ -988,8 +960,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * 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.common.util.concurrent.ListenableFuture @@ -1005,8 +976,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * 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.common.util.concurrent.ListenableFuture diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java index 5c36436f9a1d..329f0b8ad1e8 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java @@ -19,13 +19,14 @@ * 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). * */ @javax.annotation.Generated( @@ -401,13 +402,14 @@ public static ContextsFutureStub newFutureStub(io.grpc.Channel channel) { * 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 abstract static class ContextsImplBase implements io.grpc.BindableService { @@ -444,6 +446,7 @@ public void getContext( * *
      * 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 { @@ -608,6 +612,7 @@ public void getContext( * *
      * 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 + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.dialogflow.v2beta1.Documents", "UpdateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("UpdateDocument")) + .build(); + } + } + } + return getUpdateDocumentMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getReloadDocumentMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, + com.google.longrunning.Operation> + METHOD_RELOAD_DOCUMENT = getReloadDocumentMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, + com.google.longrunning.Operation> + getReloadDocumentMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, + com.google.longrunning.Operation> + getReloadDocumentMethod() { + return getReloadDocumentMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, + com.google.longrunning.Operation> + getReloadDocumentMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, + com.google.longrunning.Operation> + getReloadDocumentMethod; + if ((getReloadDocumentMethod = DocumentsGrpc.getReloadDocumentMethod) == null) { + synchronized (DocumentsGrpc.class) { + if ((getReloadDocumentMethod = DocumentsGrpc.getReloadDocumentMethod) == null) { + DocumentsGrpc.getReloadDocumentMethod = + getReloadDocumentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.dialogflow.v2beta1.Documents", "ReloadDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ReloadDocument")) + .build(); + } + } + } + return getReloadDocumentMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DocumentsStub newStub(io.grpc.Channel channel) { return new DocumentsStub(channel); @@ -313,8 +427,7 @@ public void getDocument( *
      * 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 responseObserver) { + asyncUnimplementedUnaryCall(getUpdateDocumentMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * 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 responseObserver) { + asyncUnimplementedUnaryCall(getReloadDocumentMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -367,6 +512,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DOCUMENT))) + .addMethod( + getUpdateDocumentMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_DOCUMENT))) + .addMethod( + getReloadDocumentMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest, + com.google.longrunning.Operation>(this, METHODID_RELOAD_DOCUMENT))) .build(); } } @@ -432,8 +589,7 @@ public void getDocument( *
      * 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 responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateDocumentMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * 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 responseObserver) { + asyncUnaryCall( + getChannel().newCall(getReloadDocumentMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -520,8 +714,7 @@ public com.google.cloud.dialogflow.v2beta1.Document getDocument( *
      * 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 @@ -619,8 +843,7 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions *
      * 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 @@ -628,12 +851,47 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return futureUnaryCall( getChannel().newCall(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.common.util.concurrent.ListenableFuture + updateDocument(com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest request) { + return futureUnaryCall( + getChannel().newCall(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.common.util.concurrent.ListenableFuture + reloadDocument(com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest request) { + return futureUnaryCall( + getChannel().newCall(getReloadDocumentMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_LIST_DOCUMENTS = 0; private static final int METHODID_GET_DOCUMENT = 1; private static final int METHODID_CREATE_DOCUMENT = 2; private static final int METHODID_DELETE_DOCUMENT = 3; + private static final int METHODID_UPDATE_DOCUMENT = 4; + private static final int METHODID_RELOAD_DOCUMENT = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -675,6 +933,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_DOCUMENT: + serviceImpl.updateDocument( + (com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RELOAD_DOCUMENT: + serviceImpl.reloadDocument( + (com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -743,6 +1011,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetDocumentMethodHelper()) .addMethod(getCreateDocumentMethodHelper()) .addMethod(getDeleteDocumentMethodHelper()) + .addMethod(getUpdateDocumentMethodHelper()) + .addMethod(getReloadDocumentMethodHelper()) .build(); } } diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java index d7ad0e1b0daf..bc16072b4a49 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java @@ -29,11 +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.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). * */ @javax.annotation.Generated( @@ -666,11 +665,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.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 abstract static class EntityTypesImplBase implements io.grpc.BindableService { @@ -749,9 +747,7 @@ public void 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 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 { @@ -1024,9 +1016,7 @@ public void 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 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 @@ -1436,8 +1414,7 @@ protected EntityTypesFutureStub build( * *
      * 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 @@ -1451,8 +1428,7 @@ protected EntityTypesFutureStub build( * * *
-     * 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 @@ -1485,8 +1461,7 @@ protected EntityTypesFutureStub build( * *
      * 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 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java index 591d7a939db6..c8f4f65d1581 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java @@ -14,16 +14,16 @@ * 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". @@ -36,7 +36,8 @@ * * **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). * */ @javax.annotation.Generated( @@ -470,16 +471,16 @@ public static IntentsFutureStub newFutureStub(io.grpc.Channel channel) { * 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". @@ -492,7 +493,8 @@ public static IntentsFutureStub newFutureStub(io.grpc.Channel channel) { * * **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 abstract static class IntentsImplBase implements io.grpc.BindableService { @@ -554,7 +556,7 @@ public void updateIntent( * * *
-     * 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 { @@ -757,7 +759,7 @@ public void updateIntent( * * *
-     * 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 { @@ -1052,7 +1054,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * * *
-     * Deletes the specified intent.
+     * Deletes the specified intent and its direct or indirect followup intents.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1066,8 +1068,7 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * *
      * 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 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java index b2356f64c8e6..1a6efbf7db78 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java @@ -262,6 +262,67 @@ private KnowledgeBasesGrpc() {} return getDeleteKnowledgeBaseMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateKnowledgeBaseMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase> + METHOD_UPDATE_KNOWLEDGE_BASE = getUpdateKnowledgeBaseMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase> + getUpdateKnowledgeBaseMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase> + getUpdateKnowledgeBaseMethod() { + return getUpdateKnowledgeBaseMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase> + getUpdateKnowledgeBaseMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase> + getUpdateKnowledgeBaseMethod; + if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) == null) { + synchronized (KnowledgeBasesGrpc.class) { + if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) + == null) { + KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod = + getUpdateKnowledgeBaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.dialogflow.v2beta1.KnowledgeBases", + "UpdateKnowledgeBase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.KnowledgeBase + .getDefaultInstance())) + .setSchemaDescriptor( + new KnowledgeBasesMethodDescriptorSupplier("UpdateKnowledgeBase")) + .build(); + } + } + } + return getUpdateKnowledgeBaseMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static KnowledgeBasesStub newStub(io.grpc.Channel channel) { return new KnowledgeBasesStub(channel); @@ -344,6 +405,20 @@ public void deleteKnowledgeBase( asyncUnimplementedUnaryCall(getDeleteKnowledgeBaseMethodHelper(), responseObserver); } + /** + * + * + *
+     * Updates the specified knowledge base.
+     * 
+ */ + public void updateKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateKnowledgeBaseMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -374,6 +449,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_KNOWLEDGE_BASE))) + .addMethod( + getUpdateKnowledgeBaseMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( + this, METHODID_UPDATE_KNOWLEDGE_BASE))) .build(); } } @@ -467,6 +549,23 @@ public void deleteKnowledgeBase( request, responseObserver); } + + /** + * + * + *
+     * Updates the specified knowledge base.
+     * 
+ */ + public void updateKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateKnowledgeBaseMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -544,6 +643,19 @@ public com.google.protobuf.Empty deleteKnowledgeBase( return blockingUnaryCall( getChannel(), getDeleteKnowledgeBaseMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * 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 implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -674,6 +802,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_KNOWLEDGE_BASE: + serviceImpl.updateKnowledgeBase( + (com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -742,6 +876,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetKnowledgeBaseMethodHelper()) .addMethod(getCreateKnowledgeBaseMethodHelper()) .addMethod(getDeleteKnowledgeBaseMethodHelper()) + .addMethod(getUpdateKnowledgeBaseMethodHelper()) .build(); } } diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java index 3e740ec5571d..56642757d253 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java @@ -20,7 +20,8 @@ * 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). * */ @javax.annotation.Generated( @@ -376,7 +377,8 @@ public static SessionEntityTypesFutureStub newFutureStub(io.grpc.Channel channel * 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 abstract static class SessionEntityTypesImplBase implements io.grpc.BindableService { @@ -415,6 +417,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( @@ -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 { @@ -307,10 +304,9 @@ public void 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 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 getEntit * * *
-   * 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 getEntit * * *
-   * 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 getEntit * * *
-     * 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 getEntit * * *
-   * 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 getEntit * * *
-   * 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 getEntit * * *
-     * 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 values) { * * *
-       * 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 getEntit * * *
-   * 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 getEntit * * *
-   * 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 getEntit * * *
-     * 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/&lt;project_name&gt;/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 > &lt;agent zip file&gt;</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/&lt;project_name&gt;/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 > &lt;agent zip file&gt;</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/&lt;project_name&gt;/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 > &lt;agent zip file&gt;</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/&lt;project_name&gt;/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 > &lt;agent zip file&gt;</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/&lt;project_name&gt;/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 > &lt;agent zip file&gt;</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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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 values) { *
      * 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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/&lt;project_name&gt;/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 &lt;agent zip file&gt; | 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 * * *
-   * 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; @@ -222,7 +221,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.v2beta1.EntityType.Entity entities = 2; @@ -234,7 +233,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getEntities(int ind * * *
-   * 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; @@ -252,9 +251,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; @@ -276,9 +276,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; @@ -532,8 +533,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * 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} @@ -766,8 +766,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; @@ -787,8 +787,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; @@ -808,8 +808,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; @@ -827,8 +827,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; @@ -843,8 +843,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; @@ -882,7 +882,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.v2beta1.EntityType.Entity entities = 2; @@ -898,7 +898,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; @@ -914,7 +914,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.v2beta1.EntityType.Entity entities = 2; @@ -930,7 +930,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getEntities(int ind * * *
-     * 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; @@ -953,7 +953,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.v2beta1.EntityType.Entity entities = 2; @@ -973,7 +973,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.v2beta1.EntityType.Entity entities = 2; @@ -995,7 +995,7 @@ public Builder addEntities(com.google.cloud.dialogflow.v2beta1.EntityType.Entity * * *
-     * 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; @@ -1018,7 +1018,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.v2beta1.EntityType.Entity entities = 2; @@ -1038,7 +1038,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.v2beta1.EntityType.Entity entities = 2; @@ -1058,7 +1058,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.v2beta1.EntityType.Entity entities = 2; @@ -1079,7 +1079,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.v2beta1.EntityType.Entity entities = 2; @@ -1098,7 +1098,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.v2beta1.EntityType.Entity entities = 2; @@ -1117,7 +1117,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.v2beta1.EntityType.Entity entities = 2; @@ -1130,7 +1130,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder getEntities * * *
-     * 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; @@ -1147,7 +1147,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie * * *
-     * 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; @@ -1164,7 +1164,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie * * *
-     * 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; @@ -1177,7 +1177,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder addEntities * * *
-     * 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; @@ -1192,7 +1192,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder addEntities * * *
-     * 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; @@ -1226,9 +1226,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; @@ -1250,9 +1251,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; @@ -1274,9 +1276,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; @@ -1296,9 +1299,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; @@ -1315,9 +1319,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/BatchUpdateEntitiesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java index 0d21ea125ed2..20453071b66a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java index 71026ab03f79..63a1726e5f55 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
+ * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest} @@ -290,7 +289,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -302,7 +301,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -317,7 +316,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeBatch getEntityTypeBatchInl * * *
-   * The collection of entity type to update or create.
+   * The collection of entity types to update or create.
    * 
* * .google.cloud.dialogflow.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -338,9 +337,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeBatch getEntityTypeBatchInl *
    * 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; @@ -362,9 +362,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; @@ -646,8 +647,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
+   * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest} @@ -1101,7 +1101,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1113,7 +1113,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1135,7 +1135,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeBatch getEntityTypeBatchInl * * *
-     * The collection of entity type to update or create.
+     * The collection of entity types to update or create.
      * 
* * .google.cloud.dialogflow.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1158,7 +1158,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1178,7 +1178,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1211,7 +1211,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1236,7 +1236,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1249,7 +1249,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1269,7 +1269,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.v2beta1.EntityTypeBatch entity_type_batch_inline = 3; @@ -1307,9 +1307,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; @@ -1331,9 +1332,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; @@ -1355,9 +1357,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; @@ -1377,9 +1380,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; @@ -1396,9 +1400,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java index 975de7703ee0..468dff66b5d2 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.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.v2beta1.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.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java index 49ab9bce44cc..99925ec395c3 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
+ * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse} @@ -333,8 +332,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
+   * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java index 3a255ff9557f..de87a41d8735 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
+ * The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest} @@ -341,9 +340,10 @@ public com.google.cloud.dialogflow.v2beta1.IntentBatchOrBuilder getIntentBatchIn *
    * 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; @@ -365,9 +365,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; @@ -688,8 +689,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
+   * The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest} @@ -1344,9 +1344,10 @@ public com.google.cloud.dialogflow.v2beta1.IntentBatch.Builder getIntentBatchInl *
      * 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; @@ -1368,9 +1369,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; @@ -1392,9 +1394,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; @@ -1414,9 +1417,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; @@ -1433,9 +1437,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java index 58854be5e647..0d5064e87aeb 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java index b748cd6b165a..17c46c66d5b9 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
+ * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse} @@ -329,8 +328,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
+   * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java index 03ef5863d487..88935008fb93 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java @@ -120,10 +120,11 @@ 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>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -146,10 +147,11 @@ public java.lang.String getName() { * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -174,7 +176,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.
    * 
* @@ -191,8 +193,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; @@ -205,8 +208,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; @@ -219,8 +223,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; @@ -596,10 +601,11 @@ public Builder mergeFrom( * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -622,10 +628,11 @@ public java.lang.String getName() { * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -648,10 +655,11 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -672,10 +680,11 @@ 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>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -693,10 +702,11 @@ public Builder clearName() { * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -719,7 +729,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.
      * 
* @@ -734,7 +744,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.
      * 
* @@ -752,7 +762,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.
      * 
* @@ -776,8 +786,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; @@ -790,8 +801,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; @@ -808,8 +820,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; @@ -832,8 +845,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; @@ -853,8 +867,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; @@ -879,8 +894,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; @@ -901,8 +917,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; @@ -917,8 +934,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; @@ -935,8 +953,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java index 1b21d8235aeb..802f105c132f 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java @@ -15,10 +15,11 @@ public interface ContextOrBuilder * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -31,10 +32,11 @@ public interface ContextOrBuilder * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`, * or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User - * ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is - * always converted to lowercase. If `Environment ID` is not specified, we - * assume default 'draft' environment. If `User ID` is not specified, we - * assume default '-' user. + * ID>/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. + * If `Environment ID` is not specified, we assume default 'draft' + * environment. If `User ID` is not specified, we assume default '-' user. * * * string name = 1; @@ -47,7 +49,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.
    * 
* @@ -60,8 +62,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; @@ -72,8 +75,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; @@ -84,8 +88,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java index a4afb4fae621..11e4e237706d 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java @@ -55,70 +55,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/dialogflow/v2beta1/contex" + "t.proto\022\037google.cloud.dialogflow.v2beta1" - + "\032\034google/api/annotations.proto\032\033google/p" - + "rotobuf/empty.proto\032 google/protobuf/fie" - + "ld_mask.proto\032\034google/protobuf/struct.pr" - + "oto\"\\\n\007Context\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.googl" - + "e.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\np" - + "age_token\030\003 \001(\t\"k\n\024ListContextsResponse\022" - + ":\n\010contexts\030\001 \003(\0132(.google.cloud.dialogf" - + "low.v2beta1.Context\022\027\n\017next_page_token\030\002" - + " \001(\t\"!\n\021GetContextRequest\022\014\n\004name\030\001 \001(\t\"" - + "a\n\024CreateContextRequest\022\016\n\006parent\030\001 \001(\t\022" - + "9\n\007context\030\002 \001(\0132(.google.cloud.dialogfl" - + "ow.v2beta1.Context\"\202\001\n\024UpdateContextRequ" - + "est\0229\n\007context\030\001 \001(\0132(.google.cloud.dial" - + "ogflow.v2beta1.Context\022/\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMask\"$\n\024Delet" - + "eContextRequest\022\014\n\004name\030\001 \001(\t\"*\n\030DeleteA" - + "llContextsRequest\022\016\n\006parent\030\001 \001(\t2\313\014\n\010Co" - + "ntexts\022\216\002\n\014ListContexts\0224.google.cloud.d" - + "ialogflow.v2beta1.ListContextsRequest\0325." - + "google.cloud.dialogflow.v2beta1.ListCont" - + "extsResponse\"\220\001\202\323\344\223\002\211\001\0226/v2beta1/{parent" - + "=projects/*/agent/sessions/*}/contextsZO" - + "\022M/v2beta1/{parent=projects/*/agent/envi" - + "ronments/*/users/*/sessions/*}/contexts\022" - + "\375\001\n\nGetContext\0222.google.cloud.dialogflow" - + ".v2beta1.GetContextRequest\032(.google.clou" - + "d.dialogflow.v2beta1.Context\"\220\001\202\323\344\223\002\211\001\0226" - + "/v2beta1/{name=projects/*/agent/sessions" - + "/*/contexts/*}ZO\022M/v2beta1/{name=project" - + "s/*/agent/environments/*/users/*/session" - + "s/*/contexts/*}\022\225\002\n\rCreateContext\0225.goog" - + "le.cloud.dialogflow.v2beta1.CreateContex" - + "tRequest\032(.google.cloud.dialogflow.v2bet" - + "a1.Context\"\242\001\202\323\344\223\002\233\001\"6/v2beta1/{parent=p" - + "rojects/*/agent/sessions/*}/contexts:\007co" - + "ntextZX\"M/v2beta1/{parent=projects/*/age" - + "nt/environments/*/users/*/sessions/*}/co" - + "ntexts:\007context\022\245\002\n\rUpdateContext\0225.goog" - + "le.cloud.dialogflow.v2beta1.UpdateContex" - + "tRequest\032(.google.cloud.dialogflow.v2bet" - + "a1.Context\"\262\001\202\323\344\223\002\253\0012>/v2beta1/{context." - + "name=projects/*/agent/sessions/*/context" - + "s/*}:\007contextZ`2U/v2beta1/{context.name=" + + "\032\034google/api/annotations.proto\032\031google/a" + + "pi/resource.proto\032\033google/protobuf/empty" + + ".proto\032 google/protobuf/field_mask.proto" + + "\032\034google/protobuf/struct.proto\"\\\n\007Contex" + + "t\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.St" + + "ruct\"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\"k\n\024ListContextsResponse\022:\n\010contexts\030\001" + + " \003(\0132(.google.cloud.dialogflow.v2beta1.C" + + "ontext\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetCo" + + "ntextRequest\022\014\n\004name\030\001 \001(\t\"a\n\024CreateCont" + + "extRequest\022\016\n\006parent\030\001 \001(\t\0229\n\007context\030\002 " + + "\001(\0132(.google.cloud.dialogflow.v2beta1.Co" + + "ntext\"\202\001\n\024UpdateContextRequest\0229\n\007contex" + + "t\030\001 \001(\0132(.google.cloud.dialogflow.v2beta" + + "1.Context\022/\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"$\n\024DeleteContextReque" + + "st\022\014\n\004name\030\001 \001(\t\"*\n\030DeleteAllContextsReq" + + "uest\022\016\n\006parent\030\001 \001(\t2\313\014\n\010Contexts\022\216\002\n\014Li" + + "stContexts\0224.google.cloud.dialogflow.v2b" + + "eta1.ListContextsRequest\0325.google.cloud." + + "dialogflow.v2beta1.ListContextsResponse\"" + + "\220\001\202\323\344\223\002\211\001\0226/v2beta1/{parent=projects/*/a" + + "gent/sessions/*}/contextsZO\022M/v2beta1/{p" + + "arent=projects/*/agent/environments/*/us" + + "ers/*/sessions/*}/contexts\022\375\001\n\nGetContex" + + "t\0222.google.cloud.dialogflow.v2beta1.GetC" + + "ontextRequest\032(.google.cloud.dialogflow." + + "v2beta1.Context\"\220\001\202\323\344\223\002\211\001\0226/v2beta1/{nam" + + "e=projects/*/agent/sessions/*/contexts/*" + + "}ZO\022M/v2beta1/{name=projects/*/agent/env" + + "ironments/*/users/*/sessions/*/contexts/" + + "*}\022\225\002\n\rCreateContext\0225.google.cloud.dial" + + "ogflow.v2beta1.CreateContextRequest\032(.go" + + "ogle.cloud.dialogflow.v2beta1.Context\"\242\001" + + "\202\323\344\223\002\233\001\"6/v2beta1/{parent=projects/*/age" + + "nt/sessions/*}/contexts:\007contextZX\"M/v2b" + + "eta1/{parent=projects/*/agent/environmen" + + "ts/*/users/*/sessions/*}/contexts:\007conte" + + "xt\022\245\002\n\rUpdateContext\0225.google.cloud.dial" + + "ogflow.v2beta1.UpdateContextRequest\032(.go" + + "ogle.cloud.dialogflow.v2beta1.Context\"\262\001" + + "\202\323\344\223\002\253\0012>/v2beta1/{context.name=projects" + + "/*/agent/sessions/*/contexts/*}:\007context" + + "Z`2U/v2beta1/{context.name=projects/*/ag" + + "ent/environments/*/users/*/sessions/*/co" + + "ntexts/*}:\007context\022\361\001\n\rDeleteContext\0225.g" + + "oogle.cloud.dialogflow.v2beta1.DeleteCon" + + "textRequest\032\026.google.protobuf.Empty\"\220\001\202\323" + + "\344\223\002\211\001*6/v2beta1/{name=projects/*/agent/s" + + "essions/*/contexts/*}ZO*M/v2beta1/{name=" + "projects/*/agent/environments/*/users/*/" - + "sessions/*/contexts/*}:\007context\022\361\001\n\rDele" - + "teContext\0225.google.cloud.dialogflow.v2be" - + "ta1.DeleteContextRequest\032\026.google.protob" - + "uf.Empty\"\220\001\202\323\344\223\002\211\001*6/v2beta1/{name=proje" - + "cts/*/agent/sessions/*/contexts/*}ZO*M/v" - + "2beta1/{name=projects/*/agent/environmen" - + "ts/*/users/*/sessions/*/contexts/*}\022\371\001\n\021" - + "DeleteAllContexts\0229.google.cloud.dialogf" - + "low.v2beta1.DeleteAllContextsRequest\032\026.g" - + "oogle.protobuf.Empty\"\220\001\202\323\344\223\002\211\001*6/v2beta1" - + "/{parent=projects/*/agent/sessions/*}/co" - + "ntextsZO*M/v2beta1/{parent=projects/*/ag" - + "ent/environments/*/users/*/sessions/*}/c" - + "ontextsB\252\001\n#com.google.cloud.dialogflow." - + "v2beta1B\014ContextProtoP\001ZIgoogle.golang.o" - + "rg/genproto/googleapis/cloud/dialogflow/" - + "v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Clou" - + "d.Dialogflow.V2beta1b\006proto3" + + "sessions/*/contexts/*}\022\371\001\n\021DeleteAllCont" + + "exts\0229.google.cloud.dialogflow.v2beta1.D" + + "eleteAllContextsRequest\032\026.google.protobu" + + "f.Empty\"\220\001\202\323\344\223\002\211\001*6/v2beta1/{parent=proj" + + "ects/*/agent/sessions/*}/contextsZO*M/v2" + + "beta1/{parent=projects/*/agent/environme" + + "nts/*/users/*/sessions/*}/contextsB\252\001\n#c" + + "om.google.cloud.dialogflow.v2beta1B\014Cont" + + "extProtoP\001ZIgoogle.golang.org/genproto/g" + + "oogleapis/cloud/dialogflow/v2beta1;dialo" + + "gflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow." + + "V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -132,6 +133,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(), @@ -207,6 +209,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java index acf27658c065..435179b2b2d4 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext].
+ * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateContextRequest} @@ -380,8 +379,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext].
+   * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java index 7281a029eef6..35c9890ad177 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument].
+ * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateDocumentRequest} @@ -372,8 +371,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument].
+   * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java index b795e00d8128..c1558b898355 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityType].
+ * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest} @@ -210,9 +209,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeOrBuilder getEntityTypeOrBu *
    * 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.v2beta1.EntityTypes.CreateEntityType].
+   * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest} @@ -905,9 +905,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeOrBuilder getEntityTypeOrBu *
      * 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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java index a608e5779cf0..ec12ba9930b3 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java index 51d6e027a570..565482928a66 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Intents.CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent].
+ * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateIntentRequest} @@ -218,9 +217,10 @@ public com.google.cloud.dialogflow.v2beta1.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; @@ -242,9 +242,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; @@ -489,8 +490,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Intents.CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent].
+   * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateIntentRequest} @@ -959,9 +959,10 @@ public com.google.cloud.dialogflow.v2beta1.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; @@ -983,9 +984,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; @@ -1007,9 +1009,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; @@ -1029,9 +1032,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; @@ -1048,9 +1052,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java index da2a71267bae..cce08b3cbf20 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java index fe294bc62a5c..7ba0929876e6 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase].
+ * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest} @@ -115,8 +114,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The agent to create a knowledge base for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to create a knowledge base for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; @@ -136,8 +135,8 @@ public java.lang.String getParent() { * * *
-   * Required. The agent to create a knowledge base for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to create a knowledge base for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; @@ -373,8 +372,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase].
+   * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest} @@ -551,8 +549,8 @@ public Builder mergeFrom( * * *
-     * Required. The agent to create a knowledge base for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to create a knowledge base for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -572,8 +570,8 @@ public java.lang.String getParent() { * * *
-     * Required. The agent to create a knowledge base for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to create a knowledge base for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -593,8 +591,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The agent to create a knowledge base for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to create a knowledge base for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -612,8 +610,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The agent to create a knowledge base for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to create a knowledge base for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -628,8 +626,8 @@ public Builder clearParent() { * * *
-     * Required. The agent to create a knowledge base for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to create a knowledge base for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java index dfd1cd49e452..299ae168a3dd 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java @@ -12,8 +12,8 @@ public interface CreateKnowledgeBaseRequestOrBuilder * * *
-   * Required. The agent to create a knowledge base for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to create a knowledge base for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; @@ -23,8 +23,8 @@ public interface CreateKnowledgeBaseRequestOrBuilder * * *
-   * Required. The agent to create a knowledge base for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to create a knowledge base for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java index c7ffbb3e9744..1a38cee4ae6a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType].
+ * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest} @@ -384,8 +383,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType].
+   * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java index fa0f063db00c..aa24f90239ad 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts].
+ * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest} @@ -307,8 +306,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts].
+   * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java index 82ed3ed032df..db649b769203 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
+ * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteContextRequest} @@ -309,8 +308,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
+   * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java index 0f836a59b36a..a0c72611a8eb 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument].
+ * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteDocumentRequest} @@ -303,8 +302,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument].
+   * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java index 4597de078d45..93ad4be2f8d9 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityType].
+ * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest} @@ -301,8 +300,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityType].
+   * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java index 7275687a88d4..2af8b0e34b47 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Intents.DeleteIntent][google.cloud.dialogflow.v2beta1.Intents.DeleteIntent].
+ * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2beta1.Intents.DeleteIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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>`.
    * 
* @@ -301,8 +302,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Intents.DeleteIntent][google.cloud.dialogflow.v2beta1.Intents.DeleteIntent].
+   * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2beta1.Intents.DeleteIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteIntentRequest} @@ -462,7 +462,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>`.
      * 
* @@ -483,7 +484,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>`.
      * 
* @@ -504,7 +506,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>`.
      * 
* @@ -523,7 +526,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>`.
      * 
* @@ -539,7 +543,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java index 88b1972d9bf1..77d5a5e42a60 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java index bf8b835c7155..90933e90eb40 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase].
+ * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest} @@ -331,8 +330,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase].
+   * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java index 0b3567174a63..2e6fa4c241a1 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType].
+ * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest} @@ -311,8 +310,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType].
+   * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java index 96b0a716a1fa..04b4627857ad 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java @@ -362,8 +362,7 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResult * * *
-   * 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; @@ -375,8 +374,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; @@ -388,8 +386,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; @@ -405,6 +402,11 @@ public 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; @@ -1748,8 +1750,7 @@ public Builder removeAlternativeQueryResults(int index) { * * *
-     * 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; @@ -1761,8 +1762,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; @@ -1778,8 +1778,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; @@ -1801,8 +1800,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; @@ -1821,8 +1819,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; @@ -1846,8 +1843,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; @@ -1867,8 +1863,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; @@ -1882,8 +1877,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; @@ -1899,8 +1893,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; @@ -1926,6 +1919,11 @@ public 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; @@ -1938,6 +1936,11 @@ public com.google.protobuf.ByteString getOutputAudio() { * *
      * 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; @@ -1956,6 +1959,11 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * *
      * 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; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java index c4f2ffc85b7d..fdee9006fc2f 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java @@ -162,8 +162,7 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * * *
-   * 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; @@ -173,8 +172,7 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * * *
-   * 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; @@ -184,8 +182,7 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * * *
-   * 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; @@ -197,6 +194,11 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * *
    * 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; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java index 0534c3b77ef2..3b8762eafe7b 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java @@ -8,6 +8,8 @@ * *
  * A document resource.
+ * Note: resource `projects.agent.knowledgeBases.documents` is deprecated,
+ * please use `projects.knowledgeBases.documents` instead.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.Document} @@ -113,6 +115,12 @@ private Document( source_ = s; break; } + case 74: + { + sourceCase_ = 9; + source_ = input.readBytes(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -313,7 +321,9 @@ private KnowledgeType(int value) { public enum SourceCase implements com.google.protobuf.Internal.EnumLite { CONTENT_URI(5), + @java.lang.Deprecated CONTENT(6), + RAW_CONTENT(9), SOURCE_NOT_SET(0); private final int value; @@ -332,6 +342,8 @@ public static SourceCase forNumber(int value) { return CONTENT_URI; case 6: return CONTENT; + case 9: + return RAW_CONTENT; case 0: return SOURCE_NOT_SET; default: @@ -644,10 +656,13 @@ public com.google.protobuf.ByteString getContentUriBytes() { *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
+   * Note: This field is in the process of being deprecated, please use
+   * raw_content instead.
    * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public java.lang.String getContent() { java.lang.Object ref = ""; if (sourceCase_ == 6) { @@ -670,10 +685,13 @@ public java.lang.String getContent() { *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
+   * Note: This field is in the process of being deprecated, please use
+   * raw_content instead.
    * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { @@ -691,6 +709,24 @@ public com.google.protobuf.ByteString getContentBytes() { } } + public static final int RAW_CONTENT_FIELD_NUMBER = 9; + /** + * + * + *
+   * The raw content of the document. This field is only permitted for
+   * EXTRACTIVE_QA and FAQ knowledge types.
+   * 
+ * + * bytes raw_content = 9; + */ + public com.google.protobuf.ByteString getRawContent() { + if (sourceCase_ == 9) { + return (com.google.protobuf.ByteString) source_; + } + return com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -728,6 +764,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, source_); } + if (sourceCase_ == 9) { + output.writeBytes(9, (com.google.protobuf.ByteString) source_); + } unknownFields.writeTo(output); } @@ -765,6 +804,11 @@ public int getSerializedSize() { if (sourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, source_); } + if (sourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 9, (com.google.protobuf.ByteString) source_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -793,6 +837,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getContent().equals(other.getContent())) return false; break; + case 9: + if (!getRawContent().equals(other.getRawContent())) return false; + break; case 0: default: } @@ -826,6 +873,10 @@ public int hashCode() { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); break; + case 9: + hash = (37 * hash) + RAW_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getRawContent().hashCode(); + break; case 0: default: } @@ -934,6 +985,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A document resource.
+   * Note: resource `projects.agent.knowledgeBases.documents` is deprecated,
+   * please use `projects.knowledgeBases.documents` instead.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.Document} @@ -1027,6 +1080,9 @@ public com.google.cloud.dialogflow.v2beta1.Document buildPartial() { if (sourceCase_ == 6) { result.source_ = source_; } + if (sourceCase_ == 9) { + result.source_ = source_; + } result.bitField0_ = to_bitField0_; result.sourceCase_ = sourceCase_; onBuilt(); @@ -1115,6 +1171,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Document other) { onChanged(); break; } + case RAW_CONTENT: + { + setRawContent(other.getRawContent()); + break; + } case SOURCE_NOT_SET: { break; @@ -1811,10 +1872,13 @@ public Builder setContentUriBytes(com.google.protobuf.ByteString value) { *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
+     * Note: This field is in the process of being deprecated, please use
+     * raw_content instead.
      * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public java.lang.String getContent() { java.lang.Object ref = ""; if (sourceCase_ == 6) { @@ -1837,10 +1901,13 @@ public java.lang.String getContent() { *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
+     * Note: This field is in the process of being deprecated, please use
+     * raw_content instead.
      * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { @@ -1863,10 +1930,13 @@ public com.google.protobuf.ByteString getContentBytes() { *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
+     * Note: This field is in the process of being deprecated, please use
+     * raw_content instead.
      * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1882,10 +1952,13 @@ public Builder setContent(java.lang.String value) { *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
+     * Note: This field is in the process of being deprecated, please use
+     * raw_content instead.
      * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearContent() { if (sourceCase_ == 6) { sourceCase_ = 0; @@ -1900,10 +1973,13 @@ public Builder clearContent() { *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
+     * Note: This field is in the process of being deprecated, please use
+     * raw_content instead.
      * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1915,6 +1991,60 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * The raw content of the document. This field is only permitted for
+     * EXTRACTIVE_QA and FAQ knowledge types.
+     * 
+ * + * bytes raw_content = 9; + */ + public com.google.protobuf.ByteString getRawContent() { + if (sourceCase_ == 9) { + return (com.google.protobuf.ByteString) source_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * + * + *
+     * The raw content of the document. This field is only permitted for
+     * EXTRACTIVE_QA and FAQ knowledge types.
+     * 
+ * + * bytes raw_content = 9; + */ + public Builder setRawContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 9; + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The raw content of the document. This field is only permitted for
+     * EXTRACTIVE_QA and FAQ knowledge types.
+     * 
+ * + * bytes raw_content = 9; + */ + public Builder clearRawContent() { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + @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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java index 7e54e22b427b..4eb08cfc3d07 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java @@ -175,10 +175,13 @@ public interface DocumentOrBuilder *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
+   * Note: This field is in the process of being deprecated, please use
+   * raw_content instead.
    * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated java.lang.String getContent(); /** * @@ -186,11 +189,26 @@ public interface DocumentOrBuilder *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
+   * Note: This field is in the process of being deprecated, please use
+   * raw_content instead.
    * 
* - * string content = 6; + * string content = 6 [deprecated = true]; */ + @java.lang.Deprecated com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
+   * The raw content of the document. This field is only permitted for
+   * EXTRACTIVE_QA and FAQ knowledge types.
+   * 
+ * + * bytes raw_content = 9; + */ + com.google.protobuf.ByteString getRawContent(); + public com.google.cloud.dialogflow.v2beta1.Document.SourceCase getSourceCase(); } diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java index 517db0b7810c..e92db97fbe66 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java @@ -36,10 +36,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_DeleteDocumentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -51,60 +59,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n.google/cloud/dialogflow/v2beta1/docume" + "nt.proto\022\037google.cloud.dialogflow.v2beta" - + "1\032\034google/api/annotations.proto\032#google/" - + "longrunning/operations.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\"\224\002\n\010Document\022\014\n\004name\030\001 \001(\t\022\024" - + "\n\014display_name\030\002 \001(\t\022\021\n\tmime_type\030\003 \001(\t\022" - + "P\n\017knowledge_types\030\004 \003(\01627.google.cloud." - + "dialogflow.v2beta1.Document.KnowledgeTyp" - + "e\022\025\n\013content_uri\030\005 \001(\tH\000\022\021\n\007content\030\006 \001(" - + "\tH\000\"K\n\rKnowledgeType\022\036\n\032KNOWLEDGE_TYPE_U" - + "NSPECIFIED\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002" - + "B\010\n\006source\"M\n\024ListDocumentsRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"n\n\025ListDocumentsResponse\022<\n\tdo" - + "cuments\030\001 \003(\0132).google.cloud.dialogflow." - + "v2beta1.Document\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\"\n\022GetDocumentRequest\022\014\n\004name\030\001 \001(\t\"d\n" - + "\025CreateDocumentRequest\022\016\n\006parent\030\001 \001(\t\022;" - + "\n\010document\030\002 \001(\0132).google.cloud.dialogfl" - + "ow.v2beta1.Document\"%\n\025DeleteDocumentReq" - + "uest\022\014\n\004name\030\001 \001(\t\"\262\001\n\032KnowledgeOperatio" - + "nMetadata\022P\n\005state\030\001 \001(\0162A.google.cloud." - + "dialogflow.v2beta1.KnowledgeOperationMet" - + "adata.State\"B\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\0032" - + "\361\007\n\tDocuments\022\201\002\n\rListDocuments\0225.google" - + ".cloud.dialogflow.v2beta1.ListDocumentsR" - + "equest\0326.google.cloud.dialogflow.v2beta1" - + ".ListDocumentsResponse\"\200\001\202\323\344\223\002z\0227/v2beta" - + "1/{parent=projects/*/knowledgeBases/*}/d" - + "ocumentsZ?\022=/v2beta1/{parent=projects/*/" - + "agent/knowledgeBases/*}/documents\022\360\001\n\013Ge" - + "tDocument\0223.google.cloud.dialogflow.v2be" - + "ta1.GetDocumentRequest\032).google.cloud.di" - + "alogflow.v2beta1.Document\"\200\001\202\323\344\223\002z\0227/v2b" - + "eta1/{name=projects/*/knowledgeBases/*/d" - + "ocuments/*}Z?\022=/v2beta1/{name=projects/*" - + "/agent/knowledgeBases/*/documents/*}\022\377\001\n" - + "\016CreateDocument\0226.google.cloud.dialogflo" - + "w.v2beta1.CreateDocumentRequest\032\035.google" - + ".longrunning.Operation\"\225\001\202\323\344\223\002\216\001\"7/v2bet" - + "a1/{parent=projects/*/knowledgeBases/*}/" - + "documents:\010documentZI\"=/v2beta1/{parent=" - + "projects/*/agent/knowledgeBases/*}/docum" - + "ents:\010document\022\352\001\n\016DeleteDocument\0226.goog" - + "le.cloud.dialogflow.v2beta1.DeleteDocume" - + "ntRequest\032\035.google.longrunning.Operation" - + "\"\200\001\202\323\344\223\002z*7/v2beta1/{name=projects/*/kno" - + "wledgeBases/*/documents/*}Z?*=/v2beta1/{" + + "1\032\034google/api/annotations.proto\032\031google/" + + "api/resource.proto\032#google/longrunning/o" + + "perations.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\027" + + "google/rpc/status.proto\"\257\002\n\010Document\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\021\n\tmime" + + "_type\030\003 \001(\t\022P\n\017knowledge_types\030\004 \003(\01627.g" + + "oogle.cloud.dialogflow.v2beta1.Document." + + "KnowledgeType\022\025\n\013content_uri\030\005 \001(\tH\000\022\025\n\007" + + "content\030\006 \001(\tB\002\030\001H\000\022\025\n\013raw_content\030\t \001(\014" + + "H\000\"K\n\rKnowledgeType\022\036\n\032KNOWLEDGE_TYPE_UN" + + "SPECIFIED\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002B" + + "\010\n\006source\"M\n\024ListDocumentsRequest\022\016\n\006par" + + "ent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"n\n\025ListDocumentsResponse\022<\n\tdoc" + + "uments\030\001 \003(\0132).google.cloud.dialogflow.v" + + "2beta1.Document\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\"\n\022GetDocumentRequest\022\014\n\004name\030\001 \001(\t\"d\n\025" + + "CreateDocumentRequest\022\016\n\006parent\030\001 \001(\t\022;\n" + + "\010document\030\002 \001(\0132).google.cloud.dialogflo" + + "w.v2beta1.Document\"%\n\025DeleteDocumentRequ" + + "est\022\014\n\004name\030\001 \001(\t\"\205\001\n\025UpdateDocumentRequ" + + "est\022;\n\010document\030\001 \001(\0132).google.cloud.dia" + + "logflow.v2beta1.Document\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"\262\001\n\032Kn" + + "owledgeOperationMetadata\022P\n\005state\030\001 \001(\0162" + + "A.google.cloud.dialogflow.v2beta1.Knowle" + + "dgeOperationMetadata.State\"B\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNI" + + "NG\020\002\022\010\n\004DONE\020\003\"%\n\025ReloadDocumentRequest\022" + + "\014\n\004name\030\001 \001(\t2\207\014\n\tDocuments\022\201\002\n\rListDocu" + + "ments\0225.google.cloud.dialogflow.v2beta1." + + "ListDocumentsRequest\0326.google.cloud.dial" + + "ogflow.v2beta1.ListDocumentsResponse\"\200\001\202" + + "\323\344\223\002z\0227/v2beta1/{parent=projects/*/knowl" + + "edgeBases/*}/documentsZ?\022=/v2beta1/{pare" + + "nt=projects/*/agent/knowledgeBases/*}/do" + + "cuments\022\360\001\n\013GetDocument\0223.google.cloud.d" + + "ialogflow.v2beta1.GetDocumentRequest\032).g" + + "oogle.cloud.dialogflow.v2beta1.Document\"" + + "\200\001\202\323\344\223\002z\0227/v2beta1/{name=projects/*/know" + + "ledgeBases/*/documents/*}Z?\022=/v2beta1/{n" + + "ame=projects/*/agent/knowledgeBases/*/do" + + "cuments/*}\022\377\001\n\016CreateDocument\0226.google.c" + + "loud.dialogflow.v2beta1.CreateDocumentRe" + + "quest\032\035.google.longrunning.Operation\"\225\001\202" + + "\323\344\223\002\216\001\"7/v2beta1/{parent=projects/*/know" + + "ledgeBases/*}/documents:\010documentZI\"=/v2" + + "beta1/{parent=projects/*/agent/knowledge" + + "Bases/*}/documents:\010document\022\352\001\n\016DeleteD" + + "ocument\0226.google.cloud.dialogflow.v2beta" + + "1.DeleteDocumentRequest\032\035.google.longrun" + + "ning.Operation\"\200\001\202\323\344\223\002z*7/v2beta1/{name=" + + "projects/*/knowledgeBases/*/documents/*}" + + "Z?*=/v2beta1/{name=projects/*/agent/know" + + "ledgeBases/*/documents/*}\022\221\002\n\016UpdateDocu" + + "ment\0226.google.cloud.dialogflow.v2beta1.U" + + "pdateDocumentRequest\032\035.google.longrunnin" + + "g.Operation\"\247\001\202\323\344\223\002\240\0012@/v2beta1/{documen" + + "t.name=projects/*/knowledgeBases/*/docum" + + "ents/*}:\010documentZR2F/v2beta1/{document." + "name=projects/*/agent/knowledgeBases/*/d" - + "ocuments/*}B\253\001\n#com.google.cloud.dialogf" - + "low.v2beta1B\rDocumentProtoP\001ZIgoogle.gol" - + "ang.org/genproto/googleapis/cloud/dialog" - + "flow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google" - + ".Cloud.Dialogflow.V2beta1b\006proto3" + + "ocuments/*}:\010document\022\377\001\n\016ReloadDocument" + + "\0226.google.cloud.dialogflow.v2beta1.Reloa" + + "dDocumentRequest\032\035.google.longrunning.Op" + + "eration\"\225\001\202\323\344\223\002\216\001\">/v2beta1/{name=projec" + + "ts/*/knowledgeBases/*/documents/*}:reloa" + + "d:\001*ZI\"D/v2beta1/{name=projects/*/agent/" + + "knowledgeBases/*/documents/*}:reload:\001*B" + + "\253\001\n#com.google.cloud.dialogflow.v2beta1B" + + "\rDocumentProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/dialogflow/v2beta1" + + ";dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialo" + + "gflow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -118,9 +146,11 @@ 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(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_cloud_dialogflow_v2beta1_Document_descriptor = @@ -135,6 +165,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "KnowledgeTypes", "ContentUri", "Content", + "RawContent", "Source", }); internal_static_google_cloud_dialogflow_v2beta1_ListDocumentsRequest_descriptor = @@ -177,23 +208,41 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", }); - internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_descriptor, + new java.lang.String[] { + "Document", "UpdateMask", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeOperationMetadata_descriptor, new java.lang.String[] { "State", }); + internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor, + new java.lang.String[] { + "Name", + }); 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.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java index c9cfaa58dfc2..53d9647643b9 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java @@ -425,12 +425,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; @@ -440,12 +442,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; @@ -456,8 +460,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; @@ -467,8 +474,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; @@ -478,8 +488,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; @@ -489,8 +502,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; @@ -501,7 +517,7 @@ public interface EntityOrBuilder * * *
-   * Optional. Represents an entity.
+   * An **entity entry** for an associated entity type.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.EntityType.Entity} @@ -606,12 +622,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; @@ -631,12 +649,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; @@ -659,8 +679,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; @@ -672,8 +695,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; @@ -685,8 +711,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; @@ -698,8 +727,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; @@ -889,7 +921,7 @@ protected Builder newBuilderForType( * * *
-     * Optional. Represents an entity.
+     * An **entity entry** for an associated entity type.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.EntityType.Entity} @@ -1074,12 +1106,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; @@ -1099,12 +1133,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; @@ -1124,12 +1160,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; @@ -1147,12 +1185,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; @@ -1167,12 +1207,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; @@ -1201,8 +1243,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; @@ -1214,8 +1259,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; @@ -1227,8 +1275,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; @@ -1240,8 +1291,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; @@ -1253,8 +1307,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; @@ -1272,8 +1329,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; @@ -1291,8 +1351,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; @@ -1307,8 +1370,11 @@ public Builder addAllSynonyms(java.lang.Iterable values) { * * *
-       * 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; @@ -1323,8 +1389,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; @@ -1399,10 +1468,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getDefaultInstanceF * * *
-   * 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.v2beta1.EntityTypes.UpdateEntityType] and
+   * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+   * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* * string name = 1; @@ -1422,10 +1491,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.v2beta1.EntityTypes.UpdateEntityType] and
+   * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+   * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* * string name = 1; @@ -1448,7 +1517,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. The name of the entity.
+   * Required. The name of the entity type.
    * 
* * string display_name = 2; @@ -1468,7 +1537,7 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The name of the entity.
+   * Required. The name of the entity type.
    * 
* * string display_name = 2; @@ -1560,7 +1629,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.AutoExpansionMode getAutoE * * *
-   * 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.v2beta1.EntityType.Entity entities = 6; @@ -1572,7 +1641,7 @@ public java.util.List get * * *
-   * 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.v2beta1.EntityType.Entity entities = 6; @@ -1585,7 +1654,7 @@ public java.util.List get * * *
-   * 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.v2beta1.EntityType.Entity entities = 6; @@ -1597,7 +1666,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.v2beta1.EntityType.Entity entities = 6; @@ -1609,7 +1678,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getEntities(int ind * * *
-   * 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.v2beta1.EntityType.Entity entities = 6; @@ -2054,10 +2123,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.v2beta1.EntityTypes.UpdateEntityType] and
+     * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+     * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* * string name = 1; @@ -2077,10 +2146,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.v2beta1.EntityTypes.UpdateEntityType] and
+     * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+     * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* * string name = 1; @@ -2100,10 +2169,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.v2beta1.EntityTypes.UpdateEntityType] and
+     * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+     * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* * string name = 1; @@ -2121,10 +2190,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.v2beta1.EntityTypes.UpdateEntityType] and
+     * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+     * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* * string name = 1; @@ -2139,10 +2208,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.v2beta1.EntityTypes.UpdateEntityType] and
+     * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods.
+     * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* * string name = 1; @@ -2163,7 +2232,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; @@ -2183,7 +2252,7 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The name of the entity.
+     * Required. The name of the entity type.
      * 
* * string display_name = 2; @@ -2203,7 +2272,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The name of the entity.
+     * Required. The name of the entity type.
      * 
* * string display_name = 2; @@ -2221,7 +2290,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; @@ -2236,7 +2305,7 @@ public Builder clearDisplayName() { * * *
-     * Required. The name of the entity.
+     * Required. The name of the entity type.
      * 
* * string display_name = 2; @@ -2442,7 +2511,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.v2beta1.EntityType.Entity entities = 6; @@ -2458,7 +2527,7 @@ public java.util.List get * * *
-     * 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.v2beta1.EntityType.Entity entities = 6; @@ -2474,7 +2543,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.v2beta1.EntityType.Entity entities = 6; @@ -2490,7 +2559,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity getEntities(int ind * * *
-     * 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.v2beta1.EntityType.Entity entities = 6; @@ -2513,7 +2582,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.v2beta1.EntityType.Entity entities = 6; @@ -2533,7 +2602,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.v2beta1.EntityType.Entity entities = 6; @@ -2555,7 +2624,7 @@ public Builder addEntities(com.google.cloud.dialogflow.v2beta1.EntityType.Entity * * *
-     * 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.v2beta1.EntityType.Entity entities = 6; @@ -2578,7 +2647,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.v2beta1.EntityType.Entity entities = 6; @@ -2598,7 +2667,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.v2beta1.EntityType.Entity entities = 6; @@ -2618,7 +2687,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.v2beta1.EntityType.Entity entities = 6; @@ -2639,7 +2708,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.v2beta1.EntityType.Entity entities = 6; @@ -2658,7 +2727,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.v2beta1.EntityType.Entity entities = 6; @@ -2677,7 +2746,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.v2beta1.EntityType.Entity entities = 6; @@ -2690,7 +2759,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder getEntities * * *
-     * 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.v2beta1.EntityType.Entity entities = 6; @@ -2707,7 +2776,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie * * *
-     * 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.v2beta1.EntityType.Entity entities = 6; @@ -2724,7 +2793,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie * * *
-     * 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.v2beta1.EntityType.Entity entities = 6; @@ -2737,7 +2806,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.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.v2beta1.EntityType.Entity entities = 6; @@ -2752,7 +2821,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.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.v2beta1.EntityType.Entity entities = 6; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java index ca91b8b8403b..ff05b49d3a15 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.EntityTypes.UpdateEntityType] and
+   * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.UpdateEntityType] and
+   * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.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; @@ -106,7 +106,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.v2beta1.EntityType.Entity entities = 6; @@ -116,7 +116,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.v2beta1.EntityType.Entity entities = 6; @@ -126,7 +126,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.v2beta1.EntityType.Entity entities = 6; @@ -136,7 +136,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.v2beta1.EntityType.Entity entities = 6; @@ -147,7 +147,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.v2beta1.EntityType.Entity entities = 6; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java index fcb2f661a31c..97df4c8a97a4 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java @@ -83,114 +83,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/dialogflow/v2beta1/entity" + "_type.proto\022\037google.cloud.dialogflow.v2b" - + "eta1\032\034google/api/annotations.proto\032#goog" - + "le/longrunning/operations.proto\032\033google/" - + "protobuf/empty.proto\032 google/protobuf/fi" - + "eld_mask.proto\032\034google/protobuf/struct.p" - + "roto\"\323\003\n\nEntityType\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" - + "play_name\030\002 \001(\t\022>\n\004kind\030\003 \001(\01620.google.c" - + "loud.dialogflow.v2beta1.EntityType.Kind\022" - + "Z\n\023auto_expansion_mode\030\004 \001(\0162=.google.cl" - + "oud.dialogflow.v2beta1.EntityType.AutoEx" - + "pansionMode\022D\n\010entities\030\006 \003(\01322.google.c" + + "eta1\032\034google/api/annotations.proto\032\031goog" + + "le/api/resource.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\"\323\003\n\nEnti" + + "tyType\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" + + "(\t\022>\n\004kind\030\003 \001(\01620.google.cloud.dialogfl" + + "ow.v2beta1.EntityType.Kind\022Z\n\023auto_expan" + + "sion_mode\030\004 \001(\0162=.google.cloud.dialogflo" + + "w.v2beta1.EntityType.AutoExpansionMode\022D" + + "\n\010entities\030\006 \003(\01322.google.cloud.dialogfl" + + "ow.v2beta1.EntityType.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_UNSPECIFIED\020\000\022\014\n\010KIND_MAP\020\001\022\r\n\tK" + + "IND_LIST\020\002\"Y\n\021AutoExpansionMode\022#\n\037AUTO_" + + "EXPANSION_MODE_UNSPECIFIED\020\000\022\037\n\033AUTO_EXP" + + "ANSION_MODE_DEFAULT\020\001\"f\n\026ListEntityTypes" + + "Request\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\"u\n\027ListEntityTypesResponse\022A\n\014enti" + + "ty_types\030\001 \003(\0132+.google.cloud.dialogflow" + + ".v2beta1.EntityType\022\027\n\017next_page_token\030\002" + + " \001(\t\";\n\024GetEntityTypeRequest\022\014\n\004name\030\001 \001" + + "(\t\022\025\n\rlanguage_code\030\002 \001(\t\"\202\001\n\027CreateEnti" + + "tyTypeRequest\022\016\n\006parent\030\001 \001(\t\022@\n\013entity_" + + "type\030\002 \001(\0132+.google.cloud.dialogflow.v2b" + + "eta1.EntityType\022\025\n\rlanguage_code\030\003 \001(\t\"\243" + + "\001\n\027UpdateEntityTypeRequest\022@\n\013entity_typ" + + "e\030\001 \001(\0132+.google.cloud.dialogflow.v2beta" + + "1.EntityType\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013u" + + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + + "Mask\"\'\n\027DeleteEntityTypeRequest\022\014\n\004name\030" + + "\001 \001(\t\"\203\002\n\035BatchUpdateEntityTypesRequest\022" + + "\016\n\006parent\030\001 \001(\t\022\037\n\025entity_type_batch_uri" + + "\030\002 \001(\tH\000\022T\n\030entity_type_batch_inline\030\003 \001" + + "(\01320.google.cloud.dialogflow.v2beta1.Ent" + + "ityTypeBatchH\000\022\025\n\rlanguage_code\030\004 \001(\t\022/\n" + + "\013update_mask\030\005 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\023\n\021entity_type_batch\"c\n\036BatchUpda" + + "teEntityTypesResponse\022A\n\014entity_types\030\001 " + + "\003(\0132+.google.cloud.dialogflow.v2beta1.En" + + "tityType\"J\n\035BatchDeleteEntityTypesReques" + + "t\022\016\n\006parent\030\001 \001(\t\022\031\n\021entity_type_names\030\002" + + " \003(\t\"\211\001\n\032BatchCreateEntitiesRequest\022\016\n\006p" + + "arent\030\001 \001(\t\022D\n\010entities\030\002 \003(\01322.google.c" + "loud.dialogflow.v2beta1.EntityType.Entit" - + "y\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\010KI" - + "ND_MAP\020\001\022\r\n\tKIND_LIST\020\002\"Y\n\021AutoExpansion" - + "Mode\022#\n\037AUTO_EXPANSION_MODE_UNSPECIFIED\020" - + "\000\022\037\n\033AUTO_EXPANSION_MODE_DEFAULT\020\001\"f\n\026Li" - + "stEntityTypesRequest\022\016\n\006parent\030\001 \001(\t\022\025\n\r" - + "language_code\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022" - + "\n\npage_token\030\004 \001(\t\"u\n\027ListEntityTypesRes" - + "ponse\022A\n\014entity_types\030\001 \003(\0132+.google.clo" - + "ud.dialogflow.v2beta1.EntityType\022\027\n\017next" - + "_page_token\030\002 \001(\t\";\n\024GetEntityTypeReques" - + "t\022\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"\202" - + "\001\n\027CreateEntityTypeRequest\022\016\n\006parent\030\001 \001" - + "(\t\022@\n\013entity_type\030\002 \001(\0132+.google.cloud.d" - + "ialogflow.v2beta1.EntityType\022\025\n\rlanguage" - + "_code\030\003 \001(\t\"\243\001\n\027UpdateEntityTypeRequest\022" - + "@\n\013entity_type\030\001 \001(\0132+.google.cloud.dial" - + "ogflow.v2beta1.EntityType\022\025\n\rlanguage_co" - + "de\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.p" - + "rotobuf.FieldMask\"\'\n\027DeleteEntityTypeReq" - + "uest\022\014\n\004name\030\001 \001(\t\"\203\002\n\035BatchUpdateEntity" - + "TypesRequest\022\016\n\006parent\030\001 \001(\t\022\037\n\025entity_t" - + "ype_batch_uri\030\002 \001(\tH\000\022T\n\030entity_type_bat" - + "ch_inline\030\003 \001(\01320.google.cloud.dialogflo" - + "w.v2beta1.EntityTypeBatchH\000\022\025\n\rlanguage_" - + "code\030\004 \001(\t\022/\n\013update_mask\030\005 \001(\0132\032.google" - + ".protobuf.FieldMaskB\023\n\021entity_type_batch" - + "\"c\n\036BatchUpdateEntityTypesResponse\022A\n\014en" - + "tity_types\030\001 \003(\0132+.google.cloud.dialogfl" - + "ow.v2beta1.EntityType\"J\n\035BatchDeleteEnti" - + "tyTypesRequest\022\016\n\006parent\030\001 \001(\t\022\031\n\021entity" - + "_type_names\030\002 \003(\t\"\211\001\n\032BatchCreateEntitie" - + "sRequest\022\016\n\006parent\030\001 \001(\t\022D\n\010entities\030\002 \003" - + "(\01322.google.cloud.dialogflow.v2beta1.Ent" - + "ityType.Entity\022\025\n\rlanguage_code\030\003 \001(\t\"\272\001" - + "\n\032BatchUpdateEntitiesRequest\022\016\n\006parent\030\001" - + " \001(\t\022D\n\010entities\030\002 \003(\01322.google.cloud.di" - + "alogflow.v2beta1.EntityType.Entity\022\025\n\rla" - + "nguage_code\030\003 \001(\t\022/\n\013update_mask\030\004 \001(\0132\032" - + ".google.protobuf.FieldMask\"Z\n\032BatchDelet" - + "eEntitiesRequest\022\016\n\006parent\030\001 \001(\t\022\025\n\renti" - + "ty_values\030\002 \003(\t\022\025\n\rlanguage_code\030\003 \001(\t\"T" - + "\n\017EntityTypeBatch\022A\n\014entity_types\030\001 \003(\0132" - + "+.google.cloud.dialogflow.v2beta1.Entity" - + "Type2\373\016\n\013EntityTypes\022\274\001\n\017ListEntityTypes" - + "\0227.google.cloud.dialogflow.v2beta1.ListE" - + "ntityTypesRequest\0328.google.cloud.dialogf" - + "low.v2beta1.ListEntityTypesResponse\"6\202\323\344" - + "\223\0020\022./v2beta1/{parent=projects/*/agent}/" - + "entityTypes\022\253\001\n\rGetEntityType\0225.google.c" - + "loud.dialogflow.v2beta1.GetEntityTypeReq" + + "y\022\025\n\rlanguage_code\030\003 \001(\t\"\272\001\n\032BatchUpdate" + + "EntitiesRequest\022\016\n\006parent\030\001 \001(\t\022D\n\010entit" + + "ies\030\002 \003(\01322.google.cloud.dialogflow.v2be" + + "ta1.EntityType.Entity\022\025\n\rlanguage_code\030\003" + + " \001(\t\022/\n\013update_mask\030\004 \001(\0132\032.google.proto" + + "buf.FieldMask\"Z\n\032BatchDeleteEntitiesRequ" + + "est\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\"T\n\017EntityTypeB" + + "atch\022A\n\014entity_types\030\001 \003(\0132+.google.clou" + + "d.dialogflow.v2beta1.EntityType2\373\016\n\013Enti" + + "tyTypes\022\274\001\n\017ListEntityTypes\0227.google.clo" + + "ud.dialogflow.v2beta1.ListEntityTypesReq" + + "uest\0328.google.cloud.dialogflow.v2beta1.L" + + "istEntityTypesResponse\"6\202\323\344\223\0020\022./v2beta1" + + "/{parent=projects/*/agent}/entityTypes\022\253" + + "\001\n\rGetEntityType\0225.google.cloud.dialogfl" + + "ow.v2beta1.GetEntityTypeRequest\032+.google" + + ".cloud.dialogflow.v2beta1.EntityType\"6\202\323" + + "\344\223\0020\022./v2beta1/{name=projects/*/agent/en" + + "tityTypes/*}\022\276\001\n\020CreateEntityType\0228.goog" + + "le.cloud.dialogflow.v2beta1.CreateEntity" + + "TypeRequest\032+.google.cloud.dialogflow.v2" + + "beta1.EntityType\"C\202\323\344\223\002=\"./v2beta1/{pare" + + "nt=projects/*/agent}/entityTypes:\013entity" + + "_type\022\312\001\n\020UpdateEntityType\0228.google.clou" + + "d.dialogflow.v2beta1.UpdateEntityTypeReq" + "uest\032+.google.cloud.dialogflow.v2beta1.E" - + "ntityType\"6\202\323\344\223\0020\022./v2beta1/{name=projec" - + "ts/*/agent/entityTypes/*}\022\276\001\n\020CreateEnti" - + "tyType\0228.google.cloud.dialogflow.v2beta1" - + ".CreateEntityTypeRequest\032+.google.cloud." - + "dialogflow.v2beta1.EntityType\"C\202\323\344\223\002=\"./" - + "v2beta1/{parent=projects/*/agent}/entity" - + "Types:\013entity_type\022\312\001\n\020UpdateEntityType\022" - + "8.google.cloud.dialogflow.v2beta1.Update" - + "EntityTypeRequest\032+.google.cloud.dialogf" - + "low.v2beta1.EntityType\"O\202\323\344\223\002I2:/v2beta1" - + "/{entity_type.name=projects/*/agent/enti" - + "tyTypes/*}:\013entity_type\022\234\001\n\020DeleteEntity" - + "Type\0228.google.cloud.dialogflow.v2beta1.D" - + "eleteEntityTypeRequest\032\026.google.protobuf" - + ".Empty\"6\202\323\344\223\0020*./v2beta1/{name=projects/" - + "*/agent/entityTypes/*}\022\276\001\n\026BatchUpdateEn" - + "tityTypes\022>.google.cloud.dialogflow.v2be" - + "ta1.BatchUpdateEntityTypesRequest\032\035.goog" - + "le.longrunning.Operation\"E\202\323\344\223\002?\":/v2bet" - + "a1/{parent=projects/*/agent}/entityTypes" - + ":batchUpdate:\001*\022\276\001\n\026BatchDeleteEntityTyp" - + "es\022>.google.cloud.dialogflow.v2beta1.Bat" - + "chDeleteEntityTypesRequest\032\035.google.long" - + "running.Operation\"E\202\323\344\223\002?\":/v2beta1/{par" - + "ent=projects/*/agent}/entityTypes:batchD" - + "elete:\001*\022\303\001\n\023BatchCreateEntities\022;.googl" - + "e.cloud.dialogflow.v2beta1.BatchCreateEn" - + "titiesRequest\032\035.google.longrunning.Opera" - + "tion\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects/" - + "*/agent/entityTypes/*}/entities:batchCre" - + "ate:\001*\022\303\001\n\023BatchUpdateEntities\022;.google." - + "cloud.dialogflow.v2beta1.BatchUpdateEnti" - + "tiesRequest\032\035.google.longrunning.Operati" - + "on\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects/*/" - + "agent/entityTypes/*}/entities:batchUpdat" - + "e:\001*\022\303\001\n\023BatchDeleteEntities\022;.google.cl" - + "oud.dialogflow.v2beta1.BatchDeleteEntiti" - + "esRequest\032\035.google.longrunning.Operation" - + "\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects/*/ag" - + "ent/entityTypes/*}/entities:batchDelete:" - + "\001*B\255\001\n#com.google.cloud.dialogflow.v2bet" - + "a1B\017EntityTypeProtoP\001ZIgoogle.golang.org" - + "/genproto/googleapis/cloud/dialogflow/v2" - + "beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud." - + "Dialogflow.V2beta1b\006proto3" + + "ntityType\"O\202\323\344\223\002I2:/v2beta1/{entity_type" + + ".name=projects/*/agent/entityTypes/*}:\013e" + + "ntity_type\022\234\001\n\020DeleteEntityType\0228.google" + + ".cloud.dialogflow.v2beta1.DeleteEntityTy" + + "peRequest\032\026.google.protobuf.Empty\"6\202\323\344\223\002" + + "0*./v2beta1/{name=projects/*/agent/entit" + + "yTypes/*}\022\276\001\n\026BatchUpdateEntityTypes\022>.g" + + "oogle.cloud.dialogflow.v2beta1.BatchUpda" + + "teEntityTypesRequest\032\035.google.longrunnin" + + "g.Operation\"E\202\323\344\223\002?\":/v2beta1/{parent=pr" + + "ojects/*/agent}/entityTypes:batchUpdate:" + + "\001*\022\276\001\n\026BatchDeleteEntityTypes\022>.google.c" + + "loud.dialogflow.v2beta1.BatchDeleteEntit" + + "yTypesRequest\032\035.google.longrunning.Opera" + + "tion\"E\202\323\344\223\002?\":/v2beta1/{parent=projects/" + + "*/agent}/entityTypes:batchDelete:\001*\022\303\001\n\023" + + "BatchCreateEntities\022;.google.cloud.dialo" + + "gflow.v2beta1.BatchCreateEntitiesRequest" + + "\032\035.google.longrunning.Operation\"P\202\323\344\223\002J\"" + + "E/v2beta1/{parent=projects/*/agent/entit" + + "yTypes/*}/entities:batchCreate:\001*\022\303\001\n\023Ba" + + "tchUpdateEntities\022;.google.cloud.dialogf" + + "low.v2beta1.BatchUpdateEntitiesRequest\032\035" + + ".google.longrunning.Operation\"P\202\323\344\223\002J\"E/" + + "v2beta1/{parent=projects/*/agent/entityT" + + "ypes/*}/entities:batchUpdate:\001*\022\303\001\n\023Batc" + + "hDeleteEntities\022;.google.cloud.dialogflo" + + "w.v2beta1.BatchDeleteEntitiesRequest\032\035.g" + + "oogle.longrunning.Operation\"P\202\323\344\223\002J\"E/v2" + + "beta1/{parent=projects/*/agent/entityTyp" + + "es/*}/entities:batchDelete:\001*B\255\001\n#com.go" + + "ogle.cloud.dialogflow.v2beta1B\017EntityTyp" + + "eProtoP\001ZIgoogle.golang.org/genproto/goo" + + "gleapis/cloud/dialogflow/v2beta1;dialogf" + + "low\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2" + + "beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -204,6 +205,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(), @@ -343,6 +345,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/EventInput.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java index a665f66d7445..7a1c3b4fc7db 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.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.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java index 8dc468497161..5805f92cf313 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java index 9d0c29772884..be0e7b0cd61e 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
+ * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ExportAgentRequest} @@ -369,8 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
+   * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ExportAgentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java index 657b81832610..83c7c5c055bd 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
+ * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ExportAgentResponse} @@ -411,8 +410,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
+   * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ExportAgentResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java index 036a3b0ed113..9a4eb390ed7c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
+ * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetAgentRequest} @@ -300,8 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
+   * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetAgentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java index 262dbf0172ab..7f6f320946cd 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext].
+ * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetContextRequest} @@ -309,8 +308,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext].
+   * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java index a20af390a631..f9dd1c7f9278 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument].
+ * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetDocumentRequest} @@ -303,8 +302,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument].
+   * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetDocumentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java index b65d5e19520b..1d6d3a8d3558 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType].
+ * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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; @@ -369,8 +370,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType].
+   * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetEntityTypeRequest} @@ -638,9 +638,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; @@ -662,9 +663,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; @@ -686,9 +688,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; @@ -708,9 +711,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; @@ -727,9 +731,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java index 98e4071ebe45..a34868f99219 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java index 87c85b58c693..7323a5ef852a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Intents.GetIntent][google.cloud.dialogflow.v2beta1.Intents.GetIntent].
+ * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2beta1.Intents.GetIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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.v2beta1.Intents.GetIntent].
+   * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2beta1.Intents.GetIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetIntentRequest} @@ -692,9 +692,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; @@ -716,9 +717,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; @@ -740,9 +742,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; @@ -762,9 +765,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; @@ -781,9 +785,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java index bcc2e0b07ea6..938d00c02778 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java index 778758608d4f..afd1d242186c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType].
+ * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest} @@ -309,8 +308,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType].
+   * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java index d1312d031be9..353aba951230 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
+ * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ImportAgentRequest} @@ -474,8 +473,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
+   * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ImportAgentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java index 56b1c8f2e9c3..55a9a07f01f8 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java @@ -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; @@ -112,14 +112,14 @@ private InputAudioConfig( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.SessionProto + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto .internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.SessionProto + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto .internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2beta1.InputAudioConfig.class, @@ -184,9 +184,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; @@ -208,9 +208,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; @@ -581,14 +581,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.InputAudioConfig) com.google.cloud.dialogflow.v2beta1.InputAudioConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.SessionProto + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto .internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.SessionProto + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto .internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2beta1.InputAudioConfig.class, @@ -627,7 +627,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.SessionProto + return com.google.cloud.dialogflow.v2beta1.AudioConfigProto .internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor; } @@ -908,9 +908,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; @@ -932,9 +932,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; @@ -956,9 +956,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; @@ -978,9 +978,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; @@ -997,9 +997,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; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java index dd9353e94c1d..a2a2c48b8644 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java @@ -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; @@ -50,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; @@ -64,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; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java index 2c53e0f4d2ec..aa42c7dfb9cb 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java @@ -463,7 +463,7 @@ public interface TrainingPhraseOrBuilder * * *
-     * Required. The unique identifier of this training phrase.
+     * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; @@ -473,7 +473,7 @@ public interface TrainingPhraseOrBuilder * * *
-     * Required. The unique identifier of this training phrase.
+     * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; @@ -505,9 +505,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -517,9 +528,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -529,9 +551,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -541,9 +574,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -555,9 +599,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -569,7 +624,7 @@ com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder getParts * * *
-     * 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.
      * 
@@ -582,7 +637,7 @@ com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.PartOrBuilder getParts * * *
-   * 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.v2beta1.Intent.TrainingPhrase} @@ -734,10 +789,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), ; @@ -769,9 +829,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; @@ -857,9 +921,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; @@ -869,9 +931,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; @@ -882,9 +942,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; @@ -894,9 +953,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; @@ -909,6 +967,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; @@ -920,6 +979,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; @@ -930,8 +990,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; @@ -1054,9 +1116,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; @@ -1076,9 +1136,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; @@ -1101,9 +1159,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; @@ -1123,9 +1180,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; @@ -1150,6 +1206,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; @@ -1171,6 +1228,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; @@ -1193,8 +1251,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; @@ -1587,9 +1647,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; @@ -1609,9 +1667,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; @@ -1631,9 +1687,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; @@ -1651,9 +1705,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; @@ -1668,9 +1720,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; @@ -1691,9 +1741,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; @@ -1713,9 +1762,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; @@ -1735,9 +1783,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; @@ -1755,9 +1802,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; @@ -1772,9 +1818,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; @@ -1797,6 +1842,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; @@ -1818,6 +1864,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; @@ -1839,6 +1886,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; @@ -1858,6 +1906,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; @@ -1874,6 +1923,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; @@ -1894,8 +1944,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; @@ -1907,8 +1959,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; @@ -1923,8 +1977,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; @@ -1998,7 +2054,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Required. The unique identifier of this training phrase.
+     * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; @@ -2018,7 +2074,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; @@ -2073,9 +2129,20 @@ public com.google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2088,9 +2155,20 @@ public com.google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2104,9 +2182,20 @@ public com.google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2118,9 +2207,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2132,9 +2232,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part getParts(i * * *
-     * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2150,7 +2261,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part getParts(i * * *
-     * 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.
      * 
@@ -2359,7 +2470,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.v2beta1.Intent.TrainingPhrase} @@ -2583,7 +2694,7 @@ public Builder mergeFrom( * * *
-       * Required. The unique identifier of this training phrase.
+       * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; @@ -2603,7 +2714,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; @@ -2623,7 +2734,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; @@ -2641,7 +2752,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; @@ -2656,7 +2767,7 @@ public Builder clearName() { * * *
-       * Required. The unique identifier of this training phrase.
+       * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; @@ -2772,9 +2883,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2792,9 +2914,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2811,9 +2944,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2830,9 +2974,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part getParts(i * * *
-       * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2856,9 +3011,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2880,9 +3046,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2906,9 +3083,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2932,9 +3120,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2955,9 +3154,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -2979,9 +3189,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3004,9 +3225,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3026,9 +3258,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3048,9 +3291,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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3064,9 +3318,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder ge * * *
-       * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3084,9 +3349,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder ge * * *
-       * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3105,9 +3381,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder ge * * *
-       * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3124,9 +3411,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder ge * * *
-       * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3144,9 +3442,20 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder ad * * *
-       * 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.v2beta1.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.v2beta1.Intent.TrainingPhrase.Part parts = 3; @@ -3179,7 +3488,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part.Builder ad * * *
-       * 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.
        * 
@@ -3193,7 +3502,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.
        * 
@@ -3210,7 +3519,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.
        * 
@@ -33133,7 +33442,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>`.
      * 
* @@ -33144,7 +33453,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>`.
      * 
* @@ -33299,7 +33608,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>`.
      * 
* @@ -33320,7 +33629,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>`.
      * 
* @@ -33786,7 +34095,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>`.
        * 
* @@ -33807,7 +34116,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>`.
        * 
* @@ -33828,7 +34137,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>`.
        * 
* @@ -33847,7 +34156,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>`.
        * 
* @@ -33863,7 +34172,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>`.
        * 
* @@ -33942,9 +34251,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Required for all methods except `create` (`create` populates the name
-   * automatically.
    * The unique identifier of this intent.
+   * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+   * methods.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* @@ -33965,9 +34274,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+   * methods.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* @@ -34034,7 +34343,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.v2beta1.Intent.WebhookState webhook_state = 6; @@ -34046,7 +34355,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.v2beta1.Intent.WebhookState webhook_state = 6; @@ -34067,7 +34376,9 @@ public com.google.cloud.dialogflow.v2beta1.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; @@ -34277,7 +34588,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.
    * 
* @@ -34292,7 +34603,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.
    * 
* @@ -34308,7 +34619,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.
    * 
* @@ -34322,7 +34633,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.
    * 
* @@ -34336,7 +34647,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getTrainingPhra * * *
-   * Optional. The collection of examples/templates that the agent is
+   * Optional. The collection of examples that the agent is
    * trained on.
    * 
* @@ -34734,8 +35045,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>`.
    * 
* @@ -34756,8 +35068,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>`.
    * 
* @@ -34781,8 +35094,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>`.
    * 
@@ -34804,8 +35119,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>`.
    * 
@@ -34831,8 +35148,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.
    * 
* * @@ -34847,8 +35164,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.
    * 
* * @@ -34864,8 +35181,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.
    * 
* * @@ -34879,8 +35196,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.
    * 
* * @@ -34895,8 +35212,8 @@ public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo getFollowup * * *
-   * 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.
    * 
* * @@ -35793,9 +36110,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+     * methods.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* @@ -35816,9 +36133,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+     * methods.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* @@ -35839,9 +36156,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+     * methods.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* @@ -35860,9 +36177,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+     * methods.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* @@ -35878,9 +36195,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
+     * methods.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* @@ -35996,7 +36313,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.v2beta1.Intent.WebhookState webhook_state = 6; @@ -36008,7 +36325,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.v2beta1.Intent.WebhookState webhook_state = 6; @@ -36022,7 +36339,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.v2beta1.Intent.WebhookState webhook_state = 6; @@ -36039,7 +36356,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent.WebhookState getWebhookState() * * *
-     * Required. Indicates whether webhooks are enabled for the intent.
+     * Optional. Indicates whether webhooks are enabled for the intent.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6; @@ -36057,7 +36374,7 @@ public Builder setWebhookState(com.google.cloud.dialogflow.v2beta1.Intent.Webhoo * * *
-     * Required. Indicates whether webhooks are enabled for the intent.
+     * Optional. Indicates whether webhooks are enabled for the intent.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent.WebhookState webhook_state = 6; @@ -36075,7 +36392,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; @@ -36088,7 +36407,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; @@ -36104,7 +36425,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; @@ -36684,7 +37007,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.
      * 
* @@ -36703,7 +37026,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.
      * 
* @@ -36721,7 +37044,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.
      * 
* @@ -36739,7 +37062,7 @@ public com.google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase getTrainingPhra * * *
-     * Optional. The collection of examples/templates that the agent is
+     * Optional. The collection of examples that the agent is
      * trained on.
      * 
* @@ -36764,7 +37087,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.
      * 
* @@ -36787,7 +37110,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.
      * 
* @@ -36812,7 +37135,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.
      * 
* @@ -36837,7 +37160,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.
      * 
* @@ -36859,7 +37182,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.
      * 
* @@ -36882,7 +37205,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.
      * 
* @@ -36905,7 +37228,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.
      * 
* @@ -36926,7 +37249,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.
      * 
* @@ -36947,7 +37270,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.
      * 
* @@ -36962,7 +37285,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.
      * 
* @@ -36981,7 +37304,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.
      * 
* @@ -37001,7 +37324,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.
      * 
* @@ -37018,7 +37341,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.
      * 
* @@ -37036,7 +37359,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.
      * 
* @@ -38611,8 +38934,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>`.
      * 
* @@ -38633,8 +38957,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>`.
      * 
* @@ -38655,8 +38980,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>`.
      * 
* @@ -38675,8 +39001,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>`.
      * 
* @@ -38692,8 +39019,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>`.
      * 
* @@ -38715,8 +39043,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>`.
      * 
@@ -38738,8 +39068,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>`.
      * 
@@ -38761,8 +39093,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>`.
      * 
@@ -38782,8 +39116,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>`.
      * 
@@ -38800,8 +39136,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>`.
      * 
@@ -38841,8 +39179,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.
      * 
* * @@ -38861,8 +39199,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.
      * 
* * @@ -38880,8 +39218,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.
      * 
* * @@ -38900,8 +39238,8 @@ public com.google.cloud.dialogflow.v2beta1.Intent.FollowupIntentInfo getFollowup * * *
-     * 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.
      * 
* * @@ -38926,8 +39264,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.
      * 
* * @@ -38950,8 +39288,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.
      * 
* * @@ -38976,8 +39314,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.
      * 
* * @@ -39002,8 +39340,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.
      * 
* * @@ -39025,8 +39363,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.
      * 
* * @@ -39049,8 +39387,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.
      * 
* * @@ -39073,8 +39411,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.
      * 
* * @@ -39095,8 +39433,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.
      * 
* * @@ -39117,8 +39455,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.
      * 
* * @@ -39133,8 +39471,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.
      * 
* * @@ -39153,8 +39491,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.
      * 
* * @@ -39174,8 +39512,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.
      * 
* * @@ -39192,8 +39530,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.
      * 
* * @@ -39211,8 +39549,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java index 39085f94fe32..81a51ae1cc8d 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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; @@ -251,7 +253,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.
    * 
* @@ -264,7 +266,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.
    * 
* @@ -276,7 +278,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.
    * 
* @@ -288,7 +290,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.
    * 
* @@ -301,7 +303,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.
    * 
* @@ -599,8 +601,9 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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>`.
    * 
* @@ -611,8 +614,9 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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>`.
    * 
* @@ -624,8 +628,10 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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>`.
    * 
@@ -637,8 +643,10 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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>`.
    * 
@@ -651,8 +659,8 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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.
    * 
* * @@ -665,8 +673,8 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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.
    * 
* * @@ -678,8 +686,8 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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.
    * 
* * @@ -691,8 +699,8 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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.
    * 
* * @@ -705,8 +713,8 @@ com.google.cloud.dialogflow.v2beta1.Intent.Message.Platform getDefaultResponsePl * * *
-   * 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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java index a132e00e1a45..1a63b65827bf 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java @@ -171,206 +171,208 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n,google/cloud/dialogflow/v2beta1/intent" + ".proto\022\037google.cloud.dialogflow.v2beta1\032" - + "\034google/api/annotations.proto\032-google/cl" - + "oud/dialogflow/v2beta1/context.proto\032#go" - + "ogle/longrunning/operations.proto\032\033googl" - + "e/protobuf/empty.proto\032 google/protobuf/" - + "field_mask.proto\032\034google/protobuf/struct" - + ".proto\"\262&\n\006Intent\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" - + "ay_name\030\002 \001(\t\022K\n\rwebhook_state\030\006 \001(\01624.g" - + "oogle.cloud.dialogflow.v2beta1.Intent.We" - + "bhookState\022\020\n\010priority\030\003 \001(\005\022\023\n\013is_fallb" - + "ack\030\004 \001(\010\022\026\n\nml_enabled\030\005 \001(\010B\002\030\001\022\023\n\013ml_" - + "disabled\030\023 \001(\010\022\027\n\017end_interaction\030\025 \001(\010\022" - + "\033\n\023input_context_names\030\007 \003(\t\022\016\n\006events\030\010" - + " \003(\t\022P\n\020training_phrases\030\t \003(\01326.google." - + "cloud.dialogflow.v2beta1.Intent.Training" - + "Phrase\022\016\n\006action\030\n \001(\t\022A\n\017output_context" - + "s\030\013 \003(\0132(.google.cloud.dialogflow.v2beta" - + "1.Context\022\026\n\016reset_contexts\030\014 \001(\010\022E\n\npar" - + "ameters\030\r \003(\01321.google.cloud.dialogflow." - + "v2beta1.Intent.Parameter\022A\n\010messages\030\016 \003" - + "(\0132/.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message\022\\\n\032default_response_platform" - + "s\030\017 \003(\01628.google.cloud.dialogflow.v2beta" - + "1.Intent.Message.Platform\022!\n\031root_follow" - + "up_intent_name\030\020 \001(\t\022#\n\033parent_followup_" - + "intent_name\030\021 \001(\t\022X\n\024followup_intent_inf" - + "o\030\022 \003(\0132:.google.cloud.dialogflow.v2beta" - + "1.Intent.FollowupIntentInfo\032\331\002\n\016Training" - + "Phrase\022\014\n\004name\030\001 \001(\t\022I\n\004type\030\002 \001(\0162;.goo" - + "gle.cloud.dialogflow.v2beta1.Intent.Trai" - + "ningPhrase.Type\022J\n\005parts\030\003 \003(\0132;.google." - + "cloud.dialogflow.v2beta1.Intent.Training" - + "Phrase.Part\022\031\n\021times_added_count\030\004 \001(\005\032N" - + "\n\004Part\022\014\n\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(" - + "\t\022\r\n\005alias\030\003 \001(\t\022\024\n\014user_defined\030\004 \001(\010\"7" - + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020" - + "\001\022\014\n\010TEMPLATE\020\002\032\254\001\n\tParameter\022\014\n\004name\030\001 " - + "\001(\t\022\024\n\014display_name\030\002 \001(\t\022\r\n\005value\030\003 \001(\t" - + "\022\025\n\rdefault_value\030\004 \001(\t\022 \n\030entity_type_d" - + "isplay_name\030\005 \001(\t\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007" - + "prompts\030\007 \003(\t\022\017\n\007is_list\030\010 \001(\010\032\373\031\n\007Messa" - + "ge\022D\n\004text\030\001 \001(\01324.google.cloud.dialogfl" - + "ow.v2beta1.Intent.Message.TextH\000\022F\n\005imag" - + "e\030\002 \001(\01325.google.cloud.dialogflow.v2beta" - + "1.Intent.Message.ImageH\000\022U\n\rquick_replie" - + "s\030\003 \001(\0132<.google.cloud.dialogflow.v2beta" - + "1.Intent.Message.QuickRepliesH\000\022D\n\004card\030" - + "\004 \001(\01324.google.cloud.dialogflow.v2beta1." - + "Intent.Message.CardH\000\022*\n\007payload\030\005 \001(\0132\027" - + ".google.protobuf.StructH\000\022[\n\020simple_resp" - + "onses\030\007 \001(\0132?.google.cloud.dialogflow.v2" - + "beta1.Intent.Message.SimpleResponsesH\000\022O" - + "\n\nbasic_card\030\010 \001(\01329.google.cloud.dialog" - + "flow.v2beta1.Intent.Message.BasicCardH\000\022" - + "R\n\013suggestions\030\t \001(\0132;.google.cloud.dial" - + "ogflow.v2beta1.Intent.Message.Suggestion" - + "sH\000\022`\n\023link_out_suggestion\030\n \001(\0132A.googl" + + "\034google/api/annotations.proto\032\031google/ap" + + "i/resource.proto\032-google/cloud/dialogflo" + + "w/v2beta1/context.proto\032#google/longrunn" + + "ing/operations.proto\032\036google/protobuf/du" + + "ration.proto\032\033google/protobuf/empty.prot" + + "o\032 google/protobuf/field_mask.proto\032\034goo" + + "gle/protobuf/struct.proto\"\266&\n\006Intent\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022K\n\rwebh" + + "ook_state\030\006 \001(\01624.google.cloud.dialogflo" + + "w.v2beta1.Intent.WebhookState\022\020\n\010priorit" + + "y\030\003 \001(\005\022\023\n\013is_fallback\030\004 \001(\010\022\026\n\nml_enabl" + + "ed\030\005 \001(\010B\002\030\001\022\023\n\013ml_disabled\030\023 \001(\010\022\027\n\017end" + + "_interaction\030\025 \001(\010\022\033\n\023input_context_name" + + "s\030\007 \003(\t\022\016\n\006events\030\010 \003(\t\022P\n\020training_phra" + + "ses\030\t \003(\01326.google.cloud.dialogflow.v2be" + + "ta1.Intent.TrainingPhrase\022\016\n\006action\030\n \001(" + + "\t\022A\n\017output_contexts\030\013 \003(\0132(.google.clou" + + "d.dialogflow.v2beta1.Context\022\026\n\016reset_co" + + "ntexts\030\014 \001(\010\022E\n\nparameters\030\r \003(\01321.googl" + + "e.cloud.dialogflow.v2beta1.Intent.Parame" + + "ter\022A\n\010messages\030\016 \003(\0132/.google.cloud.dia" + + "logflow.v2beta1.Intent.Message\022\\\n\032defaul" + + "t_response_platforms\030\017 \003(\01628.google.clou" + + "d.dialogflow.v2beta1.Intent.Message.Plat" + + "form\022!\n\031root_followup_intent_name\030\020 \001(\t\022" + + "#\n\033parent_followup_intent_name\030\021 \001(\t\022X\n\024" + + "followup_intent_info\030\022 \003(\0132:.google.clou" + + "d.dialogflow.v2beta1.Intent.FollowupInte" + + "ntInfo\032\335\002\n\016TrainingPhrase\022\014\n\004name\030\001 \001(\t\022" + + "I\n\004type\030\002 \001(\0162;.google.cloud.dialogflow." + + "v2beta1.Intent.TrainingPhrase.Type\022J\n\005pa" + + "rts\030\003 \003(\0132;.google.cloud.dialogflow.v2be" + + "ta1.Intent.TrainingPhrase.Part\022\031\n\021times_" + + "added_count\030\004 \001(\005\032N\n\004Part\022\014\n\004text\030\001 \001(\t\022" + + "\023\n\013entity_type\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t\022\024\n\014u" + + "ser_defined\030\004 \001(\010\";\n\004Type\022\024\n\020TYPE_UNSPEC" + + "IFIED\020\000\022\013\n\007EXAMPLE\020\001\022\020\n\010TEMPLATE\020\002\032\002\010\001\032\254" + + "\001\n\tParameter\022\014\n\004name\030\001 \001(\t\022\024\n\014display_na" + + "me\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\025\n\rdefault_value" + + "\030\004 \001(\t\022 \n\030entity_type_display_name\030\005 \001(\t" + + "\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007prompts\030\007 \003(\t\022\017\n\007" + + "is_list\030\010 \001(\010\032\373\031\n\007Message\022D\n\004text\030\001 \001(\0132" + + "4.google.cloud.dialogflow.v2beta1.Intent" + + ".Message.TextH\000\022F\n\005image\030\002 \001(\01325.google." + + "cloud.dialogflow.v2beta1.Intent.Message." + + "ImageH\000\022U\n\rquick_replies\030\003 \001(\0132<.google." + + "cloud.dialogflow.v2beta1.Intent.Message." + + "QuickRepliesH\000\022D\n\004card\030\004 \001(\01324.google.cl" + + "oud.dialogflow.v2beta1.Intent.Message.Ca" + + "rdH\000\022*\n\007payload\030\005 \001(\0132\027.google.protobuf." + + "StructH\000\022[\n\020simple_responses\030\007 \001(\0132?.goo" + + "gle.cloud.dialogflow.v2beta1.Intent.Mess" + + "age.SimpleResponsesH\000\022O\n\nbasic_card\030\010 \001(" + + "\01329.google.cloud.dialogflow.v2beta1.Inte" + + "nt.Message.BasicCardH\000\022R\n\013suggestions\030\t " + + "\001(\0132;.google.cloud.dialogflow.v2beta1.In" + + "tent.Message.SuggestionsH\000\022`\n\023link_out_s" + + "uggestion\030\n \001(\0132A.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.LinkOutSuggesti" + + "onH\000\022Q\n\013list_select\030\013 \001(\0132:.google.cloud" + + ".dialogflow.v2beta1.Intent.Message.ListS" + + "electH\000\022Y\n\017carousel_select\030\014 \001(\0132>.googl" + "e.cloud.dialogflow.v2beta1.Intent.Messag" - + "e.LinkOutSuggestionH\000\022Q\n\013list_select\030\013 \001" - + "(\0132:.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message.ListSelectH\000\022Y\n\017carousel_sel" - + "ect\030\014 \001(\0132>.google.cloud.dialogflow.v2be" - + "ta1.Intent.Message.CarouselSelectH\000\022b\n\024t" - + "elephony_play_audio\030\r \001(\0132B.google.cloud" + + "e.CarouselSelectH\000\022b\n\024telephony_play_aud" + + "io\030\r \001(\0132B.google.cloud.dialogflow.v2bet" + + "a1.Intent.Message.TelephonyPlayAudioH\000\022p" + + "\n\033telephony_synthesize_speech\030\016 \001(\0132I.go" + + "ogle.cloud.dialogflow.v2beta1.Intent.Mes" + + "sage.TelephonySynthesizeSpeechH\000\022h\n\027tele" + + "phony_transfer_call\030\017 \001(\0132E.google.cloud" + ".dialogflow.v2beta1.Intent.Message.Telep" - + "honyPlayAudioH\000\022p\n\033telephony_synthesize_" - + "speech\030\016 \001(\0132I.google.cloud.dialogflow.v" - + "2beta1.Intent.Message.TelephonySynthesiz" - + "eSpeechH\000\022h\n\027telephony_transfer_call\030\017 \001" - + "(\0132E.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message.TelephonyTransferCallH\000\022J\n\010p" - + "latform\030\006 \001(\01628.google.cloud.dialogflow." - + "v2beta1.Intent.Message.Platform\032\024\n\004Text\022" - + "\014\n\004text\030\001 \003(\t\0326\n\005Image\022\021\n\timage_uri\030\001 \001(" - + "\t\022\032\n\022accessibility_text\030\002 \001(\t\0324\n\014QuickRe" - + "plies\022\r\n\005title\030\001 \001(\t\022\025\n\rquick_replies\030\002 " - + "\003(\t\032\262\001\n\004Card\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030" - + "\002 \001(\t\022\021\n\timage_uri\030\003 \001(\t\022L\n\007buttons\030\004 \003(" - + "\0132;.google.cloud.dialogflow.v2beta1.Inte" - + "nt.Message.Card.Button\032(\n\006Button\022\014\n\004text" - + "\030\001 \001(\t\022\020\n\010postback\030\002 \001(\t\032L\n\016SimpleRespon" - + "se\022\026\n\016text_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t" - + "\022\024\n\014display_text\030\003 \001(\t\032k\n\017SimpleResponse" - + "s\022X\n\020simple_responses\030\001 \003(\0132>.google.clo" - + "ud.dialogflow.v2beta1.Intent.Message.Sim" - + "pleResponse\032\376\002\n\tBasicCard\022\r\n\005title\030\001 \001(\t" - + "\022\020\n\010subtitle\030\002 \001(\t\022\026\n\016formatted_text\030\003 \001" - + "(\t\022D\n\005image\030\004 \001(\01325.google.cloud.dialogf" - + "low.v2beta1.Intent.Message.Image\022Q\n\007butt" - + "ons\030\005 \003(\0132@.google.cloud.dialogflow.v2be" - + "ta1.Intent.Message.BasicCard.Button\032\236\001\n\006" - + "Button\022\r\n\005title\030\001 \001(\t\022g\n\017open_uri_action" - + "\030\002 \001(\0132N.google.cloud.dialogflow.v2beta1" - + ".Intent.Message.BasicCard.Button.OpenUri" - + "Action\032\034\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\n" - + "Suggestion\022\r\n\005title\030\001 \001(\t\032^\n\013Suggestions" - + "\022O\n\013suggestions\030\001 \003(\0132:.google.cloud.dia" - + "logflow.v2beta1.Intent.Message.Suggestio" - + "n\032:\n\021LinkOutSuggestion\022\030\n\020destination_na" - + "me\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\032\254\002\n\nListSelect\022\r\n\005" - + "title\030\001 \001(\t\022N\n\005items\030\002 \003(\0132?.google.clou" - + "d.dialogflow.v2beta1.Intent.Message.List" - + "Select.Item\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132>.goo" - + "gle.cloud.dialogflow.v2beta1.Intent.Mess" - + "age.SelectItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013des" - + "cription\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.google.c" - + "loud.dialogflow.v2beta1.Intent.Message.I" - + "mage\032\245\002\n\016CarouselSelect\022R\n\005items\030\001 \003(\0132C" - + ".google.cloud.dialogflow.v2beta1.Intent." - + "Message.CarouselSelect.Item\032\276\001\n\004Item\022L\n\004" - + "info\030\001 \001(\0132>.google.cloud.dialogflow.v2b" - + "eta1.Intent.Message.SelectItemInfo\022\r\n\005ti" - + "tle\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030" - + "\004 \001(\01325.google.cloud.dialogflow.v2beta1." - + "Intent.Message.Image\032/\n\016SelectItemInfo\022\013" - + "\n\003key\030\001 \001(\t\022\020\n\010synonyms\030\002 \003(\t\032\'\n\022Telepho" - + "nyPlayAudio\022\021\n\taudio_uri\030\001 \001(\t\032E\n\031Teleph" - + "onySynthesizeSpeech\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004s" - + "sml\030\002 \001(\tH\000B\010\n\006source\032-\n\025TelephonyTransf" - + "erCall\022\024\n\014phone_number\030\001 \001(\t\"\232\001\n\010Platfor" - + "m\022\030\n\024PLATFORM_UNSPECIFIED\020\000\022\014\n\010FACEBOOK\020" - + "\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005S" - + "KYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIBER\020\007\022\025\n\021ACTIONS_O" - + "N_GOOGLE\020\010\022\r\n\tTELEPHONY\020\nB\t\n\007message\032W\n\022" - + "FollowupIntentInfo\022\034\n\024followup_intent_na" - + "me\030\001 \001(\t\022#\n\033parent_followup_intent_name\030" - + "\002 \001(\t\"t\n\014WebhookState\022\035\n\031WEBHOOK_STATE_U" - + "NSPECIFIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLED\020\001\022" - + "*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLIN" - + "G\020\002\"\244\001\n\022ListIntentsRequest\022\016\n\006parent\030\001 \001" - + "(\t\022\025\n\rlanguage_code\030\002 \001(\t\022@\n\013intent_view" - + "\030\003 \001(\0162+.google.cloud.dialogflow.v2beta1" - + ".IntentView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_t" - + "oken\030\005 \001(\t\"h\n\023ListIntentsResponse\0228\n\007int" - + "ents\030\001 \003(\0132\'.google.cloud.dialogflow.v2b" - + "eta1.Intent\022\027\n\017next_page_token\030\002 \001(\t\"y\n\020" - + "GetIntentRequest\022\014\n\004name\030\001 \001(\t\022\025\n\rlangua" - + "ge_code\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\0162+.goo" - + "gle.cloud.dialogflow.v2beta1.IntentView\"" - + "\267\001\n\023CreateIntentRequest\022\016\n\006parent\030\001 \001(\t\022" - + "7\n\006intent\030\002 \001(\0132\'.google.cloud.dialogflo" - + "w.v2beta1.Intent\022\025\n\rlanguage_code\030\003 \001(\t\022" - + "@\n\013intent_view\030\004 \001(\0162+.google.cloud.dial" - + "ogflow.v2beta1.IntentView\"\330\001\n\023UpdateInte" - + "ntRequest\0227\n\006intent\030\001 \001(\0132\'.google.cloud" - + ".dialogflow.v2beta1.Intent\022\025\n\rlanguage_c" - + "ode\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google." - + "protobuf.FieldMask\022@\n\013intent_view\030\004 \001(\0162" - + "+.google.cloud.dialogflow.v2beta1.Intent" - + "View\"#\n\023DeleteIntentRequest\022\014\n\004name\030\001 \001(" - + "\t\"\256\002\n\031BatchUpdateIntentsRequest\022\016\n\006paren" - + "t\030\001 \001(\t\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023i" - + "ntent_batch_inline\030\003 \001(\0132,.google.cloud." - + "dialogflow.v2beta1.IntentBatchH\000\022\025\n\rlang" - + "uage_code\030\004 \001(\t\022/\n\013update_mask\030\005 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\022@\n\013intent_view\030" - + "\006 \001(\0162+.google.cloud.dialogflow.v2beta1." - + "IntentViewB\016\n\014intent_batch\"V\n\032BatchUpdat" - + "eIntentsResponse\0228\n\007intents\030\001 \003(\0132\'.goog" - + "le.cloud.dialogflow.v2beta1.Intent\"e\n\031Ba" - + "tchDeleteIntentsRequest\022\016\n\006parent\030\001 \001(\t\022" - + "8\n\007intents\030\002 \003(\0132\'.google.cloud.dialogfl" - + "ow.v2beta1.Intent\"G\n\013IntentBatch\0228\n\007inte" - + "nts\030\001 \003(\0132\'.google.cloud.dialogflow.v2be" - + "ta1.Intent*?\n\nIntentView\022\033\n\027INTENT_VIEW_" - + "UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\0012\262\t\n\007" - + "Intents\022\254\001\n\013ListIntents\0223.google.cloud.d" - + "ialogflow.v2beta1.ListIntentsRequest\0324.g" - + "oogle.cloud.dialogflow.v2beta1.ListInten" - + "tsResponse\"2\202\323\344\223\002,\022*/v2beta1/{parent=pro" - + "jects/*/agent}/intents\022\233\001\n\tGetIntent\0221.g" - + "oogle.cloud.dialogflow.v2beta1.GetIntent" - + "Request\032\'.google.cloud.dialogflow.v2beta" - + "1.Intent\"2\202\323\344\223\002,\022*/v2beta1/{name=project" - + "s/*/agent/intents/*}\022\251\001\n\014CreateIntent\0224." - + "google.cloud.dialogflow.v2beta1.CreateIn" - + "tentRequest\032\'.google.cloud.dialogflow.v2" - + "beta1.Intent\":\202\323\344\223\0024\"*/v2beta1/{parent=p" - + "rojects/*/agent}/intents:\006intent\022\260\001\n\014Upd" - + "ateIntent\0224.google.cloud.dialogflow.v2be" - + "ta1.UpdateIntentRequest\032\'.google.cloud.d" - + "ialogflow.v2beta1.Intent\"A\202\323\344\223\002;21/v2bet" - + "a1/{intent.name=projects/*/agent/intents" - + "/*}:\006intent\022\220\001\n\014DeleteIntent\0224.google.cl" - + "oud.dialogflow.v2beta1.DeleteIntentReque" - + "st\032\026.google.protobuf.Empty\"2\202\323\344\223\002,**/v2b" - + "eta1/{name=projects/*/agent/intents/*}\022\262" - + "\001\n\022BatchUpdateIntents\022:.google.cloud.dia" - + "logflow.v2beta1.BatchUpdateIntentsReques" - + "t\032\035.google.longrunning.Operation\"A\202\323\344\223\002;" - + "\"6/v2beta1/{parent=projects/*/agent}/int" - + "ents:batchUpdate:\001*\022\262\001\n\022BatchDeleteInten" - + "ts\022:.google.cloud.dialogflow.v2beta1.Bat" - + "chDeleteIntentsRequest\032\035.google.longrunn" - + "ing.Operation\"A\202\323\344\223\002;\"6/v2beta1/{parent=" - + "projects/*/agent}/intents:batchDelete:\001*" - + "B\251\001\n#com.google.cloud.dialogflow.v2beta1" - + "B\013IntentProtoP\001ZIgoogle.golang.org/genpr" - + "oto/googleapis/cloud/dialogflow/v2beta1;" - + "dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialog" - + "flow.V2beta1b\006proto3" + + "honyTransferCallH\000\022J\n\010platform\030\006 \001(\01628.g" + + "oogle.cloud.dialogflow.v2beta1.Intent.Me" + + "ssage.Platform\032\024\n\004Text\022\014\n\004text\030\001 \003(\t\0326\n\005" + + "Image\022\021\n\timage_uri\030\001 \001(\t\022\032\n\022accessibilit" + + "y_text\030\002 \001(\t\0324\n\014QuickReplies\022\r\n\005title\030\001 " + + "\001(\t\022\025\n\rquick_replies\030\002 \003(\t\032\262\001\n\004Card\022\r\n\005t" + + "itle\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\021\n\timage_ur" + + "i\030\003 \001(\t\022L\n\007buttons\030\004 \003(\0132;.google.cloud." + + "dialogflow.v2beta1.Intent.Message.Card.B" + + "utton\032(\n\006Button\022\014\n\004text\030\001 \001(\t\022\020\n\010postbac" + + "k\030\002 \001(\t\032L\n\016SimpleResponse\022\026\n\016text_to_spe" + + "ech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014display_text\030" + + "\003 \001(\t\032k\n\017SimpleResponses\022X\n\020simple_respo" + + "nses\030\001 \003(\0132>.google.cloud.dialogflow.v2b" + + "eta1.Intent.Message.SimpleResponse\032\376\002\n\tB" + + "asicCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(" + + "\t\022\026\n\016formatted_text\030\003 \001(\t\022D\n\005image\030\004 \001(\013" + + "25.google.cloud.dialogflow.v2beta1.Inten" + + "t.Message.Image\022Q\n\007buttons\030\005 \003(\0132@.googl" + + "e.cloud.dialogflow.v2beta1.Intent.Messag" + + "e.BasicCard.Button\032\236\001\n\006Button\022\r\n\005title\030\001" + + " \001(\t\022g\n\017open_uri_action\030\002 \001(\0132N.google.c" + + "loud.dialogflow.v2beta1.Intent.Message.B" + + "asicCard.Button.OpenUriAction\032\034\n\rOpenUri" + + "Action\022\013\n\003uri\030\001 \001(\t\032\033\n\nSuggestion\022\r\n\005tit" + + "le\030\001 \001(\t\032^\n\013Suggestions\022O\n\013suggestions\030\001" + + " \003(\0132:.google.cloud.dialogflow.v2beta1.I" + + "ntent.Message.Suggestion\032:\n\021LinkOutSugge" + + "stion\022\030\n\020destination_name\030\001 \001(\t\022\013\n\003uri\030\002" + + " \001(\t\032\254\002\n\nListSelect\022\r\n\005title\030\001 \001(\t\022N\n\005it" + + "ems\030\002 \003(\0132?.google.cloud.dialogflow.v2be" + + "ta1.Intent.Message.ListSelect.Item\032\276\001\n\004I" + + "tem\022L\n\004info\030\001 \001(\0132>.google.cloud.dialogf" + + "low.v2beta1.Intent.Message.SelectItemInf" + + "o\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022D\n" + + "\005image\030\004 \001(\01325.google.cloud.dialogflow.v" + + "2beta1.Intent.Message.Image\032\245\002\n\016Carousel" + + "Select\022R\n\005items\030\001 \003(\0132C.google.cloud.dia" + + "logflow.v2beta1.Intent.Message.CarouselS" + + "elect.Item\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132>.goog" + + "le.cloud.dialogflow.v2beta1.Intent.Messa" + + "ge.SelectItemInfo\022\r\n\005title\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.google.cl" + + "oud.dialogflow.v2beta1.Intent.Message.Im" + + "age\032/\n\016SelectItemInfo\022\013\n\003key\030\001 \001(\t\022\020\n\010sy" + + "nonyms\030\002 \003(\t\032\'\n\022TelephonyPlayAudio\022\021\n\tau" + + "dio_uri\030\001 \001(\t\032E\n\031TelephonySynthesizeSpee" + + "ch\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\010\n\006so" + + "urce\032-\n\025TelephonyTransferCall\022\024\n\014phone_n" + + "umber\030\001 \001(\t\"\232\001\n\010Platform\022\030\n\024PLATFORM_UNS" + + "PECIFIED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010T" + + "ELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022" + + "\t\n\005VIBER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\r\n\tTEL" + + "EPHONY\020\nB\t\n\007message\032W\n\022FollowupIntentInf" + + "o\022\034\n\024followup_intent_name\030\001 \001(\t\022#\n\033paren" + + "t_followup_intent_name\030\002 \001(\t\"t\n\014WebhookS" + + "tate\022\035\n\031WEBHOOK_STATE_UNSPECIFIED\020\000\022\031\n\025W" + + "EBHOOK_STATE_ENABLED\020\001\022*\n&WEBHOOK_STATE_" + + "ENABLED_FOR_SLOT_FILLING\020\002\"\244\001\n\022ListInten" + + "tsRequest\022\016\n\006parent\030\001 \001(\t\022\025\n\rlanguage_co" + + "de\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\0162+.google.c" + + "loud.dialogflow.v2beta1.IntentView\022\021\n\tpa" + + "ge_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"h\n\023Lis" + + "tIntentsResponse\0228\n\007intents\030\001 \003(\0132\'.goog" + + "le.cloud.dialogflow.v2beta1.Intent\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"y\n\020GetIntentRequest\022" + + "\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022@\n\013" + + "intent_view\030\003 \001(\0162+.google.cloud.dialogf" + + "low.v2beta1.IntentView\"\267\001\n\023CreateIntentR" + + "equest\022\016\n\006parent\030\001 \001(\t\0227\n\006intent\030\002 \001(\0132\'" + + ".google.cloud.dialogflow.v2beta1.Intent\022" + + "\025\n\rlanguage_code\030\003 \001(\t\022@\n\013intent_view\030\004 " + + "\001(\0162+.google.cloud.dialogflow.v2beta1.In" + + "tentView\"\330\001\n\023UpdateIntentRequest\0227\n\006inte" + + "nt\030\001 \001(\0132\'.google.cloud.dialogflow.v2bet" + + "a1.Intent\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013upda" + + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" + + "k\022@\n\013intent_view\030\004 \001(\0162+.google.cloud.di" + + "alogflow.v2beta1.IntentView\"#\n\023DeleteInt" + + "entRequest\022\014\n\004name\030\001 \001(\t\"\256\002\n\031BatchUpdate" + + "IntentsRequest\022\016\n\006parent\030\001 \001(\t\022\032\n\020intent" + + "_batch_uri\030\002 \001(\tH\000\022K\n\023intent_batch_inlin" + + "e\030\003 \001(\0132,.google.cloud.dialogflow.v2beta" + + "1.IntentBatchH\000\022\025\n\rlanguage_code\030\004 \001(\t\022/" + + "\n\013update_mask\030\005 \001(\0132\032.google.protobuf.Fi" + + "eldMask\022@\n\013intent_view\030\006 \001(\0162+.google.cl" + + "oud.dialogflow.v2beta1.IntentViewB\016\n\014int" + + "ent_batch\"V\n\032BatchUpdateIntentsResponse\022" + + "8\n\007intents\030\001 \003(\0132\'.google.cloud.dialogfl" + + "ow.v2beta1.Intent\"e\n\031BatchDeleteIntentsR" + + "equest\022\016\n\006parent\030\001 \001(\t\0228\n\007intents\030\002 \003(\0132" + + "\'.google.cloud.dialogflow.v2beta1.Intent" + + "\"G\n\013IntentBatch\0228\n\007intents\030\001 \003(\0132\'.googl" + + "e.cloud.dialogflow.v2beta1.Intent*?\n\nInt" + + "entView\022\033\n\027INTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020" + + "INTENT_VIEW_FULL\020\0012\262\t\n\007Intents\022\254\001\n\013ListI" + + "ntents\0223.google.cloud.dialogflow.v2beta1" + + ".ListIntentsRequest\0324.google.cloud.dialo" + + "gflow.v2beta1.ListIntentsResponse\"2\202\323\344\223\002" + + ",\022*/v2beta1/{parent=projects/*/agent}/in" + + "tents\022\233\001\n\tGetIntent\0221.google.cloud.dialo" + + "gflow.v2beta1.GetIntentRequest\032\'.google." + + "cloud.dialogflow.v2beta1.Intent\"2\202\323\344\223\002,\022" + + "*/v2beta1/{name=projects/*/agent/intents" + + "/*}\022\251\001\n\014CreateIntent\0224.google.cloud.dial" + + "ogflow.v2beta1.CreateIntentRequest\032\'.goo" + + "gle.cloud.dialogflow.v2beta1.Intent\":\202\323\344" + + "\223\0024\"*/v2beta1/{parent=projects/*/agent}/" + + "intents:\006intent\022\260\001\n\014UpdateIntent\0224.googl" + + "e.cloud.dialogflow.v2beta1.UpdateIntentR" + + "equest\032\'.google.cloud.dialogflow.v2beta1" + + ".Intent\"A\202\323\344\223\002;21/v2beta1/{intent.name=p" + + "rojects/*/agent/intents/*}:\006intent\022\220\001\n\014D" + + "eleteIntent\0224.google.cloud.dialogflow.v2" + + "beta1.DeleteIntentRequest\032\026.google.proto" + + "buf.Empty\"2\202\323\344\223\002,**/v2beta1/{name=projec" + + "ts/*/agent/intents/*}\022\262\001\n\022BatchUpdateInt" + + "ents\022:.google.cloud.dialogflow.v2beta1.B" + + "atchUpdateIntentsRequest\032\035.google.longru" + + "nning.Operation\"A\202\323\344\223\002;\"6/v2beta1/{paren" + + "t=projects/*/agent}/intents:batchUpdate:" + + "\001*\022\262\001\n\022BatchDeleteIntents\022:.google.cloud" + + ".dialogflow.v2beta1.BatchDeleteIntentsRe" + + "quest\032\035.google.longrunning.Operation\"A\202\323" + + "\344\223\002;\"6/v2beta1/{parent=projects/*/agent}" + + "/intents:batchDelete:\001*B\251\001\n#com.google.c" + + "loud.dialogflow.v2beta1B\013IntentProtoP\001ZI" + + "google.golang.org/genproto/googleapis/cl" + + "oud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002D" + + "F\252\002\037Google.Cloud.Dialogflow.V2beta1b\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -384,8 +386,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.v2beta1.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(), @@ -784,8 +788,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.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java index d29a9e4bb054..a44822d7d313 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java @@ -220,11 +220,11 @@ public interface AnswerOrBuilder * *
      * The system's confidence score that this Knowledge answer is a good match
-     * for this converstational query, range from 0.0 (completely uncertain)
-     * to 1.0 (completely certain).
+     * for this conversational query.
+     * The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
      * Note: The confidence score is likely to vary somewhat (possibly even for
      * identical requests), as the underlying model is under constant
-     * improvement, we may deprecate it in the future. We recommend using
+     * improvement. It may be deprecated in the future. We recommend using
      * `match_confidence_level` which should be generally more stable.
      * 
* @@ -718,11 +718,11 @@ public int getMatchConfidenceLevelValue() { * *
      * The system's confidence score that this Knowledge answer is a good match
-     * for this converstational query, range from 0.0 (completely uncertain)
-     * to 1.0 (completely certain).
+     * for this conversational query.
+     * The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
      * Note: The confidence score is likely to vary somewhat (possibly even for
      * identical requests), as the underlying model is under constant
-     * improvement, we may deprecate it in the future. We recommend using
+     * improvement. It may be deprecated in the future. We recommend using
      * `match_confidence_level` which should be generally more stable.
      * 
* @@ -1557,11 +1557,11 @@ public Builder clearMatchConfidenceLevel() { * *
        * The system's confidence score that this Knowledge answer is a good match
-       * for this converstational query, range from 0.0 (completely uncertain)
-       * to 1.0 (completely certain).
+       * for this conversational query.
+       * The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
        * Note: The confidence score is likely to vary somewhat (possibly even for
        * identical requests), as the underlying model is under constant
-       * improvement, we may deprecate it in the future. We recommend using
+       * improvement. It may be deprecated in the future. We recommend using
        * `match_confidence_level` which should be generally more stable.
        * 
* @@ -1575,11 +1575,11 @@ public float getMatchConfidence() { * *
        * The system's confidence score that this Knowledge answer is a good match
-       * for this converstational query, range from 0.0 (completely uncertain)
-       * to 1.0 (completely certain).
+       * for this conversational query.
+       * The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
        * Note: The confidence score is likely to vary somewhat (possibly even for
        * identical requests), as the underlying model is under constant
-       * improvement, we may deprecate it in the future. We recommend using
+       * improvement. It may be deprecated in the future. We recommend using
        * `match_confidence_level` which should be generally more stable.
        * 
* @@ -1596,11 +1596,11 @@ public Builder setMatchConfidence(float value) { * *
        * The system's confidence score that this Knowledge answer is a good match
-       * for this converstational query, range from 0.0 (completely uncertain)
-       * to 1.0 (completely certain).
+       * for this conversational query.
+       * The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
        * Note: The confidence score is likely to vary somewhat (possibly even for
        * identical requests), as the underlying model is under constant
-       * improvement, we may deprecate it in the future. We recommend using
+       * improvement. It may be deprecated in the future. We recommend using
        * `match_confidence_level` which should be generally more stable.
        * 
* diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java index 9cb18209a4a6..5ff82402ead7 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java @@ -8,6 +8,8 @@ * *
  * Represents knowledge base resource.
+ * Note: resource `projects.agent.knowledgeBases` is deprecated, please use
+ * `projects.knowledgeBases` instead.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeBase} @@ -364,6 +366,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents knowledge base resource.
+   * Note: resource `projects.agent.knowledgeBases` is deprecated, please use
+   * `projects.knowledgeBases` instead.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeBase} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java index 34030b0e6a42..cc39aae72e23 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_DeleteKnowledgeBaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -47,50 +51,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/cloud/dialogflow/v2beta1/knowle" + "dge_base.proto\022\037google.cloud.dialogflow." - + "v2beta1\032\034google/api/annotations.proto\032\033g" - + "oogle/protobuf/empty.proto\032 google/proto" - + "buf/field_mask.proto\"3\n\rKnowledgeBase\022\014\n" - + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\"R\n\031Lis" - + "tKnowledgeBasesRequest\022\016\n\006parent\030\001 \001(\t\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n" - + "\032ListKnowledgeBasesResponse\022G\n\017knowledge" - + "_bases\030\001 \003(\0132..google.cloud.dialogflow.v" - + "2beta1.KnowledgeBase\022\027\n\017next_page_token\030" - + "\002 \001(\t\"\'\n\027GetKnowledgeBaseRequest\022\014\n\004name" - + "\030\001 \001(\t\"t\n\032CreateKnowledgeBaseRequest\022\016\n\006" - + "parent\030\001 \001(\t\022F\n\016knowledge_base\030\002 \001(\0132..g" - + "oogle.cloud.dialogflow.v2beta1.Knowledge" - + "Base\"9\n\032DeleteKnowledgeBaseRequest\022\014\n\004na" - + "me\030\001 \001(\t\022\r\n\005force\030\002 \001(\0102\333\007\n\016KnowledgeBas" - + "es\022\367\001\n\022ListKnowledgeBases\022:.google.cloud" - + ".dialogflow.v2beta1.ListKnowledgeBasesRe" - + "quest\032;.google.cloud.dialogflow.v2beta1." - + "ListKnowledgeBasesResponse\"h\202\323\344\223\002b\022+/v2b" - + "eta1/{parent=projects/*}/knowledgeBasesZ" - + "3\0221/v2beta1/{parent=projects/*/agent}/kn" - + "owledgeBases\022\346\001\n\020GetKnowledgeBase\0228.goog" - + "le.cloud.dialogflow.v2beta1.GetKnowledge" - + "BaseRequest\032..google.cloud.dialogflow.v2" - + "beta1.KnowledgeBase\"h\202\323\344\223\002b\022+/v2beta1/{n" - + "ame=projects/*/knowledgeBases/*}Z3\0221/v2b" - + "eta1/{name=projects/*/agent/knowledgeBas" - + "es/*}\022\216\002\n\023CreateKnowledgeBase\022;.google.c" - + "loud.dialogflow.v2beta1.CreateKnowledgeB" - + "aseRequest\032..google.cloud.dialogflow.v2b" - + "eta1.KnowledgeBase\"\211\001\202\323\344\223\002\202\001\"+/v2beta1/{" - + "parent=projects/*}/knowledgeBases:\016knowl" - + "edge_baseZC\"1/v2beta1/{parent=projects/*" - + "/agent}/knowledgeBases:\016knowledge_base\022\324" - + "\001\n\023DeleteKnowledgeBase\022;.google.cloud.di" - + "alogflow.v2beta1.DeleteKnowledgeBaseRequ" - + "est\032\026.google.protobuf.Empty\"h\202\323\344\223\002b*+/v2" - + "beta1/{name=projects/*/knowledgeBases/*}" - + "Z3*1/v2beta1/{name=projects/*/agent/know" - + "ledgeBases/*}B\260\001\n#com.google.cloud.dialo" - + "gflow.v2beta1B\022KnowledgeBaseProtoP\001ZIgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002" - + "\037Google.Cloud.Dialogflow.V2beta1b\006proto3" + + "v2beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\"3\n\rKnowledgeBase\022\014\n\004name\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\"R\n\031ListKnowledgeBas" + + "esRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\032ListKnowledg" + + "eBasesResponse\022G\n\017knowledge_bases\030\001 \003(\0132" + + "..google.cloud.dialogflow.v2beta1.Knowle" + + "dgeBase\022\027\n\017next_page_token\030\002 \001(\t\"\'\n\027GetK" + + "nowledgeBaseRequest\022\014\n\004name\030\001 \001(\t\"t\n\032Cre" + + "ateKnowledgeBaseRequest\022\016\n\006parent\030\001 \001(\t\022" + + "F\n\016knowledge_base\030\002 \001(\0132..google.cloud.d" + + "ialogflow.v2beta1.KnowledgeBase\"9\n\032Delet" + + "eKnowledgeBaseRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005f" + + "orce\030\002 \001(\010\"\225\001\n\032UpdateKnowledgeBaseReques" + + "t\022F\n\016knowledge_base\030\001 \001(\0132..google.cloud" + + ".dialogflow.v2beta1.KnowledgeBase\022/\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk2\212\n\n\016KnowledgeBases\022\367\001\n\022ListKnowledgeB" + + "ases\022:.google.cloud.dialogflow.v2beta1.L" + + "istKnowledgeBasesRequest\032;.google.cloud." + + "dialogflow.v2beta1.ListKnowledgeBasesRes" + + "ponse\"h\202\323\344\223\002b\022+/v2beta1/{parent=projects" + + "/*}/knowledgeBasesZ3\0221/v2beta1/{parent=p" + + "rojects/*/agent}/knowledgeBases\022\346\001\n\020GetK" + + "nowledgeBase\0228.google.cloud.dialogflow.v" + + "2beta1.GetKnowledgeBaseRequest\032..google." + + "cloud.dialogflow.v2beta1.KnowledgeBase\"h" + + "\202\323\344\223\002b\022+/v2beta1/{name=projects/*/knowle" + + "dgeBases/*}Z3\0221/v2beta1/{name=projects/*" + + "/agent/knowledgeBases/*}\022\216\002\n\023CreateKnowl" + + "edgeBase\022;.google.cloud.dialogflow.v2bet" + + "a1.CreateKnowledgeBaseRequest\032..google.c" + + "loud.dialogflow.v2beta1.KnowledgeBase\"\211\001" + + "\202\323\344\223\002\202\001\"+/v2beta1/{parent=projects/*}/kn" + + "owledgeBases:\016knowledge_baseZC\"1/v2beta1" + + "/{parent=projects/*/agent}/knowledgeBase" + + "s:\016knowledge_base\022\324\001\n\023DeleteKnowledgeBas" + + "e\022;.google.cloud.dialogflow.v2beta1.Dele" + + "teKnowledgeBaseRequest\032\026.google.protobuf" + + ".Empty\"h\202\323\344\223\002b*+/v2beta1/{name=projects/" + + "*/knowledgeBases/*}Z3*1/v2beta1/{name=pr" + + "ojects/*/agent/knowledgeBases/*}\022\254\002\n\023Upd" + + "ateKnowledgeBase\022;.google.cloud.dialogfl" + + "ow.v2beta1.UpdateKnowledgeBaseRequest\032.." + + "google.cloud.dialogflow.v2beta1.Knowledg" + + "eBase\"\247\001\202\323\344\223\002\240\0012:/v2beta1/{knowledge_bas" + + "e.name=projects/*/knowledgeBases/*}:\016kno" + + "wledge_baseZR2@/v2beta1/{knowledge_base." + + "name=projects/*/agent/knowledgeBases/*}:" + + "\016knowledge_baseB\260\001\n#com.google.cloud.dia" + + "logflow.v2beta1B\022KnowledgeBaseProtoP\001ZIg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF" + + "\252\002\037Google.Cloud.Dialogflow.V2beta1b\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -104,6 +121,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(), }, @@ -156,12 +174,21 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", "Force", }); + internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_descriptor, + new java.lang.String[] { + "KnowledgeBase", "UpdateMask", + }); 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.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/ListContextsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java index 569a90f57adb..ec4d3ca3ccb9 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
+ * The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListContextsRequest} @@ -399,8 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
+   * The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListContextsRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java index 7814101ad831..7bc11488ec9c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
+ * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListContextsResponse} @@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
+   * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListContextsResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java index 0654d5782058..393932012313 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
+ * Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsRequest} @@ -391,8 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
+   * Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java index 21d97508711b..84f57df3d0b4 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java @@ -7,8 +7,7 @@ * * *
- * Response message for
- * [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
+ * Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsResponse} @@ -393,8 +392,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for
-   * [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
+   * Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListDocumentsResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java index 602fa97eab63..11195b6c5b59 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
+ * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.ListEntityTypes].
+   * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java index d9496be46a4c..5887fc28f01b 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java index df91df8b720f..cab2db9d7744 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
+ * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListEntityTypesResponse} @@ -399,8 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
+   * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListEntityTypesResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java index 52cc2691048c..8cf7c79b3237 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
+ * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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; @@ -508,8 +509,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
+   * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListIntentsRequest} @@ -796,9 +796,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; @@ -820,9 +821,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; @@ -844,9 +846,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; @@ -866,9 +869,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; @@ -885,9 +889,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java index 84a88d71053c..b3e17168cc8e 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java index 75b39f77482c..531786b519c6 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
+ * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListIntentsResponse} @@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
+   * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListIntentsResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java index dd422ebbff88..bae7e5bcaf2a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
+ * Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest} @@ -111,8 +110,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The agent to list of knowledge bases for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to list of knowledge bases for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; @@ -132,8 +131,8 @@ public java.lang.String getParent() { * * *
-   * Required. The agent to list of knowledge bases for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to list of knowledge bases for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; @@ -391,8 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
+   * Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest} @@ -568,8 +566,8 @@ public Builder mergeFrom( * * *
-     * Required. The agent to list of knowledge bases for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to list of knowledge bases for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -589,8 +587,8 @@ public java.lang.String getParent() { * * *
-     * Required. The agent to list of knowledge bases for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to list of knowledge bases for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -610,8 +608,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The agent to list of knowledge bases for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to list of knowledge bases for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -629,8 +627,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The agent to list of knowledge bases for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to list of knowledge bases for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; @@ -645,8 +643,8 @@ public Builder clearParent() { * * *
-     * Required. The agent to list of knowledge bases for.
-     * Format: `projects/<Project ID>/agent`.
+     * Required. The project to list of knowledge bases for.
+     * Format: `projects/<Project ID>`.
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java index f521598d6f26..39eab11cadb6 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java @@ -12,8 +12,8 @@ public interface ListKnowledgeBasesRequestOrBuilder * * *
-   * Required. The agent to list of knowledge bases for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to list of knowledge bases for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; @@ -23,8 +23,8 @@ public interface ListKnowledgeBasesRequestOrBuilder * * *
-   * Required. The agent to list of knowledge bases for.
-   * Format: `projects/<Project ID>/agent`.
+   * Required. The project to list of knowledge bases for.
+   * Format: `projects/<Project ID>`.
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java index 8899aaf980f5..9f03445296c3 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java @@ -7,8 +7,7 @@ * * *
- * Response message for
- * [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
+ * Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse} @@ -395,8 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for
-   * [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
+   * Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java index 996473f0e5c5..d47507853c30 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest} @@ -400,8 +399,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
+   * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java index 3a3f548d71db..5bc1437accd5 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse} @@ -410,8 +409,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
+   * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java index 479249c35e2f..8ff9ad534556 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java @@ -210,20 +210,18 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
-   * Optional. This field is set to the value of `QueryParameters.payload` field
-   * passed in the request.
-   * This field is used for the telephony gateway. It should have a
-   * structure similar to this JSON message:
+   * 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 in
-   * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-   * for Enterprise Edition and not for Standard Edition agents. When the
-   * telephony gateway is used with a standard tier agent the `caller_id` field
-   * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+   * 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; @@ -235,20 +233,18 @@ public boolean hasPayload() { * * *
-   * Optional. This field is set to the value of `QueryParameters.payload` field
-   * passed in the request.
-   * This field is used for the telephony gateway. It should have a
-   * structure similar to this JSON message:
+   * 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 in
-   * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-   * for Enterprise Edition and not for Standard Edition agents. When the
-   * telephony gateway is used with a standard tier agent the `caller_id` field
-   * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+   * 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; @@ -260,20 +256,18 @@ public com.google.protobuf.Struct getPayload() { * * *
-   * Optional. This field is set to the value of `QueryParameters.payload` field
-   * passed in the request.
-   * This field is used for the telephony gateway. It should have a
-   * structure similar to this JSON message:
+   * 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 in
-   * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-   * for Enterprise Edition and not for Standard Edition agents. When the
-   * telephony gateway is used with a standard tier agent the `caller_id` field
-   * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+   * 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; @@ -858,20 +852,18 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -883,20 +875,18 @@ public boolean hasPayload() { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -912,20 +902,18 @@ public com.google.protobuf.Struct getPayload() { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -947,20 +935,18 @@ public Builder setPayload(com.google.protobuf.Struct value) { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -979,20 +965,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.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -1016,20 +1000,18 @@ public Builder mergePayload(com.google.protobuf.Struct value) { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -1049,20 +1031,18 @@ public Builder clearPayload() { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -1076,20 +1056,18 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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; @@ -1105,20 +1083,18 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * * *
-     * Optional. This field is set to the value of `QueryParameters.payload` field
-     * passed in the request.
-     * This field is used for the telephony gateway. It should have a
-     * structure similar to this JSON message:
+     * 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 in
-     * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-     * for Enterprise Edition and not for Standard Edition agents. When the
-     * telephony gateway is used with a standard tier agent the `caller_id` field
-     * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+     * 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/OriginalDetectIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java index f78140ac2958..76eea888f6fb 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java @@ -58,20 +58,18 @@ public interface OriginalDetectIntentRequestOrBuilder * * *
-   * Optional. This field is set to the value of `QueryParameters.payload` field
-   * passed in the request.
-   * This field is used for the telephony gateway. It should have a
-   * structure similar to this JSON message:
+   * 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 in
-   * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-   * for Enterprise Edition and not for Standard Edition agents. When the
-   * telephony gateway is used with a standard tier agent the `caller_id` field
-   * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+   * 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; @@ -81,20 +79,18 @@ public interface OriginalDetectIntentRequestOrBuilder * * *
-   * Optional. This field is set to the value of `QueryParameters.payload` field
-   * passed in the request.
-   * This field is used for the telephony gateway. It should have a
-   * structure similar to this JSON message:
+   * 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 in
-   * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-   * for Enterprise Edition and not for Standard Edition agents. When the
-   * telephony gateway is used with a standard tier agent the `caller_id` field
-   * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+   * 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; @@ -104,20 +100,18 @@ public interface OriginalDetectIntentRequestOrBuilder * * *
-   * Optional. This field is set to the value of `QueryParameters.payload` field
-   * passed in the request.
-   * This field is used for the telephony gateway. It should have a
-   * structure similar to this JSON message:
+   * 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 in
-   * [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
-   * for Enterprise Edition and not for Standard Edition agents. When the
-   * telephony gateway is used with a standard tier agent the `caller_id` field
-   * above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
+   * 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/OutputAudioEncoding.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java index 3c9a93fdd499..f46dee66703a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java @@ -158,7 +158,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final OutputAudioEncoding[] VALUES = values(); diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java index e423b789e752..7b4fcd6b8903 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java @@ -369,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -385,9 +385,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -401,9 +401,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -416,9 +416,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -431,9 +431,9 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp * * *
-   * 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.v2beta1.SessionEntityType session_entity_types = 5; @@ -495,9 +495,6 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -512,9 +509,6 @@ public com.google.protobuf.ProtocolStringList getKnowledgeBaseNamesList() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -529,9 +523,6 @@ public int getKnowledgeBaseNamesCount() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -546,9 +537,6 @@ public java.lang.String getKnowledgeBaseNames(int index) { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -1902,9 +1890,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -1922,9 +1910,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -1941,9 +1929,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -1960,9 +1948,9 @@ public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTyp * * *
-     * 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.v2beta1.SessionEntityType session_entity_types = 5; @@ -1986,9 +1974,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2009,9 +1997,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2035,9 +2023,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2061,9 +2049,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2084,9 +2072,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2107,9 +2095,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2131,9 +2119,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2153,9 +2141,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2175,9 +2163,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2191,9 +2179,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2211,9 +2199,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2231,9 +2219,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2248,9 +2236,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2266,9 +2254,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -2499,9 +2487,6 @@ private void ensureKnowledgeBaseNamesIsMutable() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2516,9 +2501,6 @@ public com.google.protobuf.ProtocolStringList getKnowledgeBaseNamesList() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2533,9 +2515,6 @@ public int getKnowledgeBaseNamesCount() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2550,9 +2529,6 @@ public java.lang.String getKnowledgeBaseNames(int index) { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2567,9 +2543,6 @@ public com.google.protobuf.ByteString getKnowledgeBaseNamesBytes(int index) { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2590,9 +2563,6 @@ public Builder setKnowledgeBaseNames(int index, java.lang.String value) { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2613,9 +2583,6 @@ public Builder addKnowledgeBaseNames(java.lang.String value) { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2633,9 +2600,6 @@ public Builder addAllKnowledgeBaseNames(java.lang.Iterable val * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -2653,9 +2617,6 @@ public Builder clearKnowledgeBaseNames() { * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java index 777cd9a45460..2aad03d3174c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java @@ -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.v2beta1.SessionEntityType session_entity_types = 5; @@ -152,9 +152,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -165,9 +165,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -178,9 +178,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -192,9 +192,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.v2beta1.SessionEntityType session_entity_types = 5; @@ -244,9 +244,6 @@ com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityT * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -259,9 +256,6 @@ com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityT * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -274,9 +268,6 @@ com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityT * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; @@ -289,9 +280,6 @@ com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityT * Optional. KnowledgeBases to get alternative results from. If not set, the * KnowledgeBases enabled in the agent (through UI) will be used. * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`. - * Note: This field is `repeated` for forward compatibility, currently only - * the first one is supported, we may return an error if multiple - * KnowledgeBases are specified. * * * repeated string knowledge_base_names = 12; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java index bde6e0189ab1..fc9cbca62264 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java @@ -329,7 +329,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.
    * 
* @@ -351,7 +352,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.
    * 
* @@ -499,6 +501,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; @@ -519,6 +522,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; @@ -841,8 +845,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; @@ -854,8 +859,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; @@ -869,8 +875,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; @@ -1817,7 +1824,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.
      * 
* @@ -1839,7 +1847,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.
      * 
* @@ -1861,7 +1870,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.
      * 
* @@ -1881,7 +1891,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.
      * 
* @@ -1898,7 +1909,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.
      * 
* @@ -2311,6 +2323,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; @@ -2331,6 +2344,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; @@ -2351,6 +2365,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; @@ -2369,6 +2384,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; @@ -2384,6 +2400,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; @@ -3741,8 +3758,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; @@ -3754,8 +3772,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; @@ -3773,8 +3792,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; @@ -3796,8 +3816,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; @@ -3816,8 +3837,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; @@ -3843,8 +3865,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; @@ -3864,8 +3887,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; @@ -3879,8 +3903,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; @@ -3898,8 +3923,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; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java index 15ffd76cb73e..6f0b9f6889b0 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java @@ -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.
    * 
* @@ -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; @@ -404,8 +408,9 @@ com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getFulfillmentMessag * * *
-   * 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; @@ -415,8 +420,9 @@ com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getFulfillmentMessag * * *
-   * 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; @@ -426,8 +432,9 @@ com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getFulfillmentMessag * * *
-   * 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; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java new file mode 100644 index 000000000000..360c8fe034e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java @@ -0,0 +1,613 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Request message for [Documents.ReloadDocument][google.cloud.dialogflow.v2beta1.Documents.ReloadDocument].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ReloadDocumentRequest} + */ +public final class ReloadDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) + ReloadDocumentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReloadDocumentRequest.newBuilder() to construct. + private ReloadDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReloadDocumentRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReloadDocumentRequest( + 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; + } + 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.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.class, + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the document to reload.
+   * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+   * ID>/documents/<Document ID>`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the document to reload.
+   * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+   * ID>/documents/<Document ID>`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @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_); + } + 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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest other = + (com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest 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.v2beta1.ReloadDocumentRequest 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; + } + /** + * + * + *
+   * Request message for [Documents.ReloadDocument][google.cloud.dialogflow.v2beta1.Documents.ReloadDocument].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ReloadDocumentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.class, + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.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_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest build() { + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest result = + new com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest(this); + result.name_ = name_; + 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.v2beta1.ReloadDocumentRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + 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.v2beta1.ReloadDocumentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the document to reload.
+     * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+     * ID>/documents/<Document ID>`
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the document to reload.
+     * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+     * ID>/documents/<Document ID>`
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the document to reload.
+     * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+     * ID>/documents/<Document ID>`
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the document to reload.
+     * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+     * ID>/documents/<Document ID>`
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the document to reload.
+     * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+     * ID>/documents/<Document ID>`
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @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.v2beta1.ReloadDocumentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) + private static final com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReloadDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReloadDocumentRequest(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.v2beta1.ReloadDocumentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java new file mode 100644 index 000000000000..51b70c55b876 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface ReloadDocumentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the document to reload.
+   * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+   * ID>/documents/<Document ID>`
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the document to reload.
+   * Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
+   * ID>/documents/<Document ID>`
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java index 101e9b607816..04204b3f64f0 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
+ * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.RestoreAgentRequest} @@ -474,8 +473,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
+   * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.RestoreAgentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java index 6e86ac830f54..9badde3202d4 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
+ * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchAgentsRequest} @@ -391,8 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
+   * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchAgentsRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java index 45b5122a6f71..215213d73857 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java @@ -7,8 +7,7 @@ * * *
- * The response message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
+ * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchAgentsResponse} @@ -397,8 +396,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for
-   * [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
+   * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchAgentsResponse} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java index 8663f97bd17d..adc346c99ae1 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java @@ -158,10 +158,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.v2beta1.EntityTypes.GetEntityType] on the developer entity type
+     * and merge.
      * 
* * ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; @@ -197,10 +199,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.v2beta1.EntityTypes.GetEntityType] on the developer entity type
+     * and merge.
      * 
* * ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; @@ -297,6 +301,8 @@ private EntityOverrideMode(int value) { * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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; @@ -323,6 +329,8 @@ public java.lang.String getName() { * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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; @@ -865,6 +873,8 @@ public Builder mergeFrom( * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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 +901,8 @@ public java.lang.String getName() { * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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; @@ -917,6 +929,8 @@ public com.google.protobuf.ByteString getNameBytes() { * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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; @@ -941,6 +955,8 @@ public Builder setName(java.lang.String value) { * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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; @@ -962,6 +978,8 @@ public Builder clearName() { * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java index 7e002cf36a75..5ac6f8cb301a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java @@ -19,6 +19,8 @@ public interface SessionEntityTypeOrBuilder * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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; @@ -35,6 +37,8 @@ public interface SessionEntityTypeOrBuilder * ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. * If `Environment ID` is not specified, we assume default 'draft' * environment. If `User ID` is not specified, we assume default '-' user. + * `<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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java index 38a0e6353ad9..f2885f733bbb 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java @@ -52,79 +52,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n9google/cloud/dialogflow/v2beta1/sessio" + "n_entity_type.proto\022\037google.cloud.dialog" + "flow.v2beta1\032\034google/api/annotations.pro" - + "to\0321google/cloud/dialogflow/v2beta1/enti" - + "ty_type.proto\032\033google/protobuf/empty.pro" - + "to\032 google/protobuf/field_mask.proto\"\321\002\n" - + "\021SessionEntityType\022\014\n\004name\030\001 \001(\t\022c\n\024enti" - + "ty_override_mode\030\002 \001(\0162E.google.cloud.di" - + "alogflow.v2beta1.SessionEntityType.Entit" - + "yOverrideMode\022D\n\010entities\030\003 \003(\01322.google" - + ".cloud.dialogflow.v2beta1.EntityType.Ent" - + "ity\"\202\001\n\022EntityOverrideMode\022$\n ENTITY_OVE" - + "RRIDE_MODE_UNSPECIFIED\020\000\022!\n\035ENTITY_OVERR" - + "IDE_MODE_OVERRIDE\020\001\022#\n\037ENTITY_OVERRIDE_M" - + "ODE_SUPPLEMENT\020\002\"V\n\035ListSessionEntityTyp" - + "esRequest\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\"\213\001\n\036ListSession" - + "EntityTypesResponse\022P\n\024session_entity_ty" - + "pes\030\001 \003(\01322.google.cloud.dialogflow.v2be" - + "ta1.SessionEntityType\022\027\n\017next_page_token" - + "\030\002 \001(\t\"+\n\033GetSessionEntityTypeRequest\022\014\n" - + "\004name\030\001 \001(\t\"\201\001\n\036CreateSessionEntityTypeR" - + "equest\022\016\n\006parent\030\001 \001(\t\022O\n\023session_entity" - + "_type\030\002 \001(\01322.google.cloud.dialogflow.v2" - + "beta1.SessionEntityType\"\242\001\n\036UpdateSessio" - + "nEntityTypeRequest\022O\n\023session_entity_typ" - + "e\030\001 \001(\01322.google.cloud.dialogflow.v2beta" - + "1.SessionEntityType\022/\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMask\".\n\036DeleteSe" - + "ssionEntityTypeRequest\022\014\n\004name\030\001 \001(\t2\313\014\n" - + "\022SessionEntityTypes\022\262\002\n\026ListSessionEntit" - + "yTypes\022>.google.cloud.dialogflow.v2beta1" - + ".ListSessionEntityTypesRequest\032?.google." - + "cloud.dialogflow.v2beta1.ListSessionEnti" - + "tyTypesResponse\"\226\001\202\323\344\223\002\217\001\0229/v2beta1/{par" - + "ent=projects/*/agent/sessions/*}/entityT" - + "ypesZR\022P/v2beta1/{parent=projects/*/agen" - + "t/environments/*/users/*/sessions/*}/ent" - + "ityTypes\022\241\002\n\024GetSessionEntityType\022<.goog" - + "le.cloud.dialogflow.v2beta1.GetSessionEn" - + "tityTypeRequest\0322.google.cloud.dialogflo" - + "w.v2beta1.SessionEntityType\"\226\001\202\323\344\223\002\217\001\0229/" - + "v2beta1/{name=projects/*/agent/sessions/" - + "*/entityTypes/*}ZR\022P/v2beta1/{name=proje" - + "cts/*/agent/environments/*/users/*/sessi" - + "ons/*/entityTypes/*}\022\321\002\n\027CreateSessionEn" - + "tityType\022?.google.cloud.dialogflow.v2bet" - + "a1.CreateSessionEntityTypeRequest\0322.goog" - + "le.cloud.dialogflow.v2beta1.SessionEntit" - + "yType\"\300\001\202\323\344\223\002\271\001\"9/v2beta1/{parent=projec" - + "ts/*/agent/sessions/*}/entityTypes:\023sess" - + "ion_entity_typeZg\"P/v2beta1/{parent=proj" - + "ects/*/agent/environments/*/users/*/sess" - + "ions/*}/entityTypes:\023session_entity_type" - + "\022\371\002\n\027UpdateSessionEntityType\022?.google.cl" - + "oud.dialogflow.v2beta1.UpdateSessionEnti" - + "tyTypeRequest\0322.google.cloud.dialogflow." - + "v2beta1.SessionEntityType\"\350\001\202\323\344\223\002\341\0012M/v2" - + "beta1/{session_entity_type.name=projects" - + "/*/agent/sessions/*/entityTypes/*}:\023sess" - + "ion_entity_typeZ{2d/v2beta1/{session_ent" - + "ity_type.name=projects/*/agent/environme" - + "nts/*/users/*/sessions/*/entityTypes/*}:" - + "\023session_entity_type\022\213\002\n\027DeleteSessionEn" - + "tityType\022?.google.cloud.dialogflow.v2bet" - + "a1.DeleteSessionEntityTypeRequest\032\026.goog" - + "le.protobuf.Empty\"\226\001\202\323\344\223\002\217\001*9/v2beta1/{n" - + "ame=projects/*/agent/sessions/*/entityTy" - + "pes/*}ZR*P/v2beta1/{name=projects/*/agen" - + "t/environments/*/users/*/sessions/*/enti" - + "tyTypes/*}B\264\001\n#com.google.cloud.dialogfl" - + "ow.v2beta1B\026SessionEntityTypeProtoP\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" + + "to\032\031google/api/resource.proto\0321google/cl" + + "oud/dialogflow/v2beta1/entity_type.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\"\321\002\n\021SessionEntit" + + "yType\022\014\n\004name\030\001 \001(\t\022c\n\024entity_override_m" + + "ode\030\002 \001(\0162E.google.cloud.dialogflow.v2be" + + "ta1.SessionEntityType.EntityOverrideMode" + + "\022D\n\010entities\030\003 \003(\01322.google.cloud.dialog" + + "flow.v2beta1.EntityType.Entity\"\202\001\n\022Entit" + + "yOverrideMode\022$\n ENTITY_OVERRIDE_MODE_UN" + + "SPECIFIED\020\000\022!\n\035ENTITY_OVERRIDE_MODE_OVER" + + "RIDE\020\001\022#\n\037ENTITY_OVERRIDE_MODE_SUPPLEMEN" + + "T\020\002\"V\n\035ListSessionEntityTypesRequest\022\016\n\006" + + "parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"\213\001\n\036ListSessionEntityTypesRe" + + "sponse\022P\n\024session_entity_types\030\001 \003(\01322.g" + + "oogle.cloud.dialogflow.v2beta1.SessionEn" + + "tityType\022\027\n\017next_page_token\030\002 \001(\t\"+\n\033Get" + + "SessionEntityTypeRequest\022\014\n\004name\030\001 \001(\t\"\201" + + "\001\n\036CreateSessionEntityTypeRequest\022\016\n\006par" + + "ent\030\001 \001(\t\022O\n\023session_entity_type\030\002 \001(\01322" + + ".google.cloud.dialogflow.v2beta1.Session" + + "EntityType\"\242\001\n\036UpdateSessionEntityTypeRe" + + "quest\022O\n\023session_entity_type\030\001 \001(\01322.goo" + + "gle.cloud.dialogflow.v2beta1.SessionEnti" + + "tyType\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\".\n\036DeleteSessionEntityTy" + + "peRequest\022\014\n\004name\030\001 \001(\t2\313\014\n\022SessionEntit" + + "yTypes\022\262\002\n\026ListSessionEntityTypes\022>.goog" + + "le.cloud.dialogflow.v2beta1.ListSessionE" + + "ntityTypesRequest\032?.google.cloud.dialogf" + + "low.v2beta1.ListSessionEntityTypesRespon" + + "se\"\226\001\202\323\344\223\002\217\001\0229/v2beta1/{parent=projects/" + + "*/agent/sessions/*}/entityTypesZR\022P/v2be" + + "ta1/{parent=projects/*/agent/environment" + + "s/*/users/*/sessions/*}/entityTypes\022\241\002\n\024" + + "GetSessionEntityType\022<.google.cloud.dial" + + "ogflow.v2beta1.GetSessionEntityTypeReque" + + "st\0322.google.cloud.dialogflow.v2beta1.Ses" + + "sionEntityType\"\226\001\202\323\344\223\002\217\001\0229/v2beta1/{name" + + "=projects/*/agent/sessions/*/entityTypes" + + "/*}ZR\022P/v2beta1/{name=projects/*/agent/e" + + "nvironments/*/users/*/sessions/*/entityT" + + "ypes/*}\022\321\002\n\027CreateSessionEntityType\022?.go" + + "ogle.cloud.dialogflow.v2beta1.CreateSess" + + "ionEntityTypeRequest\0322.google.cloud.dial" + + "ogflow.v2beta1.SessionEntityType\"\300\001\202\323\344\223\002" + + "\271\001\"9/v2beta1/{parent=projects/*/agent/se" + + "ssions/*}/entityTypes:\023session_entity_ty" + + "peZg\"P/v2beta1/{parent=projects/*/agent/" + + "environments/*/users/*/sessions/*}/entit" + + "yTypes:\023session_entity_type\022\371\002\n\027UpdateSe" + + "ssionEntityType\022?.google.cloud.dialogflo" + + "w.v2beta1.UpdateSessionEntityTypeRequest" + + "\0322.google.cloud.dialogflow.v2beta1.Sessi" + + "onEntityType\"\350\001\202\323\344\223\002\341\0012M/v2beta1/{sessio" + + "n_entity_type.name=projects/*/agent/sess" + + "ions/*/entityTypes/*}:\023session_entity_ty" + + "peZ{2d/v2beta1/{session_entity_type.name" + + "=projects/*/agent/environments/*/users/*" + + "/sessions/*/entityTypes/*}:\023session_enti" + + "ty_type\022\213\002\n\027DeleteSessionEntityType\022?.go" + + "ogle.cloud.dialogflow.v2beta1.DeleteSess" + + "ionEntityTypeRequest\032\026.google.protobuf.E" + + "mpty\"\226\001\202\323\344\223\002\217\001*9/v2beta1/{name=projects/" + + "*/agent/sessions/*/entityTypes/*}ZR*P/v2" + + "beta1/{name=projects/*/agent/environment" + + "s/*/users/*/sessions/*/entityTypes/*}B\264\001" + + "\n#com.google.cloud.dialogflow.v2beta1B\026S" + + "essionEntityTypeProtoP\001ZIgoogle.golang.o" + + "rg/genproto/googleapis/cloud/dialogflow/" + + "v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Clou" + + "d.Dialogflow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -138,6 +138,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.v2beta1.EntityTypeProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -205,6 +206,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.v2beta1.EntityTypeProto.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/SessionProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java index aa4713d9bc58..1e4f44716532 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java @@ -52,10 +52,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_StreamingRecognitionResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_StreamingRecognitionResult_fieldAccessorTable; - 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_TextInput_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -87,137 +83,128 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/dialogflow/v2beta1/sessio" + "n.proto\022\037google.cloud.dialogflow.v2beta1" - + "\032\034google/api/annotations.proto\0322google/c" - + "loud/dialogflow/v2beta1/audio_config.pro" - + "to\032-google/cloud/dialogflow/v2beta1/cont" - + "ext.proto\032,google/cloud/dialogflow/v2bet" - + "a1/intent.proto\0329google/cloud/dialogflow" - + "/v2beta1/session_entity_type.proto\032\034goog" - + "le/protobuf/struct.proto\032\027google/rpc/sta" - + "tus.proto\032\030google/type/latlng.proto\"\226\002\n\023" - + "DetectIntentRequest\022\017\n\007session\030\001 \001(\t\022F\n\014" - + "query_params\030\002 \001(\01320.google.cloud.dialog" - + "flow.v2beta1.QueryParameters\022@\n\013query_in" - + "put\030\003 \001(\0132+.google.cloud.dialogflow.v2be" - + "ta1.QueryInput\022O\n\023output_audio_config\030\004 " - + "\001(\01322.google.cloud.dialogflow.v2beta1.Ou" - + "tputAudioConfig\022\023\n\013input_audio\030\005 \001(\014\"\323\002\n" - + "\024DetectIntentResponse\022\023\n\013response_id\030\001 \001" - + "(\t\022B\n\014query_result\030\002 \001(\0132,.google.cloud." - + "dialogflow.v2beta1.QueryResult\022O\n\031altern" - + "ative_query_results\030\005 \003(\0132,.google.cloud" - + ".dialogflow.v2beta1.QueryResult\022*\n\016webho" - + "ok_status\030\003 \001(\0132\022.google.rpc.Status\022\024\n\014o" - + "utput_audio\030\004 \001(\014\022O\n\023output_audio_config" - + "\030\006 \001(\01322.google.cloud.dialogflow.v2beta1" - + ".OutputAudioConfig\"\251\003\n\017QueryParameters\022\021" - + "\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132" - + "\023.google.type.LatLng\022:\n\010contexts\030\003 \003(\0132(" - + ".google.cloud.dialogflow.v2beta1.Context" - + "\022\026\n\016reset_contexts\030\004 \001(\010\022P\n\024session_enti" - + "ty_types\030\005 \003(\01322.google.cloud.dialogflow" - + ".v2beta1.SessionEntityType\022(\n\007payload\030\006 " - + "\001(\0132\027.google.protobuf.Struct\022\034\n\024knowledg" - + "e_base_names\030\014 \003(\t\022j\n!sentiment_analysis" - + "_request_config\030\n \001(\0132?.google.cloud.dia" - + "logflow.v2beta1.SentimentAnalysisRequest" - + "Config\"\332\001\n\nQueryInput\022I\n\014audio_config\030\001 " - + "\001(\01321.google.cloud.dialogflow.v2beta1.In" - + "putAudioConfigH\000\022:\n\004text\030\002 \001(\0132*.google." - + "cloud.dialogflow.v2beta1.TextInputH\000\022<\n\005" - + "event\030\003 \001(\0132+.google.cloud.dialogflow.v2" - + "beta1.EventInputH\000B\007\n\005input\"\362\005\n\013QueryRes" - + "ult\022\022\n\nquery_text\030\001 \001(\t\022\025\n\rlanguage_code" - + "\030\017 \001(\t\022%\n\035speech_recognition_confidence\030" - + "\002 \001(\002\022\016\n\006action\030\003 \001(\t\022+\n\nparameters\030\004 \001(" - + "\0132\027.google.protobuf.Struct\022#\n\033all_requir" - + "ed_params_present\030\005 \001(\010\022\030\n\020fulfillment_t" - + "ext\030\006 \001(\t\022M\n\024fulfillment_messages\030\007 \003(\0132" - + "/.google.cloud.dialogflow.v2beta1.Intent" - + ".Message\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webh" - + "ook_payload\030\t \001(\0132\027.google.protobuf.Stru" - + "ct\022A\n\017output_contexts\030\n \003(\0132(.google.clo" - + "ud.dialogflow.v2beta1.Context\0227\n\006intent\030" - + "\013 \001(\0132\'.google.cloud.dialogflow.v2beta1." - + "Intent\022#\n\033intent_detection_confidence\030\014 " - + "\001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.google.pr" - + "otobuf.Struct\022[\n\031sentiment_analysis_resu" - + "lt\030\021 \001(\01328.google.cloud.dialogflow.v2bet" - + "a1.SentimentAnalysisResult\022L\n\021knowledge_" - + "answers\030\022 \001(\01321.google.cloud.dialogflow." - + "v2beta1.KnowledgeAnswers\"\206\003\n\020KnowledgeAn" - + "swers\022I\n\007answers\030\001 \003(\01328.google.cloud.di" - + "alogflow.v2beta1.KnowledgeAnswers.Answer" - + "\032\246\002\n\006Answer\022\016\n\006source\030\001 \001(\t\022\024\n\014faq_quest" - + "ion\030\002 \001(\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_confi" - + "dence_level\030\004 \001(\0162M.google.cloud.dialogf" - + "low.v2beta1.KnowledgeAnswers.Answer.Matc" - + "hConfidenceLevel\022\030\n\020match_confidence\030\005 \001" - + "(\002\"]\n\024MatchConfidenceLevel\022&\n\"MATCH_CONF" - + "IDENCE_LEVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006M" - + "EDIUM\020\002\022\010\n\004HIGH\020\003\"\271\002\n\034StreamingDetectInt" - + "entRequest\022\017\n\007session\030\001 \001(\t\022F\n\014query_par" - + "ams\030\002 \001(\01320.google.cloud.dialogflow.v2be" - + "ta1.QueryParameters\022@\n\013query_input\030\003 \001(\013" - + "2+.google.cloud.dialogflow.v2beta1.Query" - + "Input\022\030\n\020single_utterance\030\004 \001(\010\022O\n\023outpu" - + "t_audio_config\030\005 \001(\01322.google.cloud.dial" - + "ogflow.v2beta1.OutputAudioConfig\022\023\n\013inpu" - + "t_audio\030\006 \001(\014\"\265\003\n\035StreamingDetectIntentR" - + "esponse\022\023\n\013response_id\030\001 \001(\t\022W\n\022recognit" - + "ion_result\030\002 \001(\0132;.google.cloud.dialogfl" - + "ow.v2beta1.StreamingRecognitionResult\022B\n" - + "\014query_result\030\003 \001(\0132,.google.cloud.dialo" - + "gflow.v2beta1.QueryResult\022O\n\031alternative" - + "_query_results\030\007 \003(\0132,.google.cloud.dial" - + "ogflow.v2beta1.QueryResult\022*\n\016webhook_st" - + "atus\030\004 \001(\0132\022.google.rpc.Status\022\024\n\014output" - + "_audio\030\005 \001(\014\022O\n\023output_audio_config\030\006 \001(" - + "\01322.google.cloud.dialogflow.v2beta1.Outp" - + "utAudioConfig\"\217\002\n\032StreamingRecognitionRe" - + "sult\022]\n\014message_type\030\001 \001(\0162G.google.clou" - + "d.dialogflow.v2beta1.StreamingRecognitio" - + "nResult.MessageType\022\022\n\ntranscript\030\002 \001(\t\022" - + "\020\n\010is_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\"X\n" - + "\013MessageType\022\034\n\030MESSAGE_TYPE_UNSPECIFIED" - + "\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTE" - + "RANCE\020\002\"\261\001\n\020InputAudioConfig\022F\n\016audio_en" - + "coding\030\001 \001(\0162..google.cloud.dialogflow.v" - + "2beta1.AudioEncoding\022\031\n\021sample_rate_hert" - + "z\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014phrase" - + "_hints\030\004 \003(\t\022\r\n\005model\030\007 \001(\t\"0\n\tTextInput" - + "\022\014\n\004text\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\"^\n" - + "\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n\nparameters\030" - + "\002 \001(\0132\027.google.protobuf.Struct\022\025\n\rlangua" - + "ge_code\030\003 \001(\t\"F\n\036SentimentAnalysisReques" - + "tConfig\022$\n\034analyze_query_text_sentiment\030" - + "\001 \001(\010\"c\n\027SentimentAnalysisResult\022H\n\024quer" - + "y_text_sentiment\030\001 \001(\0132*.google.cloud.di" - + "alogflow.v2beta1.Sentiment\"-\n\tSentiment\022" - + "\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002*\373\001\n\rAu" - + "dioEncoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIE" - + "D\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AUD" - + "IO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MUL" - + "AW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_EN" - + "CODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OP" - + "US\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER" - + "_BYTE\020\0072\312\003\n\010Sessions\022\236\002\n\014DetectIntent\0224." - + "google.cloud.dialogflow.v2beta1.DetectIn" - + "tentRequest\0325.google.cloud.dialogflow.v2" - + "beta1.DetectIntentResponse\"\240\001\202\323\344\223\002\231\001\";/v" - + "2beta1/{session=projects/*/agent/session" - + "s/*}:detectIntent:\001*ZW\"R/v2beta1/{sessio" - + "n=projects/*/agent/environments/*/users/" - + "*/sessions/*}:detectIntent:\001*\022\234\001\n\025Stream" - + "ingDetectIntent\022=.google.cloud.dialogflo" - + "w.v2beta1.StreamingDetectIntentRequest\032>" - + ".google.cloud.dialogflow.v2beta1.Streami" - + "ngDetectIntentResponse\"\000(\0010\001B\252\001\n#com.goo" - + "gle.cloud.dialogflow.v2beta1B\014SessionPro" - + "toP\001ZIgoogle.golang.org/genproto/googlea" - + "pis/cloud/dialogflow/v2beta1;dialogflow\370" - + "\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta" - + "1b\006proto3" + + "\032\034google/api/annotations.proto\032\031google/a" + + "pi/resource.proto\032+google/cloud/dialogfl" + + "ow/v2beta1/agent.proto\0322google/cloud/dia" + + "logflow/v2beta1/audio_config.proto\032-goog" + + "le/cloud/dialogflow/v2beta1/context.prot" + + "o\032,google/cloud/dialogflow/v2beta1/inten" + + "t.proto\0329google/cloud/dialogflow/v2beta1" + + "/session_entity_type.proto\032\034google/proto" + + "buf/struct.proto\032\027google/rpc/status.prot" + + "o\032\030google/type/latlng.proto\"\226\002\n\023DetectIn" + + "tentRequest\022\017\n\007session\030\001 \001(\t\022F\n\014query_pa" + + "rams\030\002 \001(\01320.google.cloud.dialogflow.v2b" + + "eta1.QueryParameters\022@\n\013query_input\030\003 \001(" + + "\0132+.google.cloud.dialogflow.v2beta1.Quer" + + "yInput\022O\n\023output_audio_config\030\004 \001(\01322.go" + + "ogle.cloud.dialogflow.v2beta1.OutputAudi" + + "oConfig\022\023\n\013input_audio\030\005 \001(\014\"\323\002\n\024DetectI" + + "ntentResponse\022\023\n\013response_id\030\001 \001(\t\022B\n\014qu" + + "ery_result\030\002 \001(\0132,.google.cloud.dialogfl" + + "ow.v2beta1.QueryResult\022O\n\031alternative_qu" + + "ery_results\030\005 \003(\0132,.google.cloud.dialogf" + + "low.v2beta1.QueryResult\022*\n\016webhook_statu" + + "s\030\003 \001(\0132\022.google.rpc.Status\022\024\n\014output_au" + + "dio\030\004 \001(\014\022O\n\023output_audio_config\030\006 \001(\01322" + + ".google.cloud.dialogflow.v2beta1.OutputA" + + "udioConfig\"\251\003\n\017QueryParameters\022\021\n\ttime_z" + + "one\030\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132\023.google" + + ".type.LatLng\022:\n\010contexts\030\003 \003(\0132(.google." + + "cloud.dialogflow.v2beta1.Context\022\026\n\016rese" + + "t_contexts\030\004 \001(\010\022P\n\024session_entity_types" + + "\030\005 \003(\01322.google.cloud.dialogflow.v2beta1" + + ".SessionEntityType\022(\n\007payload\030\006 \001(\0132\027.go" + + "ogle.protobuf.Struct\022\034\n\024knowledge_base_n" + + "ames\030\014 \003(\t\022j\n!sentiment_analysis_request" + + "_config\030\n \001(\0132?.google.cloud.dialogflow." + + "v2beta1.SentimentAnalysisRequestConfig\"\332" + + "\001\n\nQueryInput\022I\n\014audio_config\030\001 \001(\01321.go" + + "ogle.cloud.dialogflow.v2beta1.InputAudio" + + "ConfigH\000\022:\n\004text\030\002 \001(\0132*.google.cloud.di" + + "alogflow.v2beta1.TextInputH\000\022<\n\005event\030\003 " + + "\001(\0132+.google.cloud.dialogflow.v2beta1.Ev" + + "entInputH\000B\007\n\005input\"\362\005\n\013QueryResult\022\022\n\nq" + + "uery_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.goog" + + "le.protobuf.Struct\022#\n\033all_required_param" + + "s_present\030\005 \001(\010\022\030\n\020fulfillment_text\030\006 \001(" + + "\t\022M\n\024fulfillment_messages\030\007 \003(\0132/.google" + + ".cloud.dialogflow.v2beta1.Intent.Message" + + "\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017webhook_payl" + + "oad\030\t \001(\0132\027.google.protobuf.Struct\022A\n\017ou" + + "tput_contexts\030\n \003(\0132(.google.cloud.dialo" + + "gflow.v2beta1.Context\0227\n\006intent\030\013 \001(\0132\'." + + "google.cloud.dialogflow.v2beta1.Intent\022#" + + "\n\033intent_detection_confidence\030\014 \001(\002\0220\n\017d" + + "iagnostic_info\030\016 \001(\0132\027.google.protobuf.S" + + "truct\022[\n\031sentiment_analysis_result\030\021 \001(\013" + + "28.google.cloud.dialogflow.v2beta1.Senti" + + "mentAnalysisResult\022L\n\021knowledge_answers\030" + + "\022 \001(\01321.google.cloud.dialogflow.v2beta1." + + "KnowledgeAnswers\"\206\003\n\020KnowledgeAnswers\022I\n" + + "\007answers\030\001 \003(\01328.google.cloud.dialogflow" + + ".v2beta1.KnowledgeAnswers.Answer\032\246\002\n\006Ans" + + "wer\022\016\n\006source\030\001 \001(\t\022\024\n\014faq_question\030\002 \001(" + + "\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_confidence_le" + + "vel\030\004 \001(\0162M.google.cloud.dialogflow.v2be" + + "ta1.KnowledgeAnswers.Answer.MatchConfide" + + "nceLevel\022\030\n\020match_confidence\030\005 \001(\002\"]\n\024Ma" + + "tchConfidenceLevel\022&\n\"MATCH_CONFIDENCE_L" + + "EVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022" + + "\010\n\004HIGH\020\003\"\271\002\n\034StreamingDetectIntentReque" + + "st\022\017\n\007session\030\001 \001(\t\022F\n\014query_params\030\002 \001(" + + "\01320.google.cloud.dialogflow.v2beta1.Quer" + + "yParameters\022@\n\013query_input\030\003 \001(\0132+.googl" + + "e.cloud.dialogflow.v2beta1.QueryInput\022\030\n" + + "\020single_utterance\030\004 \001(\010\022O\n\023output_audio_" + + "config\030\005 \001(\01322.google.cloud.dialogflow.v" + + "2beta1.OutputAudioConfig\022\023\n\013input_audio\030" + + "\006 \001(\014\"\265\003\n\035StreamingDetectIntentResponse\022" + + "\023\n\013response_id\030\001 \001(\t\022W\n\022recognition_resu" + + "lt\030\002 \001(\0132;.google.cloud.dialogflow.v2bet" + + "a1.StreamingRecognitionResult\022B\n\014query_r" + + "esult\030\003 \001(\0132,.google.cloud.dialogflow.v2" + + "beta1.QueryResult\022O\n\031alternative_query_r" + + "esults\030\007 \003(\0132,.google.cloud.dialogflow.v" + + "2beta1.QueryResult\022*\n\016webhook_status\030\004 \001" + + "(\0132\022.google.rpc.Status\022\024\n\014output_audio\030\005" + + " \001(\014\022O\n\023output_audio_config\030\006 \001(\01322.goog" + + "le.cloud.dialogflow.v2beta1.OutputAudioC" + + "onfig\"\217\002\n\032StreamingRecognitionResult\022]\n\014" + + "message_type\030\001 \001(\0162G.google.cloud.dialog" + + "flow.v2beta1.StreamingRecognitionResult." + + "MessageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_fi" + + "nal\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\"X\n\013Message" + + "Type\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTR" + + "ANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"" + + "0\n\tTextInput\022\014\n\004text\030\001 \001(\t\022\025\n\rlanguage_c" + + "ode\030\002 \001(\t\"^\n\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n" + + "\nparameters\030\002 \001(\0132\027.google.protobuf.Stru" + + "ct\022\025\n\rlanguage_code\030\003 \001(\t\"F\n\036SentimentAn" + + "alysisRequestConfig\022$\n\034analyze_query_tex" + + "t_sentiment\030\001 \001(\010\"c\n\027SentimentAnalysisRe" + + "sult\022H\n\024query_text_sentiment\030\001 \001(\0132*.goo" + + "gle.cloud.dialogflow.v2beta1.Sentiment\"-" + + "\n\tSentiment\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030" + + "\002 \001(\0022\312\003\n\010Sessions\022\236\002\n\014DetectIntent\0224.go" + + "ogle.cloud.dialogflow.v2beta1.DetectInte" + + "ntRequest\0325.google.cloud.dialogflow.v2be" + + "ta1.DetectIntentResponse\"\240\001\202\323\344\223\002\231\001\";/v2b" + + "eta1/{session=projects/*/agent/sessions/" + + "*}:detectIntent:\001*ZW\"R/v2beta1/{session=" + + "projects/*/agent/environments/*/users/*/" + + "sessions/*}:detectIntent:\001*\022\234\001\n\025Streamin" + + "gDetectIntent\022=.google.cloud.dialogflow." + + "v2beta1.StreamingDetectIntentRequest\032>.g" + + "oogle.cloud.dialogflow.v2beta1.Streaming" + + "DetectIntentResponse\"\000(\0010\001B\252\001\n#com.googl" + + "e.cloud.dialogflow.v2beta1B\014SessionProto" + + "P\001ZIgoogle.golang.org/genproto/googleapi" + + "s/cloud/dialogflow/v2beta1;dialogflow\370\001\001" + + "\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1b" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -231,6 +218,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.v2beta1.AgentProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(), @@ -360,16 +349,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "MessageType", "Transcript", "IsFinal", "Confidence", }); - internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dialogflow_v2beta1_InputAudioConfig_descriptor, - new java.lang.String[] { - "AudioEncoding", "SampleRateHertz", "LanguageCode", "PhraseHints", "Model", - }); internal_static_google_cloud_dialogflow_v2beta1_TextInput_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_dialogflow_v2beta1_TextInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_TextInput_descriptor, @@ -377,7 +358,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Text", "LanguageCode", }); internal_static_google_cloud_dialogflow_v2beta1_EventInput_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_dialogflow_v2beta1_EventInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_EventInput_descriptor, @@ -385,7 +366,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", "Parameters", "LanguageCode", }); internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisRequestConfig_descriptor, @@ -393,7 +374,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "AnalyzeQueryTextSentiment", }); internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SentimentAnalysisResult_descriptor, @@ -401,7 +382,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "QueryTextSentiment", }); internal_static_google_cloud_dialogflow_v2beta1_Sentiment_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dialogflow_v2beta1_Sentiment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Sentiment_descriptor, @@ -414,6 +395,8 @@ 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.v2beta1.AgentProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java index 9d0d88f1e9cb..8e2fdfa13796 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java @@ -151,7 +151,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final SsmlVoiceGender[] VALUES = values(); diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java index 72d0985e56d2..2d78437fa3f6 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java @@ -491,9 +491,7 @@ public 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.
+   * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -505,9 +503,7 @@ public 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.
+   * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -521,9 +517,7 @@ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfi * * *
-   * Instructs the speech synthesizer how to generate the output audio. This
-   * field is populated from the agent-level speech synthesizer configuration,
-   * if enabled.
+   * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2282,9 +2276,7 @@ public Builder clearOutputAudio() { * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2296,9 +2288,7 @@ public 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.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2316,9 +2306,7 @@ public com.google.cloud.dialogflow.v2beta1.OutputAudioConfig getOutputAudioConfi * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2341,9 +2329,7 @@ public Builder setOutputAudioConfig( * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2363,9 +2349,7 @@ public Builder setOutputAudioConfig( * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2392,9 +2376,7 @@ public Builder mergeOutputAudioConfig( * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2414,9 +2396,7 @@ public Builder clearOutputAudioConfig() { * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2431,9 +2411,7 @@ public Builder clearOutputAudioConfig() { * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -2452,9 +2430,7 @@ public Builder clearOutputAudioConfig() { * * *
-     * Instructs the speech synthesizer how to generate the output audio. This
-     * field is populated from the agent-level speech synthesizer configuration,
-     * if enabled.
+     * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java index d205c11221ff..4d6730a7da55 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java @@ -239,9 +239,7 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * * *
-   * Instructs the speech synthesizer how to generate the output audio. This
-   * field is populated from the agent-level speech synthesizer configuration,
-   * if enabled.
+   * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -251,9 +249,7 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * * *
-   * Instructs the speech synthesizer how to generate the output audio. This
-   * field is populated from the agent-level speech synthesizer configuration,
-   * if enabled.
+   * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; @@ -263,9 +259,7 @@ com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQueryResu * * *
-   * Instructs the speech synthesizer how to generate the output audio. This
-   * field is populated from the agent-level speech synthesizer configuration,
-   * if enabled.
+   * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java index 684e0f007140..a1a4767b4967 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.StreamingRecognitionResult} @@ -330,7 +330,7 @@ public int getMessageTypeValue() { * *
    * 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; @@ -351,7 +351,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; @@ -374,11 +374,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; @@ -616,7 +615,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 @@ -624,7 +623,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.v2beta1.StreamingRecognitionResult} @@ -897,7 +896,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; @@ -918,7 +917,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; @@ -939,7 +938,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; @@ -958,7 +957,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; @@ -974,7 +973,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; @@ -995,11 +994,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; @@ -1011,11 +1009,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; @@ -1030,11 +1027,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java index 6639426e766a..f74cf957f04c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java index 69ebeabf20d8..dec983ee5cf7 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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; @@ -531,7 +531,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; @@ -552,7 +552,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; @@ -573,7 +573,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; @@ -592,7 +592,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; @@ -608,7 +608,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; @@ -630,9 +630,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; @@ -653,9 +653,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; @@ -676,9 +676,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; @@ -697,9 +697,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; @@ -715,9 +715,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java index bd3ddde6e68b..139e2a415a73 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java index 3f5133e3c582..342ffb16fa3a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
+ * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.TrainAgentRequest} @@ -301,8 +300,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
+   * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.TrainAgentRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java index fda4efbc30d2..943195a3471a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext].
+ * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateContextRequest} @@ -377,8 +376,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext].
+   * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateContextRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java new file mode 100644 index 000000000000..f76b6a9bae45 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java @@ -0,0 +1,989 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Request message for [Documents.UpdateDocument][google.cloud.dialogflow.v2beta1.Documents.UpdateDocument].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateDocumentRequest} + */ +public final class UpdateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) + UpdateDocumentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDocumentRequest.newBuilder() to construct. + private UpdateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDocumentRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateDocumentRequest( + 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.v2beta1.Document.Builder subBuilder = null; + if (document_ != null) { + subBuilder = document_.toBuilder(); + } + document_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(document_); + document_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.class, + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.Builder.class); + } + + public static final int DOCUMENT_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.Document document_; + /** + * + * + *
+   * Required. The document to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public boolean hasDocument() { + return document_ != null; + } + /** + * + * + *
+   * Required. The document to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Document getDocument() { + return document_ == null + ? com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance() + : document_; + } + /** + * + * + *
+   * Required. The document to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentOrBuilder() { + return getDocument(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (document_ != null) { + output.writeMessage(1, getDocument()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (document_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest other = + (com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) obj; + + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument().equals(other.getDocument())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest 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.v2beta1.UpdateDocumentRequest 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; + } + /** + * + * + *
+   * Request message for [Documents.UpdateDocument][google.cloud.dialogflow.v2beta1.Documents.UpdateDocument].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateDocumentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.class, + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.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 (documentBuilder_ == null) { + document_ = null; + } else { + document_ = null; + documentBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.DocumentProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateDocumentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest build() { + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest result = + new com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest(this); + if (documentBuilder_ == null) { + result.document_ = document_; + } else { + result.document_ = documentBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.v2beta1.UpdateDocumentRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest other) { + if (other == com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest.getDefaultInstance()) + return this; + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.v2beta1.UpdateDocumentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dialogflow.v2beta1.Document document_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Document, + com.google.cloud.dialogflow.v2beta1.Document.Builder, + com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder> + documentBuilder_; + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public boolean hasDocument() { + return documentBuilder_ != null || document_ != null; + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null + ? com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance() + : document_; + } else { + return documentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public Builder setDocument(com.google.cloud.dialogflow.v2beta1.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + onChanged(); + } else { + documentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public Builder setDocument( + com.google.cloud.dialogflow.v2beta1.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + onChanged(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public Builder mergeDocument(com.google.cloud.dialogflow.v2beta1.Document value) { + if (documentBuilder_ == null) { + if (document_ != null) { + document_ = + com.google.cloud.dialogflow.v2beta1.Document.newBuilder(document_) + .mergeFrom(value) + .buildPartial(); + } else { + document_ = value; + } + onChanged(); + } else { + documentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public Builder clearDocument() { + if (documentBuilder_ == null) { + document_ = null; + onChanged(); + } else { + document_ = null; + documentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Document.Builder getDocumentBuilder() { + + onChanged(); + return getDocumentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + public com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null + ? com.google.cloud.dialogflow.v2beta1.Document.getDefaultInstance() + : document_; + } + } + /** + * + * + *
+     * Required. The document to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Document, + com.google.cloud.dialogflow.v2beta1.Document.Builder, + com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder> + getDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Document, + com.google.cloud.dialogflow.v2beta1.Document.Builder, + com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); + document_ = null; + } + return documentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.v2beta1.UpdateDocumentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) + private static final com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDocumentRequest(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.v2beta1.UpdateDocumentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java new file mode 100644 index 000000000000..43722a4a96ef --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/document.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface UpdateDocumentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.UpdateDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The document to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + boolean hasDocument(); + /** + * + * + *
+   * Required. The document to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + com.google.cloud.dialogflow.v2beta1.Document getDocument(); + /** + * + * + *
+   * Required. The document to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.Document document = 1; + */ + com.google.cloud.dialogflow.v2beta1.DocumentOrBuilder getDocumentOrBuilder(); + + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java index 93eb23a4701b..2e98697dce9f 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType].
+ * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.EntityType entity_type = 1; @@ -158,7 +155,6 @@ public com.google.cloud.dialogflow.v2beta1.EntityType getEntityType() { * *
    * Required. The entity type to update.
-   * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* * .google.cloud.dialogflow.v2beta1.EntityType entity_type = 1; @@ -175,9 +171,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeOrBuilder getEntityTypeOrBu *
    * 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.v2beta1.EntityTypes.UpdateEntityType].
+   * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.EntityType entity_type = 1; @@ -676,7 +671,6 @@ public com.google.cloud.dialogflow.v2beta1.EntityType getEntityType() { * *
      * Required. The entity type to update.
-     * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.EntityType entity_type = 1; @@ -699,7 +693,6 @@ public Builder setEntityType(com.google.cloud.dialogflow.v2beta1.EntityType valu * *
      * Required. The entity type to update.
-     * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.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.v2beta1.EntityType entity_type = 1; @@ -747,7 +739,6 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.v2beta1.EntityType va * *
      * Required. The entity type to update.
-     * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.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.v2beta1.EntityType entity_type = 1; @@ -783,7 +773,6 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Builder getEntityTypeBuild * *
      * Required. The entity type to update.
-     * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.EntityType entity_type = 1; @@ -802,7 +791,6 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeOrBuilder getEntityTypeOrBu * *
      * Required. The entity type to update.
-     * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.EntityType entity_type = 1; @@ -831,9 +819,10 @@ public com.google.cloud.dialogflow.v2beta1.EntityTypeOrBuilder getEntityTypeOrBu *
      * 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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java index 69c34c48bf6b..127fef069188 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.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.v2beta1.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.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java index 5aab713cb957..5e180a69bae1 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent].
+ * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.Intent intent = 1; @@ -166,7 +163,6 @@ public com.google.cloud.dialogflow.v2beta1.Intent getIntent() { * *
    * Required. The intent to update.
-   * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -183,9 +179,10 @@ public com.google.cloud.dialogflow.v2beta1.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; @@ -207,9 +204,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; @@ -498,8 +496,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent].
+   * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateIntentRequest} @@ -699,7 +696,6 @@ public Builder mergeFrom( * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -712,7 +708,6 @@ public boolean hasIntent() { * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -731,7 +726,6 @@ public com.google.cloud.dialogflow.v2beta1.Intent getIntent() { * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -754,7 +748,6 @@ public Builder setIntent(com.google.cloud.dialogflow.v2beta1.Intent value) { * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -774,7 +767,6 @@ public Builder setIntent(com.google.cloud.dialogflow.v2beta1.Intent.Builder buil * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -801,7 +793,6 @@ public Builder mergeIntent(com.google.cloud.dialogflow.v2beta1.Intent value) { * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -822,7 +813,6 @@ public Builder clearIntent() { * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -837,7 +827,6 @@ public com.google.cloud.dialogflow.v2beta1.Intent.Builder getIntentBuilder() { * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -856,7 +845,6 @@ public com.google.cloud.dialogflow.v2beta1.IntentOrBuilder getIntentOrBuilder() * *
      * Required. The intent to update.
-     * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* * .google.cloud.dialogflow.v2beta1.Intent intent = 1; @@ -885,9 +873,10 @@ public com.google.cloud.dialogflow.v2beta1.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; @@ -909,9 +898,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; @@ -933,9 +923,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; @@ -955,9 +946,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; @@ -974,9 +966,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java index d280e8de85de..95ec3e8fdf08 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.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.v2beta1.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.v2beta1.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java new file mode 100644 index 000000000000..1ae98a03bb2e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java @@ -0,0 +1,996 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Request message for [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBase].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest} + */ +public final class UpdateKnowledgeBaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) + UpdateKnowledgeBaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateKnowledgeBaseRequest.newBuilder() to construct. + private UpdateKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateKnowledgeBaseRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateKnowledgeBaseRequest( + 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.v2beta1.KnowledgeBase.Builder subBuilder = null; + if (knowledgeBase_ != null) { + subBuilder = knowledgeBase_.toBuilder(); + } + knowledgeBase_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(knowledgeBase_); + knowledgeBase_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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.v2beta1.KnowledgeBaseProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.class, + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.Builder.class); + } + + public static final int KNOWLEDGE_BASE_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledgeBase_; + /** + * + * + *
+   * Required. The knowledge base to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public boolean hasKnowledgeBase() { + return knowledgeBase_ != null; + } + /** + * + * + *
+   * Required. The knowledge base to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase() { + return knowledgeBase_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance() + : knowledgeBase_; + } + /** + * + * + *
+   * Required. The knowledge base to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder() { + return getKnowledgeBase(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (knowledgeBase_ != null) { + output.writeMessage(1, getKnowledgeBase()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (knowledgeBase_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKnowledgeBase()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest other = + (com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) obj; + + if (hasKnowledgeBase() != other.hasKnowledgeBase()) return false; + if (hasKnowledgeBase()) { + if (!getKnowledgeBase().equals(other.getKnowledgeBase())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasKnowledgeBase()) { + hash = (37 * hash) + KNOWLEDGE_BASE_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeBase().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest 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.v2beta1.UpdateKnowledgeBaseRequest 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; + } + /** + * + * + *
+   * Request message for [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBase].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.class, + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.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 (knowledgeBaseBuilder_ == null) { + knowledgeBase_ = null; + } else { + knowledgeBase_ = null; + knowledgeBaseBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto + .internal_static_google_cloud_dialogflow_v2beta1_UpdateKnowledgeBaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest build() { + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest result = + new com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest(this); + if (knowledgeBaseBuilder_ == null) { + result.knowledgeBase_ = knowledgeBase_; + } else { + result.knowledgeBase_ = knowledgeBaseBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.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.v2beta1.UpdateKnowledgeBaseRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.getDefaultInstance()) + return this; + if (other.hasKnowledgeBase()) { + mergeKnowledgeBase(other.getKnowledgeBase()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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.v2beta1.UpdateKnowledgeBaseRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dialogflow.v2beta1.KnowledgeBase knowledgeBase_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.KnowledgeBase, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder> + knowledgeBaseBuilder_; + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public boolean hasKnowledgeBase() { + return knowledgeBaseBuilder_ != null || knowledgeBase_ != null; + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase() { + if (knowledgeBaseBuilder_ == null) { + return knowledgeBase_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance() + : knowledgeBase_; + } else { + return knowledgeBaseBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public Builder setKnowledgeBase(com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) { + if (knowledgeBaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeBase_ = value; + onChanged(); + } else { + knowledgeBaseBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public Builder setKnowledgeBase( + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder builderForValue) { + if (knowledgeBaseBuilder_ == null) { + knowledgeBase_ = builderForValue.build(); + onChanged(); + } else { + knowledgeBaseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public Builder mergeKnowledgeBase(com.google.cloud.dialogflow.v2beta1.KnowledgeBase value) { + if (knowledgeBaseBuilder_ == null) { + if (knowledgeBase_ != null) { + knowledgeBase_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.newBuilder(knowledgeBase_) + .mergeFrom(value) + .buildPartial(); + } else { + knowledgeBase_ = value; + } + onChanged(); + } else { + knowledgeBaseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public Builder clearKnowledgeBase() { + if (knowledgeBaseBuilder_ == null) { + knowledgeBase_ = null; + onChanged(); + } else { + knowledgeBase_ = null; + knowledgeBaseBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder getKnowledgeBaseBuilder() { + + onChanged(); + return getKnowledgeBaseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder() { + if (knowledgeBaseBuilder_ != null) { + return knowledgeBaseBuilder_.getMessageOrBuilder(); + } else { + return knowledgeBase_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeBase.getDefaultInstance() + : knowledgeBase_; + } + } + /** + * + * + *
+     * Required. The knowledge base to update.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.KnowledgeBase, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder> + getKnowledgeBaseFieldBuilder() { + if (knowledgeBaseBuilder_ == null) { + knowledgeBaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.KnowledgeBase, + com.google.cloud.dialogflow.v2beta1.KnowledgeBase.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>( + getKnowledgeBase(), getParentForChildren(), isClean()); + knowledgeBase_ = null; + } + return knowledgeBaseBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional. Not specified means `update all`.
+     * Currently, only `display_name` can be updated, an InvalidArgument will be
+     * returned for attempting to update other fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.v2beta1.UpdateKnowledgeBaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) + private static final com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKnowledgeBaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateKnowledgeBaseRequest(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.v2beta1.UpdateKnowledgeBaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java new file mode 100644 index 000000000000..c6be17871db9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface UpdateKnowledgeBaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The knowledge base to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + boolean hasKnowledgeBase(); + /** + * + * + *
+   * Required. The knowledge base to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase(); + /** + * + * + *
+   * Required. The knowledge base to update.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_base = 1; + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder(); + + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Not specified means `update all`.
+   * Currently, only `display_name` can be updated, an InvalidArgument will be
+   * returned for attempting to update other fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java index dfc289930e27..538a3e49f189 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java @@ -7,8 +7,7 @@ * * *
- * The request message for
- * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest} @@ -396,8 +395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for
-   * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType].
+   * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java index f871075f28eb..d6c4b76f1c8e 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java @@ -35,35 +35,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/dialogflow/v2beta1/webhoo" + "k.proto\022\037google.cloud.dialogflow.v2beta1" - + "\032\034google/api/annotations.proto\032-google/c" - + "loud/dialogflow/v2beta1/context.proto\032,g" - + "oogle/cloud/dialogflow/v2beta1/intent.pr" - + "oto\032-google/cloud/dialogflow/v2beta1/ses" - + "sion.proto\032\034google/protobuf/struct.proto" - + "\"\261\002\n\016WebhookRequest\022\017\n\007session\030\004 \001(\t\022\023\n\013" - + "response_id\030\001 \001(\t\022B\n\014query_result\030\002 \001(\0132" - + ",.google.cloud.dialogflow.v2beta1.QueryR" - + "esult\022O\n\031alternative_query_results\030\005 \003(\013" - + "2,.google.cloud.dialogflow.v2beta1.Query" - + "Result\022d\n\036original_detect_intent_request" - + "\030\003 \001(\0132<.google.cloud.dialogflow.v2beta1" - + ".OriginalDetectIntentRequest\"\333\002\n\017Webhook" - + "Response\022\030\n\020fulfillment_text\030\001 \001(\t\022M\n\024fu" - + "lfillment_messages\030\002 \003(\0132/.google.cloud." - + "dialogflow.v2beta1.Intent.Message\022\016\n\006sou" - + "rce\030\003 \001(\t\022(\n\007payload\030\004 \001(\0132\027.google.prot" - + "obuf.Struct\022A\n\017output_contexts\030\005 \003(\0132(.g" - + "oogle.cloud.dialogflow.v2beta1.Context\022I" - + "\n\024followup_event_input\030\006 \001(\0132+.google.cl" - + "oud.dialogflow.v2beta1.EventInput\022\027\n\017end" - + "_interaction\030\010 \001(\010\"h\n\033OriginalDetectInte" - + "ntRequest\022\016\n\006source\030\001 \001(\t\022\017\n\007version\030\002 \001" - + "(\t\022(\n\007payload\030\003 \001(\0132\027.google.protobuf.St" - + "ructB\252\001\n#com.google.cloud.dialogflow.v2b" - + "eta1B\014WebhookProtoP\001ZIgoogle.golang.org/" - + "genproto/googleapis/cloud/dialogflow/v2b" - + "eta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.D" - + "ialogflow.V2beta1b\006proto3" + + "\032-google/cloud/dialogflow/v2beta1/contex" + + "t.proto\032,google/cloud/dialogflow/v2beta1" + + "/intent.proto\032-google/cloud/dialogflow/v" + + "2beta1/session.proto\0329google/cloud/dialo" + + "gflow/v2beta1/session_entity_type.proto\032" + + "\034google/protobuf/struct.proto\032\034google/ap" + + "i/annotations.proto\"\261\002\n\016WebhookRequest\022\017" + + "\n\007session\030\004 \001(\t\022\023\n\013response_id\030\001 \001(\t\022B\n\014" + + "query_result\030\002 \001(\0132,.google.cloud.dialog" + + "flow.v2beta1.QueryResult\022O\n\031alternative_" + + "query_results\030\005 \003(\0132,.google.cloud.dialo" + + "gflow.v2beta1.QueryResult\022d\n\036original_de" + + "tect_intent_request\030\003 \001(\0132<.google.cloud" + + ".dialogflow.v2beta1.OriginalDetectIntent" + + "Request\"\333\002\n\017WebhookResponse\022\030\n\020fulfillme" + + "nt_text\030\001 \001(\t\022M\n\024fulfillment_messages\030\002 " + + "\003(\0132/.google.cloud.dialogflow.v2beta1.In" + + "tent.Message\022\016\n\006source\030\003 \001(\t\022(\n\007payload\030" + + "\004 \001(\0132\027.google.protobuf.Struct\022A\n\017output" + + "_contexts\030\005 \003(\0132(.google.cloud.dialogflo" + + "w.v2beta1.Context\022I\n\024followup_event_inpu" + + "t\030\006 \001(\0132+.google.cloud.dialogflow.v2beta" + + "1.EventInput\022\027\n\017end_interaction\030\010 \001(\010\"h\n" + + "\033OriginalDetectIntentRequest\022\016\n\006source\030\001" + + " \001(\t\022\017\n\007version\030\002 \001(\t\022(\n\007payload\030\003 \001(\0132\027" + + ".google.protobuf.StructB\252\001\n#com.google.c" + + "loud.dialogflow.v2beta1B\014WebhookProtoP\001Z" + + "Igoogle.golang.org/genproto/googleapis/c" + + "loud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002" + + "DF\252\002\037Google.Cloud.Dialogflow.V2beta1b\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -76,11 +78,12 @@ 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.v2beta1.ContextProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.SessionEntityTypeProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_cloud_dialogflow_v2beta1_WebhookRequest_descriptor = @@ -117,11 +120,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Source", "Version", "Payload", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.SessionEntityTypeProto.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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java index 366f0d0d863d..97df2dd2333f 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java @@ -158,7 +158,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; @@ -180,7 +182,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; @@ -874,7 +878,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; @@ -896,7 +902,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; @@ -918,7 +926,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; @@ -938,7 +948,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; @@ -955,7 +967,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-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java index 339588893481..ff6e78474449 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/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-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto index b95792f47498..9e4c7a2a0863 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; 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,11 +37,8 @@ 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.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. // @@ -49,17 +48,18 @@ option objc_class_prefix = "DF"; // 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). service Agents { // Retrieves the specified agent. rpc GetAgent(GetAgentRequest) returns (Agent) { @@ -84,8 +84,7 @@ service Agents { // Trains the specified agent. // // - // Operation + // Operation rpc TrainAgent(TrainAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2beta1/{parent=projects/*}/agent:train" @@ -96,9 +95,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: "/v2beta1/{parent=projects/*}/agent:export" @@ -113,8 +110,7 @@ service Agents { // versions from ImportAgentRequest. // // - // Operation + // Operation rpc ImportAgent(ImportAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2beta1/{parent=projects/*}/agent:import" @@ -128,8 +124,7 @@ service Agents { // entity types in the older version are deleted. // // - // Operation + // Operation rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2beta1/{parent=projects/*}/agent:restore" @@ -162,9 +157,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 @@ -182,7 +178,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. @@ -194,23 +192,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.v2beta1.Agents.GetAgent]. +// The request message for [Agents.GetAgent][google.cloud.dialogflow.v2beta1.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.v2beta1.Agents.SearchAgents]. +// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents]. message SearchAgentsRequest { // Required. The project to list agents from. // Format: `projects/`. @@ -224,8 +220,7 @@ message SearchAgentsRequest { string page_token = 3; } -// The response message for -// [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents]. +// The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.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. @@ -236,16 +231,14 @@ message SearchAgentsResponse { string next_page_token = 2; } -// The request message for -// [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent]. +// The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.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.v2beta1.Agents.ExportAgent]. +// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent]. message ExportAgentRequest { // Required. The project that the agent to export is associated with. // Format: `projects/`. @@ -259,8 +252,7 @@ message ExportAgentRequest { string agent_uri = 2; } -// The response message for -// [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent]. +// The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent]. message ExportAgentResponse { // Required. The exported agent. oneof agent { @@ -286,8 +278,7 @@ message ExportAgentResponse { } } -// The request message for -// [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent]. +// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent]. message ImportAgentRequest { // Required. The project that the agent to import is associated with. // Format: `projects/`. @@ -317,8 +308,7 @@ message ImportAgentRequest { } } -// The request message for -// [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent]. +// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent]. message RestoreAgentRequest { // Required. The project that the agent to restore is associated with. // Format: `projects/`. diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index c468276bb6f3..8045290b22d4 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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,6 +11,7 @@ // WITHOUT 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"; @@ -26,6 +27,113 @@ option java_outer_classname = "AudioConfigProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; option objc_class_prefix = "DF"; +// Audio encoding of the audio content sent in the conversational query request. +// Refer to the +// [Cloud Speech API +// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more +// details. +enum AudioEncoding { + // Not specified. + AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + AUDIO_ENCODING_LINEAR_16 = 1; + + // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio + // Codec) is the recommended encoding because it is lossless (therefore + // recognition is not compromised) and requires only about half the + // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and + // 24-bit samples, however, not all fields in `STREAMINFO` are supported. + AUDIO_ENCODING_FLAC = 2; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + AUDIO_ENCODING_MULAW = 3; + + // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. + AUDIO_ENCODING_AMR = 4; + + // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_AMR_WB = 5; + + // Opus encoded audio frames in Ogg container + // ([OggOpus](https://wiki.xiph.org/OggOpus)). + // `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_OGG_OPUS = 6; + + // Although the use of lossy encodings is not recommended, if a very low + // bitrate encoding is required, `OGG_OPUS` is highly preferred over + // Speex encoding. The [Speex](https://speex.org/) encoding supported by + // Dialogflow API has a header byte in each block, as in MIME type + // `audio/x-speex-with-header-byte`. + // It is a variant of the RTP Speex encoding defined in + // [RFC 5574](https://tools.ietf.org/html/rfc5574). + // The stream is a sequence of blocks, one block per RTP packet. Each block + // starts with a byte containing the length of the block, in bytes, followed + // by one or more frames of Speex data, padded to an integral number of + // bytes (octets) as specified in RFC 5574. In other words, each RTP header + // is replaced with a single byte containing the block length. Only Speex + // wideband is supported. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; +} + +// Instructs the speech recognizer how to process the audio content. +message InputAudioConfig { + // Required. Audio encoding of the audio content to process. + AudioEncoding audio_encoding = 1; + + // Required. Sample rate (in Hertz) of the audio content sent in the query. + // 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://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](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + // for more details. + repeated string phrase_hints = 4; + + // Optional. Which Speech model to select for the given request. Select the + // model best suited to your domain to get best results. If a model is not + // explicitly specified, then we auto-select a model based on the parameters + // in the InputAudioConfig. + // If enhanced speech model is enabled for the agent and an enhanced + // version of the specified model for the language does not exist, then the + // speech is recognized using the standard version of the specified model. + // Refer to + // [Cloud Speech API + // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + // for more details. + string model = 7; +} + +// 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 @@ -72,39 +180,6 @@ message SynthesizeSpeechConfig { VoiceSelectionParams voice = 4; } -// 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; -} - -// 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; -} - // Audio encoding of the output audio format in Text-To-Speech. enum OutputAudioEncoding { // Not specified. @@ -123,3 +198,19 @@ enum OutputAudioEncoding { // 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-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto index 7bd27d298c38..bd5926aa481a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; 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.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). service Contexts { // Returns the list of all contexts in the specified session. rpc ListContexts(ListContextsRequest) returns (ListContextsResponse) { @@ -68,6 +71,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: "/v2beta1/{parent=projects/*/agent/sessions/*}/contexts" @@ -102,8 +107,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: "/v2beta1/{parent=projects/*/agent/sessions/*}/contexts" additional_bindings { @@ -118,26 +122,29 @@ message Context { // Required. The unique identifier of the context. Format: // `projects//agent/sessions//contexts/`, // or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is - // always converted to lowercase. If `Environment ID` is not specified, we - // assume default 'draft' environment. If `User ID` is not specified, we - // assume default '-' user. + // ID>/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. + // + // If `Environment ID` is not specified, we assume default 'draft' + // environment. If `User ID` is not specified, we assume default '-' user. 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.v2beta1.Contexts.ListContexts]. +// The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts]. message ListContextsRequest { // Required. The session to list all contexts from. // Format: `projects//agent/sessions/` or @@ -155,8 +162,7 @@ message ListContextsRequest { string page_token = 3; } -// The response message for -// [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts]. +// The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.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. @@ -167,8 +173,7 @@ message ListContextsResponse { string next_page_token = 2; } -// The request message for -// [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext]. +// The request message for [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext]. message GetContextRequest { // Required. The name of the context. Format: // `projects//agent/sessions//contexts/` @@ -179,8 +184,7 @@ message GetContextRequest { string name = 1; } -// The request message for -// [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext]. +// The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext]. message CreateContextRequest { // Required. The session to create a context for. // Format: `projects//agent/sessions/` or @@ -194,8 +198,7 @@ message CreateContextRequest { Context context = 2; } -// The request message for -// [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext]. +// The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext]. message UpdateContextRequest { // Required. The context to update. Context context = 1; @@ -204,8 +207,7 @@ message UpdateContextRequest { google.protobuf.FieldMask update_mask = 2; } -// The request message for -// [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext]. +// The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext]. message DeleteContextRequest { // Required. The name of the context to delete. Format: // `projects//agent/sessions//contexts/` @@ -216,8 +218,7 @@ message DeleteContextRequest { string name = 1; } -// The request message for -// [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts]. +// The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts]. message DeleteAllContextsRequest { // Required. The name of the session to delete all contexts from. Format: // `projects//agent/sessions/` or `projects/ - rpc CreateDocument(CreateDocumentRequest) - returns (google.longrunning.Operation) { + // metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + rpc CreateDocument(CreateDocumentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2beta1/{parent=projects/*/knowledgeBases/*}/documents" body: "document" @@ -71,10 +72,8 @@ service Documents { // Deletes the specified document. // // Operation - rpc DeleteDocument(DeleteDocumentRequest) - returns (google.longrunning.Operation) { + // metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + rpc DeleteDocument(DeleteDocumentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}" additional_bindings { @@ -82,9 +81,43 @@ service Documents { } }; } + + // Updates the specified document. + // Operation + rpc UpdateDocument(UpdateDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2beta1/{document.name=projects/*/knowledgeBases/*/documents/*}" + body: "document" + additional_bindings { + patch: "/v2beta1/{document.name=projects/*/agent/knowledgeBases/*/documents/*}" + body: "document" + } + }; + } + + // 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 + rpc ReloadDocument(ReloadDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}:reload" + body: "*" + additional_bindings { + post: "/v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}:reload" + body: "*" + } + }; + } } // A document resource. +// +// Note: resource `projects.agent.knowledgeBases.documents` is deprecated, +// please use `projects.knowledgeBases.documents` instead. message Document { // The knowledge type of document content. enum KnowledgeType { @@ -136,12 +169,17 @@ message Document { // The raw content of the document. This field is only permitted for // EXTRACTIVE_QA and FAQ knowledge types. - string content = 6; + // Note: This field is in the process of being deprecated, please use + // raw_content instead. + string content = 6 [deprecated = true]; + + // The raw content of the document. This field is only permitted for + // EXTRACTIVE_QA and FAQ knowledge types. + bytes raw_content = 9; } } -// Request message for -// [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. +// Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. message ListDocumentsRequest { // Required. The knowledge base to list all documents for. // Format: `projects//knowledgeBases/`. @@ -155,8 +193,7 @@ message ListDocumentsRequest { string page_token = 3; } -// Response message for -// [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. +// Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. message ListDocumentsResponse { // The list of documents. repeated Document documents = 1; @@ -166,8 +203,7 @@ message ListDocumentsResponse { string next_page_token = 2; } -// Request message for -// [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument]. +// Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument]. message GetDocumentRequest { // Required. The name of the document to retrieve. // Format `projects//knowledgeBases//knowledgeBases/`. @@ -186,8 +221,7 @@ message CreateDocumentRequest { Document document = 2; } -// Request message for -// [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument]. +// Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument]. message DeleteDocumentRequest { // The name of the document to delete. // Format: `projects//knowledgeBases//knowledgeBases//documents/` + string name = 1; +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto index b3ba468ad4b6..c49561ff3269 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; 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,16 +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.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). 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: "/v2beta1/{parent=projects/*/agent}/entityTypes" }; @@ -92,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: "/v2beta1/{name=projects/*/agent/entityTypes/*}" }; @@ -101,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: "/v2beta1/{parent=projects/*/agent}/entityTypes:batchUpdate" body: "*" @@ -114,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: "/v2beta1/{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: "/v2beta1/{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: "/v2beta1/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate" body: "*" @@ -151,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: "/v2beta1/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete" body: "*" @@ -166,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; } @@ -208,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.v2beta1.EntityTypes.UpdateEntityType] and + // [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.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. @@ -224,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.v2beta1.EntityTypes.ListEntityTypes]. +// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes]. message ListEntityTypesRequest { // Required. The agent to list all entity types from. // Format: `projects//agent`. @@ -237,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 @@ -250,8 +250,7 @@ message ListEntityTypesRequest { string page_token = 4; } -// The response message for -// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes]. +// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.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. @@ -262,8 +261,7 @@ message ListEntityTypesResponse { string next_page_token = 2; } -// The request message for -// [EntityTypes.GetEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType]. +// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType]. message GetEntityTypeRequest { // Required. The name of the entity type. // Format: `projects//agent/entityTypes/`. @@ -271,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.v2beta1.EntityTypes.CreateEntityType]. +// The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityType]. message CreateEntityTypeRequest { // Required. The agent to create a entity type for. // Format: `projects//agent`. @@ -289,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.v2beta1.EntityTypes.UpdateEntityType]. +// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.DeleteEntityType]. +// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.BatchUpdateEntityTypes]. +// The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes]. message BatchUpdateEntityTypesRequest { // Required. The name of the agent to update or create entity types in. // Format: `projects//agent`. @@ -331,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 @@ -340,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.v2beta1.EntityTypes.BatchUpdateEntityTypes]. +// The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.BatchDeleteEntityTypes]. +// The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes]. message BatchDeleteEntityTypesRequest { // Required. The name of the agent to delete all entities types for. Format: // `projects//agent`. @@ -374,47 +370,46 @@ message BatchDeleteEntityTypesRequest { repeated string entity_type_names = 2; } -// The request message for -// [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities]. +// The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.BatchCreateEntities]. +// The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2beta1.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.v2beta1.EntityTypes.BatchDeleteEntities]. +// The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities]. message BatchDeleteEntitiesRequest { // Required. The name of the entity type to delete entries for. Format: // `projects//agent/entityTypes/`. @@ -427,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-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto index 5d5be05afe7c..9f33f88d2c95 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/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.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. @@ -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: "/v2beta1/{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: "/v2beta1/{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: "/v2beta1/{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.v2beta1.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; @@ -607,7 +628,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; } @@ -625,20 +646,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.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.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. @@ -678,7 +702,7 @@ 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; @@ -708,24 +732,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.v2beta1.Intents.ListIntents]. +// The request message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. message ListIntentsRequest { // Required. The agent to list all intents from. // Format: `projects//agent`. @@ -733,9 +761,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. @@ -749,8 +778,7 @@ message ListIntentsRequest { string page_token = 5; } -// The response message for -// [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. +// The response message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.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. @@ -761,8 +789,7 @@ message ListIntentsResponse { string next_page_token = 2; } -// The request message for -// [Intents.GetIntent][google.cloud.dialogflow.v2beta1.Intents.GetIntent]. +// The request message for [Intents.GetIntent][google.cloud.dialogflow.v2beta1.Intents.GetIntent]. message GetIntentRequest { // Required. The name of the intent. // Format: `projects//agent/intents/`. @@ -770,17 +797,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.v2beta1.Intents.CreateIntent]. +// The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent]. message CreateIntentRequest { // Required. The agent to create a intent for. // Format: `projects//agent`. @@ -791,27 +818,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.v2beta1.Intents.UpdateIntent]. +// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.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. @@ -821,16 +848,16 @@ message UpdateIntentRequest { IntentView intent_view = 4; } -// The request message for -// [Intents.DeleteIntent][google.cloud.dialogflow.v2beta1.Intents.DeleteIntent]. +// The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2beta1.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.v2beta1.Intents.BatchUpdateIntents]. +// The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]. message BatchUpdateIntentsRequest { // Required. The name of the agent to update or create intents in. // Format: `projects//agent`. @@ -849,9 +876,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. @@ -861,15 +889,13 @@ message BatchUpdateIntentsRequest { IntentView intent_view = 6; } -// The response message for -// [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]. +// The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]. message BatchUpdateIntentsResponse { // The collection of updated or created intents. repeated Intent intents = 1; } -// The request message for -// [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents]. +// The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2beta1.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-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto index d1c0913c3505..af8d7bd2803e 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -33,8 +35,7 @@ option objc_class_prefix = "DF"; // Allows users to setup and maintain knowledge bases with their knowledge data. service KnowledgeBases { // Returns the list of all knowledge bases of the specified agent. - rpc ListKnowledgeBases(ListKnowledgeBasesRequest) - returns (ListKnowledgeBasesResponse) { + rpc ListKnowledgeBases(ListKnowledgeBasesRequest) returns (ListKnowledgeBasesResponse) { option (google.api.http) = { get: "/v2beta1/{parent=projects/*}/knowledgeBases" additional_bindings { @@ -66,8 +67,7 @@ service KnowledgeBases { } // Deletes the specified knowledge base. - rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) - returns (google.protobuf.Empty) { + rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2beta1/{name=projects/*/knowledgeBases/*}" additional_bindings { @@ -75,9 +75,24 @@ service KnowledgeBases { } }; } + + // Updates the specified knowledge base. + rpc UpdateKnowledgeBase(UpdateKnowledgeBaseRequest) returns (KnowledgeBase) { + option (google.api.http) = { + patch: "/v2beta1/{knowledge_base.name=projects/*/knowledgeBases/*}" + body: "knowledge_base" + additional_bindings { + patch: "/v2beta1/{knowledge_base.name=projects/*/agent/knowledgeBases/*}" + body: "knowledge_base" + } + }; + } } // Represents knowledge base resource. +// +// Note: resource `projects.agent.knowledgeBases` is deprecated, please use +// `projects.knowledgeBases` instead. message KnowledgeBase { // The knowledge base resource name. // The name must be empty when creating a knowledge base. @@ -89,11 +104,10 @@ message KnowledgeBase { string display_name = 2; } -// Request message for -// [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. +// Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. message ListKnowledgeBasesRequest { - // Required. The agent to list of knowledge bases for. - // Format: `projects//agent`. + // Required. The project to list of knowledge bases for. + // Format: `projects/`. string parent = 1; // Optional. The maximum number of items to return in a single page. By @@ -104,8 +118,7 @@ message ListKnowledgeBasesRequest { string page_token = 3; } -// Response message for -// [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. +// Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. message ListKnowledgeBasesResponse { // The list of knowledge bases. repeated KnowledgeBase knowledge_bases = 1; @@ -122,19 +135,17 @@ message GetKnowledgeBaseRequest { string name = 1; } -// Request message for -// [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase]. +// Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase]. message CreateKnowledgeBaseRequest { - // Required. The agent to create a knowledge base for. - // Format: `projects//agent`. + // Required. The project to create a knowledge base for. + // Format: `projects/`. string parent = 1; // Required. The knowledge base to create. KnowledgeBase knowledge_base = 2; } -// Request message for -// [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase]. +// Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase]. message DeleteKnowledgeBaseRequest { // Required. The name of the knowledge base to delete. // Format: `projects//knowledgeBases/`. @@ -144,3 +155,14 @@ message DeleteKnowledgeBaseRequest { // in the knowledge base are also deleted. bool force = 2; } + +// Request message for [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBase]. +message UpdateKnowledgeBaseRequest { + // Required. The knowledge base to update. + KnowledgeBase knowledge_base = 1; + + // Optional. Not specified means `update all`. + // Currently, only `display_name` can be updated, an InvalidArgument will be + // returned for attempting to update other fields. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index abc1187a1148..62018794e536 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/agent.proto"; import "google/cloud/dialogflow/v2beta1/audio_config.proto"; import "google/cloud/dialogflow/v2beta1/context.proto"; import "google/cloud/dialogflow/v2beta1/intent.proto"; @@ -34,10 +37,9 @@ option java_package = "com.google.cloud.dialogflow.v2beta1"; 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.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. 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 @@ -57,8 +59,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. @@ -118,11 +120,15 @@ message DetectIntentResponse { // surfaced here. repeated QueryResult alternative_query_results = 5; - // 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; // Instructs the speech synthesizer how to generate the output audio. This @@ -150,9 +156,9 @@ 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 @@ -162,10 +168,6 @@ message QueryParameters { // Optional. KnowledgeBases to get alternative results from. If not set, the // KnowledgeBases enabled in the agent (through UI) will be used. // Format: `projects//knowledgeBases/`. - // - // Note: This field is `repeated` for forward compatibility, currently only - // the first one is supported, we may return an error if multiple - // KnowledgeBases are specified. repeated string knowledge_base_names = 12; // Optional. Configures the type of sentiment analysis to perform. If not @@ -209,7 +211,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; @@ -238,6 +241,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. @@ -268,8 +272,9 @@ message QueryResult { // 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 @@ -324,11 +329,11 @@ message KnowledgeAnswers { MatchConfidenceLevel match_confidence_level = 4; // The system's confidence score that this Knowledge answer is a good match - // for this converstational query, range from 0.0 (completely uncertain) - // to 1.0 (completely certain). + // for this conversational query. + // The range is from 0.0 (completely uncertain) to 1.0 (completely certain). // Note: The confidence score is likely to vary somewhat (possibly even for // identical requests), as the underlying model is under constant - // improvement, we may deprecate it in the future. We recommend using + // improvement. It may be deprecated in the future. We recommend using // `match_confidence_level` which should be generally more stable. float match_confidence = 5; } @@ -442,9 +447,7 @@ message StreamingDetectIntentResponse { // 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. + // The config used by the speech synthesizer to generate the output audio. OutputAudioConfig output_audio_config = 6; } @@ -467,7 +470,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 @@ -480,7 +483,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 { @@ -504,14 +507,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. @@ -524,65 +526,24 @@ message StreamingRecognitionResult { float confidence = 4; } -// Instructs the speech recognizer how to process the audio content. -message InputAudioConfig { - // Required. Audio encoding of the audio content to process. - AudioEncoding audio_encoding = 1; - - // Required. Sample rate (in Hertz) of the audio content sent in the query. - // 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. - 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](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) - // for more details. - repeated string phrase_hints = 4; - - // Optional. Which Speech model to select for the given request. Select the - // model best suited to your domain to get best results. If a model is not - // explicitly specified, then we auto-select a model based on the parameters - // in the InputAudioConfig. - // If enhanced speech model is enabled for the agent and an enhanced - // version of the specified model for the language does not exist, then the - // speech is recognized using the standard version of the specified model. - // Refer to - // [Cloud Speech API - // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. - string model = 7; -} - // 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; @@ -591,9 +552,9 @@ 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; } @@ -623,52 +584,3 @@ message Sentiment { // magnitude of sentiment, regardless of score (positive or negative). float magnitude = 2; } - -// Audio encoding of the audio content sent in the conversational query request. -// Refer to the -// [Cloud Speech API -// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more -// details. -enum AudioEncoding { - // Not specified. - AUDIO_ENCODING_UNSPECIFIED = 0; - - // Uncompressed 16-bit signed little-endian samples (Linear PCM). - AUDIO_ENCODING_LINEAR_16 = 1; - - // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio - // Codec) is the recommended encoding because it is lossless (therefore - // recognition is not compromised) and requires only about half the - // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and - // 24-bit samples, however, not all fields in `STREAMINFO` are supported. - AUDIO_ENCODING_FLAC = 2; - - // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. - AUDIO_ENCODING_MULAW = 3; - - // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. - AUDIO_ENCODING_AMR = 4; - - // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_AMR_WB = 5; - - // Opus encoded audio frames in Ogg container - // ([OggOpus](https://wiki.xiph.org/OggOpus)). - // `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_OGG_OPUS = 6; - - // Although the use of lossy encodings is not recommended, if a very low - // bitrate encoding is required, `OGG_OPUS` is highly preferred over - // Speex encoding. The [Speex](https://speex.org/) encoding supported by - // Dialogflow API has a header byte in each block, as in MIME type - // `audio/x-speex-with-header-byte`. - // It is a variant of the RTP Speex encoding defined in - // [RFC 5574](https://tools.ietf.org/html/rfc5574). - // The stream is a sequence of blocks, one block per RTP packet. Each block - // starts with a byte containing the length of the block, in bytes, followed - // by one or more frames of Speex data, padded to an integral number of - // bytes (octets) as specified in RFC 5574. In other words, each RTP header - // is replaced with a single byte containing the block length. Only Speex - // wideband is supported. `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; -} diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto index f2d22b8dd8a2..3b6f14f14e96 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// 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.v2beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/entity_type.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -40,11 +42,11 @@ 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: "/v2beta1/{parent=projects/*/agent/sessions/*}/entityTypes" additional_bindings { @@ -54,8 +56,7 @@ service SessionEntityTypes { } // Retrieves the specified session entity type. - rpc GetSessionEntityType(GetSessionEntityTypeRequest) - returns (SessionEntityType) { + rpc GetSessionEntityType(GetSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { get: "/v2beta1/{name=projects/*/agent/sessions/*/entityTypes/*}" additional_bindings { @@ -65,8 +66,10 @@ service SessionEntityTypes { } // 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: "/v2beta1/{parent=projects/*/agent/sessions/*}/entityTypes" body: "session_entity_type" @@ -78,8 +81,7 @@ service SessionEntityTypes { } // Updates the specified session entity type. - rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) - returns (SessionEntityType) { + rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { patch: "/v2beta1/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}" body: "session_entity_type" @@ -91,8 +93,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: "/v2beta1/{name=projects/*/agent/sessions/*/entityTypes/*}" additional_bindings { @@ -121,10 +122,13 @@ 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.v2beta1.EntityTypes.GetEntityType] on the developer entity type + // and merge. ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; } @@ -135,6 +139,9 @@ message SessionEntityType { // ID>/sessions//entityTypes/`. // If `Environment ID` is not specified, we assume default 'draft' // environment. If `User ID` is not specified, we assume default '-' user. + // + // `` 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 @@ -146,8 +153,7 @@ message SessionEntityType { repeated EntityType.Entity entities = 3; } -// The request message for -// [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes]. +// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes]. message ListSessionEntityTypesRequest { // Required. The session to list all session entity types from. // Format: `projects//agent/sessions/` or @@ -165,8 +171,7 @@ message ListSessionEntityTypesRequest { string page_token = 3; } -// The response message for -// [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes]. +// The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.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. @@ -177,8 +182,7 @@ message ListSessionEntityTypesResponse { string next_page_token = 2; } -// The request message for -// [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType]. +// The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType]. message GetSessionEntityTypeRequest { // Required. The name of the session entity type. Format: // `projects//agent/sessions//entityTypes//agent/sessions/` or @@ -204,8 +207,7 @@ message CreateSessionEntityTypeRequest { SessionEntityType session_entity_type = 2; } -// The request message for -// [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType]. +// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.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 @@ -116,20 +120,18 @@ message OriginalDetectIntentRequest { // This field is AoG-specific. string version = 2; - // 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. // - // This field is used for the telephony gateway. It should have a - // structure similar to this JSON message: + // In particular for the Telephony Gateway this field has the form: //
{
   //  "telephony": {
   //    "caller_id": "+18558363987"
   //  }
   // }
- // Note: The caller ID field (`caller_id`) will be in - // [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported - // for Enterprise Edition and not for Standard Edition agents. When the - // telephony gateway is used with a standard tier agent the `caller_id` field - // above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`. + // 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-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index c4108db3f9bc..77f634d1e2eb 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -52,18 +52,19 @@ * 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). + * Edition. For details, see [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. * - *

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. + *

Dialogflow provides several [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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -445,8 +446,7 @@ public final UnaryCallable searchAgen /** * 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]> * *

Sample code: * @@ -474,8 +474,7 @@ public final OperationFuture trainAgentAsync(ProjectName parent) /** * 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]> * *

Sample code: * @@ -502,8 +501,7 @@ public final OperationFuture trainAgentAsync(String parent) { /** * 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]> * *

Sample code: * @@ -530,8 +528,7 @@ public final OperationFuture trainAgentAsync(TrainAgentRequest re /** * 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]> * *

Sample code: * @@ -556,8 +553,7 @@ public final OperationCallable trainAgentOpera /** * 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]> * *

Sample code: * @@ -582,8 +578,7 @@ public final UnaryCallable trainAgentCallable() { * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> * *

Sample code: * @@ -614,8 +609,7 @@ public final OperationFuture exportAgentAsync(Proje * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> * *

Sample code: * @@ -643,8 +637,7 @@ public final OperationFuture exportAgentAsync(Strin * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> * *

Sample code: * @@ -673,8 +666,7 @@ public final OperationFuture exportAgentAsync( * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> * *

Sample code: * @@ -701,8 +693,7 @@ public final OperationFuture exportAgentAsync( * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]> * *

Sample code: * @@ -729,8 +720,7 @@ public final UnaryCallable exportAgentCallable() *

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]> * *

Sample code: * @@ -760,8 +750,7 @@ public final OperationFuture importAgentAsync(ImportAgentRequest *

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]> * *

Sample code: * @@ -789,8 +778,7 @@ public final OperationCallable importAgentOpe *

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]> * *

Sample code: * @@ -817,8 +805,7 @@ public final UnaryCallable importAgentCallable() *

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]> * *

Sample code: * @@ -848,8 +835,7 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

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]> * *

Sample code: * @@ -878,8 +864,7 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

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]> * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index af6bab205a0d..e7733cd38ea0 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -47,10 +47,10 @@ * [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. + * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -394,6 +394,8 @@ public final UnaryCallable getContextCallable() { /** * Creates a context. * + *

If the specified context already exists, overrides the context. + * *

Sample code: * *


@@ -423,6 +425,8 @@ public final Context createContext(SessionName parent, Context context) {
   /**
    * Creates a context.
    *
+   * 

If the specified context already exists, overrides the context. + * *

Sample code: * *


@@ -449,6 +453,8 @@ public final Context createContext(String parent, Context context) {
   /**
    * Creates a context.
    *
+   * 

If the specified context already exists, overrides the context. + * *

Sample code: * *


@@ -474,6 +480,8 @@ public final Context createContext(CreateContextRequest request) {
   /**
    * Creates a context.
    *
+   * 

If the specified context already exists, overrides the context. + * *

Sample code: * *


diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
index dc9fb2da4cbf..088ea9f0542c 100644
--- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
+++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
@@ -65,7 +65,7 @@
  * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type.
  *
  * 

For more information about entity types, see the [Dialogflow - * documentation](https://dialogflow.com/docs/entities). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -265,9 +265,9 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) { * @param parent Required. The agent to list all entity types from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEntityTypesPagedResponse listEntityTypes( @@ -299,9 +299,9 @@ public final ListEntityTypesPagedResponse listEntityTypes( * @param parent Required. The agent to list all entity types from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEntityTypesPagedResponse listEntityTypes(String parent, String languageCode) { @@ -456,9 +456,9 @@ public final EntityType getEntityType(String name) { * @param name Required. The name of the entity type. Format: `projects/<Project * ID>/agent/entityTypes/<EntityType ID>`. * @param languageCode 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. + * the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType getEntityType(EntityTypeName name, String languageCode) { @@ -488,9 +488,9 @@ public final EntityType getEntityType(EntityTypeName name, String languageCode) * @param name Required. The name of the entity type. Format: `projects/<Project * ID>/agent/entityTypes/<EntityType ID>`. * @param languageCode 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. + * the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType getEntityType(String name, String languageCode) { @@ -619,9 +619,9 @@ public final EntityType createEntityType(String parent, EntityType entityType) { * ID>/agent`. * @param entityType Required. The entity type to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType createEntityType( @@ -655,9 +655,9 @@ public final EntityType createEntityType( * ID>/agent`. * @param entityType Required. The entity type to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType createEntityType( @@ -734,8 +734,7 @@ public final UnaryCallable createEntityType * } *

* - * @param entityType Required. The entity type to update. Format: `projects/<Project - * ID>/agent/entityTypes/<EntityType ID>`. + * @param entityType Required. The entity type to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType updateEntityType(EntityType entityType) { @@ -759,12 +758,11 @@ public final EntityType updateEntityType(EntityType entityType) { * } *
* - * @param entityType Required. The entity type to update. Format: `projects/<Project - * ID>/agent/entityTypes/<EntityType ID>`. + * @param entityType Required. The entity type to update. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType updateEntityType(EntityType entityType, String languageCode) { @@ -919,8 +917,7 @@ public final UnaryCallable deleteEntityTypeCalla * Updates/Creates multiple entity types in the specified agent. * *

Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> * *

Sample code: * @@ -949,8 +946,7 @@ public final OperationFuture batchUpdate * Updates/Creates multiple entity types in the specified agent. * *

Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> * *

Sample code: * @@ -978,8 +974,7 @@ public final OperationFuture batchUpdate * Updates/Creates multiple entity types in the specified agent. * *

Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse]> * *

Sample code: * @@ -1004,8 +999,7 @@ public final OperationFuture batchUpdate /** * 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]> * *

Sample code: * @@ -1040,8 +1034,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1076,8 +1069,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1107,8 +1099,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1136,8 +1127,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1162,8 +1152,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1179,7 +1168,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1197,8 +1186,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1214,7 +1202,7 @@ public final OperationFuture batchCreateEntitiesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1229,8 +1217,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1247,11 +1234,11 @@ public final OperationFuture batchCreateEntitiesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1270,8 +1257,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1288,11 +1274,11 @@ public final OperationFuture batchCreateEntitiesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1311,8 +1297,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1342,8 +1327,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1371,8 +1355,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1398,10 +1381,10 @@ public final UnaryCallable batchCreateEnt // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1413,9 +1396,9 @@ public final UnaryCallable batchCreateEnt * } *

* - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1433,10 +1416,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1448,9 +1431,9 @@ public final OperationFuture batchUpdateEntitiesAsync( * } *

* - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1465,10 +1448,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1481,13 +1464,13 @@ public final OperationFuture batchUpdateEntitiesAsync( * } * * - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1506,10 +1489,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1522,13 +1505,13 @@ public final OperationFuture batchUpdateEntitiesAsync( * } * * - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1547,10 +1530,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1578,10 +1561,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1607,10 +1590,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1636,8 +1619,7 @@ public final UnaryCallable batchUpdateEnt /** * 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]> * *

Sample code: * @@ -1672,8 +1654,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1708,8 +1689,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1727,9 +1707,9 @@ public final OperationFuture batchDeleteEntitiesAsync( * @param entityValues Required. The canonical `values` of the entities to delete. Note that these * are not fully-qualified names, i.e. they don't start with `projects/<Project ID>`. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1750,8 +1730,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1769,9 +1748,9 @@ public final OperationFuture batchDeleteEntitiesAsync( * @param entityValues Required. The canonical `values` of the entities to delete. Note that these * are not fully-qualified names, i.e. they don't start with `projects/<Project ID>`. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1792,8 +1771,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1823,8 +1801,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1852,8 +1829,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index 664607a48b23..36a6f34346e1 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -54,7 +54,7 @@ * *

* **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 + * provide a context to determine when to match the 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". * @@ -68,7 +68,7 @@ * Dialogflow API agent to better match intents. * *

For more information about intents, see the [Dialogflow - * documentation](https://dialogflow.com/docs/intents). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -267,9 +267,9 @@ public final ListIntentsPagedResponse listIntents(String parent) { * @param parent Required. The agent to list all intents from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntentsPagedResponse listIntents(ProjectAgentName parent, String languageCode) { @@ -300,9 +300,9 @@ public final ListIntentsPagedResponse listIntents(ProjectAgentName parent, Strin * @param parent Required. The agent to list all intents from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntentsPagedResponse listIntents(String parent, String languageCode) { @@ -456,9 +456,9 @@ public final Intent getIntent(String name) { * @param name Required. The name of the intent. Format: `projects/<Project * ID>/agent/intents/<Intent ID>`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent getIntent(IntentName name, String languageCode) { @@ -488,9 +488,9 @@ public final Intent getIntent(IntentName name, String languageCode) { * @param name Required. The name of the intent. Format: `projects/<Project * ID>/agent/intents/<Intent ID>`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent getIntent(String name, String languageCode) { @@ -619,9 +619,9 @@ public final Intent createIntent(String parent, Intent intent) { * ID>/agent`. * @param intent Required. The intent to create. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent createIntent(ProjectAgentName parent, Intent intent, String languageCode) { @@ -654,9 +654,9 @@ public final Intent createIntent(ProjectAgentName parent, Intent intent, String * ID>/agent`. * @param intent Required. The intent to create. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent createIntent(String parent, Intent intent, String languageCode) { @@ -733,12 +733,11 @@ public final UnaryCallable createIntentCallable() { * } * * - * @param intent Required. The intent to update. Format: `projects/<Project - * ID>/agent/intents/<Intent ID>`. + * @param intent Required. The intent to update. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent updateIntent(Intent intent, String languageCode) { @@ -763,12 +762,11 @@ public final Intent updateIntent(Intent intent, String languageCode) { * } * * - * @param intent Required. The intent to update. Format: `projects/<Project - * ID>/agent/intents/<Intent ID>`. + * @param intent Required. The intent to update. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @param updateMask Optional. The mask to control which fields get updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -834,7 +832,7 @@ public final UnaryCallable updateIntentCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * @@ -845,7 +843,8 @@ public final UnaryCallable updateIntentCallable() { * } * * - * @param name Required. The name of the intent to delete. Format: `projects/<Project + * @param name 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>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -858,7 +857,7 @@ public final void deleteIntent(IntentName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * @@ -869,7 +868,8 @@ public final void deleteIntent(IntentName name) { * } * * - * @param name Required. The name of the intent to delete. Format: `projects/<Project + * @param name 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>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -881,7 +881,7 @@ public final void deleteIntent(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * @@ -904,7 +904,7 @@ public final void deleteIntent(DeleteIntentRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 01b6469abb47..e06bee40eb40 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -45,7 +45,7 @@ * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -399,6 +399,8 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest /** * Creates a session entity type. * + *

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


@@ -429,6 +431,8 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
+   * 

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


@@ -459,6 +463,8 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
+   * 

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


@@ -484,6 +490,8 @@ public final SessionEntityType createSessionEntityType(CreateSessionEntityTypeRe
   /**
    * Creates a session entity type.
    *
+   * 

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java
index cb77f2e3a9a6..6b33cbb88c61 100644
--- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java
+++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java
@@ -32,18 +32,19 @@
  * 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). + * Edition. For details, see [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. * - *

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. + *

Dialogflow provides several [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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * *

Sample for AgentsClient: * @@ -69,10 +70,10 @@ * [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. + * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * *

Sample for ContextsClient: * @@ -111,7 +112,7 @@ * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * *

For more information about entity types, see the [Dialogflow - * documentation](https://dialogflow.com/docs/entities). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

Sample for EntityTypesClient: * @@ -138,7 +139,7 @@ * *

* **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 + * provide a context to determine when to match the 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". * @@ -152,7 +153,7 @@ * Dialogflow API agent to better match intents. * *

For more information about intents, see the [Dialogflow - * documentation](https://dialogflow.com/docs/intents). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * *

Sample for IntentsClient: * @@ -176,7 +177,7 @@ * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

Sample for SessionEntityTypesClient: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java index d73f3a246d8f..214e2c62515b 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java @@ -95,7 +95,10 @@ public class AgentsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final UnaryCallSettings getAgentSettings; private final PagedCallSettings< diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java index ce559660bdf5..f541709ed0ec 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java @@ -88,7 +88,10 @@ public class ContextsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java index 93c0eb5a1c2c..5fb0d15ec91d 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java @@ -99,7 +99,10 @@ public class EntityTypesStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java index 8c2218453796..b0268d6418ed 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java @@ -96,7 +96,10 @@ public class IntentsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings listIntentsSettings; diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java index 4987f22a5ae5..f945c7216a82 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java @@ -87,7 +87,10 @@ public class SessionEntityTypesStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListSessionEntityTypesRequest, diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java index e69afceaf881..3c0384f23079 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java @@ -75,7 +75,10 @@ public class SessionsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final UnaryCallSettings detectIntentSettings; private final StreamingCallSettings diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index d46ad05a83cb..f747edef62f3 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -59,12 +59,12 @@ * [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. + *

Dialogflow provides several [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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -446,8 +446,7 @@ public final UnaryCallable searchAgen /** * 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]> * *

Sample code: * @@ -475,8 +474,7 @@ public final OperationFuture trainAgentAsync(ProjectName parent) /** * 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]> * *

Sample code: * @@ -503,8 +501,7 @@ public final OperationFuture trainAgentAsync(String parent) { /** * 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]> * *

Sample code: * @@ -531,8 +528,7 @@ public final OperationFuture trainAgentAsync(TrainAgentRequest re /** * 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]> * *

Sample code: * @@ -557,8 +553,7 @@ public final OperationCallable trainAgentOpera /** * 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]> * *

Sample code: * @@ -583,8 +578,7 @@ public final UnaryCallable trainAgentCallable() { * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> * *

Sample code: * @@ -615,8 +609,7 @@ public final OperationFuture exportAgentAsync(Proje * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> * *

Sample code: * @@ -644,8 +637,7 @@ public final OperationFuture exportAgentAsync(Strin * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> * *

Sample code: * @@ -674,8 +666,7 @@ public final OperationFuture exportAgentAsync( * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> * *

Sample code: * @@ -702,8 +693,7 @@ public final OperationFuture exportAgentAsync( * Exports the specified agent to a ZIP file. * *

Operation <response: - * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + * [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]> * *

Sample code: * @@ -730,8 +720,7 @@ public final UnaryCallable exportAgentCallable() *

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]> * *

Sample code: * @@ -761,8 +750,7 @@ public final OperationFuture importAgentAsync(ImportAgentRequest *

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]> * *

Sample code: * @@ -790,8 +778,7 @@ public final OperationCallable importAgentOpe *

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]> * *

Sample code: * @@ -818,8 +805,7 @@ public final UnaryCallable importAgentCallable() *

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]> * *

Sample code: * @@ -849,8 +835,7 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

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]> * *

Sample code: * @@ -879,8 +864,7 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

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]> * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java index f4649b63d65e..516c716da7b2 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java @@ -47,10 +47,10 @@ * [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. + * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -408,6 +408,8 @@ public final UnaryCallable getContextCallable() { /** * Creates a context. * + *

If the specified context already exists, overrides the context. + * *

Sample code: * *


@@ -440,6 +442,8 @@ public final Context createContext(SessionName parent, Context context) {
   /**
    * Creates a context.
    *
+   * 

If the specified context already exists, overrides the context. + * *

Sample code: * *


@@ -469,6 +473,8 @@ public final Context createContext(String parent, Context context) {
   /**
    * Creates a context.
    *
+   * 

If the specified context already exists, overrides the context. + * *

Sample code: * *


@@ -494,6 +500,8 @@ public final Context createContext(CreateContextRequest request) {
   /**
    * Creates a context.
    *
+   * 

If the specified context already exists, overrides the context. + * *

Sample code: * *


diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
index 360b0437c3a3..f71f4358f7e5 100644
--- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
+++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
@@ -65,7 +65,7 @@
  * [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] type.
  *
  * 

For more information about entity types, see the [Dialogflow - * documentation](https://dialogflow.com/docs/entities). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -265,9 +265,9 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) { * @param parent Required. The agent to list all entity types from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEntityTypesPagedResponse listEntityTypes( @@ -299,9 +299,9 @@ public final ListEntityTypesPagedResponse listEntityTypes( * @param parent Required. The agent to list all entity types from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEntityTypesPagedResponse listEntityTypes(String parent, String languageCode) { @@ -456,9 +456,9 @@ public final EntityType getEntityType(String name) { * @param name Required. The name of the entity type. Format: `projects/<Project * ID>/agent/entityTypes/<EntityType ID>`. * @param languageCode 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. + * the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType getEntityType(EntityTypeName name, String languageCode) { @@ -488,9 +488,9 @@ public final EntityType getEntityType(EntityTypeName name, String languageCode) * @param name Required. The name of the entity type. Format: `projects/<Project * ID>/agent/entityTypes/<EntityType ID>`. * @param languageCode 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. + * the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType getEntityType(String name, String languageCode) { @@ -619,9 +619,9 @@ public final EntityType createEntityType(String parent, EntityType entityType) { * ID>/agent`. * @param entityType Required. The entity type to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType createEntityType( @@ -655,9 +655,9 @@ public final EntityType createEntityType( * ID>/agent`. * @param entityType Required. The entity type to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType createEntityType( @@ -734,8 +734,7 @@ public final UnaryCallable createEntityType * } *

* - * @param entityType Required. The entity type to update. Format: `projects/<Project - * ID>/agent/entityTypes/<EntityType ID>`. + * @param entityType Required. The entity type to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType updateEntityType(EntityType entityType) { @@ -759,12 +758,11 @@ public final EntityType updateEntityType(EntityType entityType) { * } *
* - * @param entityType Required. The entity type to update. Format: `projects/<Project - * ID>/agent/entityTypes/<EntityType ID>`. + * @param entityType Required. The entity type to update. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType updateEntityType(EntityType entityType, String languageCode) { @@ -919,8 +917,7 @@ public final UnaryCallable deleteEntityTypeCalla * Updates/Creates multiple entity types in the specified agent. * *

Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> * *

Sample code: * @@ -949,8 +946,7 @@ public final OperationFuture batchUpdate * Updates/Creates multiple entity types in the specified agent. * *

Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> * *

Sample code: * @@ -978,8 +974,7 @@ public final OperationFuture batchUpdate * Updates/Creates multiple entity types in the specified agent. * *

Operation <response: - * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse], - * metadata: [google.protobuf.Struct][google.protobuf.Struct]> + * [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]> * *

Sample code: * @@ -1004,8 +999,7 @@ public final OperationFuture batchUpdate /** * 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]> * *

Sample code: * @@ -1040,8 +1034,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1076,8 +1069,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1107,8 +1099,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1136,8 +1127,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( /** * 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]> * *

Sample code: * @@ -1162,8 +1152,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1179,7 +1168,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1197,8 +1186,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1214,7 +1202,7 @@ public final OperationFuture batchCreateEntitiesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1229,8 +1217,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1247,11 +1234,11 @@ public final OperationFuture batchCreateEntitiesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1270,8 +1257,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1288,11 +1274,11 @@ public final OperationFuture batchCreateEntitiesAsync( * * @param parent Required. The name of the entity type to create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of entities to create. + * @param entities Required. The entities to create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1311,8 +1297,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1342,8 +1327,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1371,8 +1355,7 @@ public final OperationFuture batchCreateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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]> * @@ -1398,10 +1381,10 @@ public final UnaryCallable batchCreateEnt // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1413,9 +1396,9 @@ public final UnaryCallable batchCreateEnt * } *

* - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1433,10 +1416,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1448,9 +1431,9 @@ public final OperationFuture batchUpdateEntitiesAsync( * } *

* - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1465,10 +1448,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1481,13 +1464,13 @@ public final OperationFuture batchUpdateEntitiesAsync( * } *

* - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1506,10 +1489,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1522,13 +1505,13 @@ public final OperationFuture batchUpdateEntitiesAsync( * } *

* - * @param parent Required. The name of the entity type to update the entities in. Format: + * @param parent Required. The name of the entity type to update or create entities in. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. - * @param entities Required. The collection of new entities to replace the existing entities. + * @param entities Required. The entities to update or create. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1547,10 +1530,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1578,10 +1561,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1607,10 +1590,10 @@ public final OperationFuture batchUpdateEntitiesAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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 <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: - * [google.protobuf.Struct][google.protobuf.Struct]> + *

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> * *

Sample code: * @@ -1636,8 +1619,7 @@ public final UnaryCallable batchUpdateEnt /** * 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]> * *

Sample code: * @@ -1672,8 +1654,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1708,8 +1689,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1727,9 +1707,9 @@ public final OperationFuture batchDeleteEntitiesAsync( * @param entityValues Required. The canonical `values` of the entities to delete. Note that these * are not fully-qualified names, i.e. they don't start with `projects/<Project ID>`. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1750,8 +1730,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1769,9 +1748,9 @@ public final OperationFuture batchDeleteEntitiesAsync( * @param entityValues Required. The canonical `values` of the entities to delete. Note that these * are not fully-qualified names, i.e. they don't start with `projects/<Project ID>`. * @param languageCode 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. + * specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1792,8 +1771,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1823,8 +1801,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * @@ -1852,8 +1829,7 @@ public final OperationFuture batchDeleteEntitiesAsync( /** * 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]> * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index 3289763b9139..e48bb46fab96 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -54,7 +54,7 @@ * *

* **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 + * provide a context to determine when to match the 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". * @@ -68,7 +68,7 @@ * Dialogflow API agent to better match intents. * *

For more information about intents, see the [Dialogflow - * documentation](https://dialogflow.com/docs/intents). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -267,9 +267,9 @@ public final ListIntentsPagedResponse listIntents(String parent) { * @param parent Required. The agent to list all intents from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntentsPagedResponse listIntents(ProjectAgentName parent, String languageCode) { @@ -300,9 +300,9 @@ public final ListIntentsPagedResponse listIntents(ProjectAgentName parent, Strin * @param parent Required. The agent to list all intents from. Format: `projects/<Project * ID>/agent`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntentsPagedResponse listIntents(String parent, String languageCode) { @@ -456,9 +456,9 @@ public final Intent getIntent(String name) { * @param name Required. The name of the intent. Format: `projects/<Project * ID>/agent/intents/<Intent ID>`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent getIntent(IntentName name, String languageCode) { @@ -488,9 +488,9 @@ public final Intent getIntent(IntentName name, String languageCode) { * @param name Required. The name of the intent. Format: `projects/<Project * ID>/agent/intents/<Intent ID>`. * @param languageCode 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. + * messages for. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent getIntent(String name, String languageCode) { @@ -619,9 +619,9 @@ public final Intent createIntent(String parent, Intent intent) { * ID>/agent`. * @param intent Required. The intent to create. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent createIntent(ProjectAgentName parent, Intent intent, String languageCode) { @@ -654,9 +654,9 @@ public final Intent createIntent(ProjectAgentName parent, Intent intent, String * ID>/agent`. * @param intent Required. The intent to create. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent createIntent(String parent, Intent intent, String languageCode) { @@ -733,12 +733,11 @@ public final UnaryCallable createIntentCallable() { * } *

* - * @param intent Required. The intent to update. Format: `projects/<Project - * ID>/agent/intents/<Intent ID>`. + * @param intent Required. The intent to update. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Intent updateIntent(Intent intent, String languageCode) { @@ -763,12 +762,11 @@ public final Intent updateIntent(Intent intent, String languageCode) { * } *
* - * @param intent Required. The intent to update. Format: `projects/<Project - * ID>/agent/intents/<Intent ID>`. + * @param intent Required. The intent to update. * @param languageCode 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. + * defined in `intent`. If not specified, the agent's default language is 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. * @param updateMask Optional. The mask to control which fields get updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -834,7 +832,7 @@ public final UnaryCallable updateIntentCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * @@ -845,8 +843,9 @@ public final UnaryCallable updateIntentCallable() { * } * * - * @param name Required. The name of the intent to delete. Format: `projects/<Project - * ID>/agent/intents/<Intent ID>`. + * @param name 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>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteIntent(IntentName name) { @@ -858,7 +857,7 @@ public final void deleteIntent(IntentName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * @@ -869,8 +868,9 @@ public final void deleteIntent(IntentName name) { * } * * - * @param name Required. The name of the intent to delete. Format: `projects/<Project - * ID>/agent/intents/<Intent ID>`. + * @param name 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>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteIntent(String name) { @@ -881,7 +881,7 @@ public final void deleteIntent(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * @@ -904,7 +904,7 @@ public final void deleteIntent(DeleteIntentRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified intent. + * Deletes the specified intent and its direct or indirect followup intents. * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index 4ca6a8a625cc..e4d157fb0f68 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -171,8 +171,8 @@ public KnowledgeBasesStub getStub() { * } * * - * @param parent Required. The agent to list of knowledge bases for. Format: `projects/<Project - * ID>/agent`. + * @param parent Required. The project to list of knowledge bases for. Format: + * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListKnowledgeBasesPagedResponse listKnowledgeBases(ProjectName parent) { @@ -198,8 +198,8 @@ public final ListKnowledgeBasesPagedResponse listKnowledgeBases(ProjectName pare * } * * - * @param parent Required. The agent to list of knowledge bases for. Format: `projects/<Project - * ID>/agent`. + * @param parent Required. The project to list of knowledge bases for. Format: + * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListKnowledgeBasesPagedResponse listKnowledgeBases(String parent) { @@ -397,8 +397,8 @@ public final UnaryCallable getKnowledgeB * } * * - * @param parent Required. The agent to create a knowledge base for. Format: `projects/<Project - * ID>/agent`. + * @param parent Required. The project to create a knowledge base for. Format: + * `projects/<Project ID>`. * @param knowledgeBase Required. The knowledge base to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -426,8 +426,8 @@ public final KnowledgeBase createKnowledgeBase(ProjectName parent, KnowledgeBase * } * * - * @param parent Required. The agent to create a knowledge base for. Format: `projects/<Project - * ID>/agent`. + * @param parent Required. The project to create a knowledge base for. Format: + * `projects/<Project ID>`. * @param knowledgeBase Required. The knowledge base to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java index feb59874d13a..5150907b8e9c 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java @@ -45,7 +45,7 @@ * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -413,6 +413,8 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest /** * Creates a session entity type. * + *

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


@@ -446,6 +448,8 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
+   * 

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


@@ -479,6 +483,8 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
+   * 

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


@@ -504,6 +510,8 @@ public final SessionEntityType createSessionEntityType(CreateSessionEntityTypeRe
   /**
    * Creates a session entity type.
    *
+   * 

If the specified session entity type already exists, overrides the session entity type. + * *

Sample code: * *


diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java
index e979877623a7..1a044f29f712 100644
--- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java
+++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java
@@ -39,12 +39,12 @@
  * [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. + *

Dialogflow provides several [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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview). * *

Sample for AgentsClient: * @@ -70,10 +70,10 @@ * [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. + * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * *

Sample for ContextsClient: * @@ -127,7 +127,7 @@ * [SessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityType] type. * *

For more information about entity types, see the [Dialogflow - * documentation](https://dialogflow.com/docs/entities). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

Sample for EntityTypesClient: * @@ -154,7 +154,7 @@ * *

* **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 + * provide a context to determine when to match the 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". * @@ -168,7 +168,7 @@ * Dialogflow API agent to better match intents. * *

For more information about intents, see the [Dialogflow - * documentation](https://dialogflow.com/docs/intents). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview). * *

Sample for IntentsClient: * @@ -209,7 +209,7 @@ * 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). + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * *

Sample for SessionEntityTypesClient: * diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java index f56ef0fb32d5..7a4393f24262 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java @@ -95,7 +95,10 @@ public class AgentsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final UnaryCallSettings getAgentSettings; private final PagedCallSettings< diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java index 12e26d8d3772..47a7d1b566c7 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java @@ -88,7 +88,10 @@ public class ContextsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListContextsRequest, ListContextsResponse, ListContextsPagedResponse> diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java index 6d309779410c..49c1a4f0eddf 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java @@ -92,7 +92,10 @@ public class DocumentsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListDocumentsRequest, ListDocumentsResponse, ListDocumentsPagedResponse> diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java index faac5d682310..973122a9cfe4 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java @@ -99,7 +99,10 @@ public class EntityTypesStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse> diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java index 79a242a159fc..f50a57600970 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java @@ -96,7 +96,10 @@ public class IntentsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings listIntentsSettings; diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java index 37b4282aee4e..19921b64c154 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java @@ -86,7 +86,10 @@ public class KnowledgeBasesStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, ListKnowledgeBasesPagedResponse> diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java index fd5a28239b43..77a384c44e69 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java @@ -87,7 +87,10 @@ public class SessionEntityTypesStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final PagedCallSettings< ListSessionEntityTypesRequest, diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java index 6edc2d8862d2..06a0c76547f6 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java @@ -75,7 +75,10 @@ public class SessionsStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); private final UnaryCallSettings detectIntentSettings; private final StreamingCallSettings diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java index 97d035d41346..ce7b0d35a776 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.protobuf.ByteString; import com.google.protobuf.GeneratedMessageV3; import io.grpc.Status; import io.grpc.StatusRuntimeException; @@ -99,8 +100,12 @@ public void tearDown() throws Exception { @SuppressWarnings("all") public void detectIntentTest() { String responseId = "responseId1847552473"; + ByteString outputAudio = ByteString.copyFromUtf8("24"); DetectIntentResponse expectedResponse = - DetectIntentResponse.newBuilder().setResponseId(responseId).build(); + DetectIntentResponse.newBuilder() + .setResponseId(responseId) + .setOutputAudio(outputAudio) + .build(); mockSessions.addResponse(expectedResponse); SessionName session = SessionName.of("[PROJECT]", "[SESSION]"); @@ -142,8 +147,12 @@ public void detectIntentExceptionTest() throws Exception { @SuppressWarnings("all") public void streamingDetectIntentTest() throws Exception { String responseId = "responseId1847552473"; + ByteString outputAudio = ByteString.copyFromUtf8("24"); StreamingDetectIntentResponse expectedResponse = - StreamingDetectIntentResponse.newBuilder().setResponseId(responseId).build(); + StreamingDetectIntentResponse.newBuilder() + .setResponseId(responseId) + .setOutputAudio(outputAudio) + .build(); mockSessions.addResponse(expectedResponse); String session = "session1984987798"; QueryInput queryInput = QueryInput.newBuilder().build(); diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.metadata b/google-cloud-clients/google-cloud-dialogflow/synth.metadata index edd1821f80b4..6c3e8e0b8d22 100644 --- a/google-cloud-clients/google-cloud-dialogflow/synth.metadata +++ b/google-cloud-clients/google-cloud-dialogflow/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-03-29T07:42:51.662505Z", + "updateTime": "2019-03-30T07:42:07.239520Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "37386f1ebcaed51bcb7d15d00124d22c38606e45", - "internalRef": "240841842" + "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b", + "internalRef": "241096997" } } ],