From 3bc6bc3bf6e8eb5c07235e433655ff06d91f7004 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Fri, 1 Nov 2019 14:45:54 -0600 Subject: [PATCH] feat: make repo releasable, add parent/bom (#1) --- .github/ISSUE_TEMPLATE/bug_report.md | 51 + .github/ISSUE_TEMPLATE/feature_request.md | 21 + .github/ISSUE_TEMPLATE/support_request.md | 7 + .github/PULL_REQUEST_TEMPLATE.md | 1 + .github/release-please.yml | 1 + .gitignore | 44 + .idea/java-dialogflow.iml | 12 + .idea/misc.xml | 14 + .idea/modules.xml | 14 + .idea/vcs.xml | 6 + .kokoro/build.bat | 3 + .kokoro/build.sh | 60 + .kokoro/coerce_logs.sh | 38 + .kokoro/common.cfg | 13 + .kokoro/continuous/common.cfg | 25 + .kokoro/continuous/dependencies.cfg | 12 + .kokoro/continuous/integration.cfg | 7 + .kokoro/continuous/java11.cfg | 7 + .kokoro/continuous/java7.cfg | 7 + .kokoro/continuous/java8-osx.cfg | 3 + .kokoro/continuous/java8-win.cfg | 3 + .kokoro/continuous/java8.cfg | 7 + .kokoro/continuous/lint.cfg | 13 + .kokoro/continuous/propose_release.cfg | 53 + .kokoro/continuous/propose_release.sh | 29 + .kokoro/dependencies.sh | 27 + .kokoro/linkage-monitor.sh | 33 + .kokoro/nightly/common.cfg | 25 + .kokoro/nightly/dependencies.cfg | 12 + .kokoro/nightly/integration.cfg | 7 + .kokoro/nightly/java11.cfg | 7 + .kokoro/nightly/java7.cfg | 7 + .kokoro/nightly/java8-osx.cfg | 3 + .kokoro/nightly/java8-win.cfg | 3 + .kokoro/nightly/java8.cfg | 7 + .kokoro/nightly/lint.cfg | 13 + .kokoro/presubmit/clirr.cfg | 13 + .kokoro/presubmit/common.cfg | 34 + .kokoro/presubmit/dependencies.cfg | 12 + .kokoro/presubmit/integration.cfg | 31 + .kokoro/presubmit/java11.cfg | 7 + .kokoro/presubmit/java7.cfg | 7 + .kokoro/presubmit/java8-osx.cfg | 3 + .kokoro/presubmit/java8-win.cfg | 3 + .kokoro/presubmit/java8.cfg | 7 + .kokoro/presubmit/linkage-monitor.cfg | 12 + .kokoro/presubmit/lint.cfg | 13 + .kokoro/release/bump_snapshot.cfg | 53 + .kokoro/release/bump_snapshot.sh | 30 + .kokoro/release/common.cfg | 49 + .kokoro/release/common.sh | 50 + .kokoro/release/drop.cfg | 9 + .kokoro/release/drop.sh | 32 + .kokoro/release/promote.cfg | 10 + .kokoro/release/promote.sh | 34 + .kokoro/release/publish_javadoc.cfg | 19 + .kokoro/release/publish_javadoc.sh | 55 + .kokoro/release/snapshot.cfg | 6 + .kokoro/release/snapshot.sh | 33 + .kokoro/release/stage.cfg | 44 + .kokoro/release/stage.sh | 42 + .kokoro/trampoline.sh | 24 + ....repo-metadata.json => .repo-metadata.json | 4 +- CODE_OF_CONDUCT.md | 93 + CONTRIBUTING.md | 28 + LICENSE | 5 +- .../README.md => README.md | 0 codecov.yaml | 4 + google-cloud-dialogflow-bom/pom.xml | 103 + google-cloud-dialogflow/pom.xml | 104 +- .../dialogflow/v2beta1/AgentsClient.java | 42 + .../dialogflow/v2beta1/AgentsSettings.java | 12 + .../dialogflow/v2beta1/stub/AgentsStub.java | 6 + .../v2beta1/stub/AgentsStubSettings.java | 33 +- .../v2beta1/stub/GrpcAgentsStub.java | 36 + .../v2beta1/EntityTypesClientTest.java | 42 +- .../v2beta1/KnowledgeBasesClientTest.java | 21 +- .../dialogflow/v2beta1/MockAgentsImpl.java | 15 + google-cloud-dialogflow/synth.py | 48 - grpc-google-cloud-dialogflow-v2/pom.xml | 64 +- .../cloud/dialogflow/v2/AgentsGrpc.java | 15 + .../cloud/dialogflow/v2/ContextsGrpc.java | 15 + .../cloud/dialogflow/v2/EntityTypesGrpc.java | 15 + .../cloud/dialogflow/v2/IntentsGrpc.java | 15 + .../dialogflow/v2/SessionEntityTypesGrpc.java | 15 + .../cloud/dialogflow/v2/SessionsGrpc.java | 15 + grpc-google-cloud-dialogflow-v2beta1/pom.xml | 64 +- .../cloud/dialogflow/v2beta1/AgentsGrpc.java | 152 + .../dialogflow/v2beta1/ContextsGrpc.java | 15 + .../dialogflow/v2beta1/DocumentsGrpc.java | 15 + .../dialogflow/v2beta1/EntityTypesGrpc.java | 15 + .../cloud/dialogflow/v2beta1/IntentsGrpc.java | 15 + .../v2beta1/KnowledgeBasesGrpc.java | 15 + .../v2beta1/SessionEntityTypesGrpc.java | 15 + .../dialogflow/v2beta1/SessionsGrpc.java | 15 + java.header | 15 + license-checks.xml | 10 + pom.xml | 268 + .../clirr-ignored-differences.xml | 9 + proto-google-cloud-dialogflow-v2/pom.xml | 18 +- .../com/google/cloud/dialogflow/v2/Agent.java | 15 + .../google/cloud/dialogflow/v2/AgentName.java | 18 +- .../cloud/dialogflow/v2/AgentOrBuilder.java | 15 + .../cloud/dialogflow/v2/AgentProto.java | 15 + .../cloud/dialogflow/v2/AudioConfigProto.java | 104 +- .../cloud/dialogflow/v2/AudioEncoding.java | 15 + .../v2/BatchCreateEntitiesRequest.java | 15 + .../BatchCreateEntitiesRequestOrBuilder.java | 15 + .../v2/BatchDeleteEntitiesRequest.java | 15 + .../BatchDeleteEntitiesRequestOrBuilder.java | 15 + .../v2/BatchDeleteEntityTypesRequest.java | 15 + ...atchDeleteEntityTypesRequestOrBuilder.java | 15 + .../v2/BatchDeleteIntentsRequest.java | 15 + .../BatchDeleteIntentsRequestOrBuilder.java | 15 + .../v2/BatchUpdateEntitiesRequest.java | 15 + .../BatchUpdateEntitiesRequestOrBuilder.java | 15 + .../v2/BatchUpdateEntityTypesRequest.java | 15 + ...atchUpdateEntityTypesRequestOrBuilder.java | 15 + .../v2/BatchUpdateEntityTypesResponse.java | 15 + ...tchUpdateEntityTypesResponseOrBuilder.java | 15 + .../v2/BatchUpdateIntentsRequest.java | 15 + .../BatchUpdateIntentsRequestOrBuilder.java | 15 + .../v2/BatchUpdateIntentsResponse.java | 15 + .../BatchUpdateIntentsResponseOrBuilder.java | 15 + .../google/cloud/dialogflow/v2/Context.java | 15 + .../cloud/dialogflow/v2/ContextName.java | 18 +- .../cloud/dialogflow/v2/ContextOrBuilder.java | 15 + .../cloud/dialogflow/v2/ContextProto.java | 15 + .../dialogflow/v2/CreateContextRequest.java | 15 + .../v2/CreateContextRequestOrBuilder.java | 15 + .../v2/CreateEntityTypeRequest.java | 15 + .../v2/CreateEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/CreateIntentRequest.java | 15 + .../v2/CreateIntentRequestOrBuilder.java | 15 + .../v2/CreateSessionEntityTypeRequest.java | 15 + ...eateSessionEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/DeleteAgentRequest.java | 15 + .../v2/DeleteAgentRequestOrBuilder.java | 15 + .../v2/DeleteAllContextsRequest.java | 15 + .../v2/DeleteAllContextsRequestOrBuilder.java | 15 + .../dialogflow/v2/DeleteContextRequest.java | 15 + .../v2/DeleteContextRequestOrBuilder.java | 15 + .../v2/DeleteEntityTypeRequest.java | 15 + .../v2/DeleteEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/DeleteIntentRequest.java | 15 + .../v2/DeleteIntentRequestOrBuilder.java | 15 + .../v2/DeleteSessionEntityTypeRequest.java | 15 + ...leteSessionEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/DetectIntentRequest.java | 15 + .../v2/DetectIntentRequestOrBuilder.java | 15 + .../dialogflow/v2/DetectIntentResponse.java | 15 + .../v2/DetectIntentResponseOrBuilder.java | 15 + .../cloud/dialogflow/v2/EntityType.java | 15 + .../cloud/dialogflow/v2/EntityTypeBatch.java | 15 + .../v2/EntityTypeBatchOrBuilder.java | 15 + .../cloud/dialogflow/v2/EntityTypeName.java | 18 +- .../dialogflow/v2/EntityTypeOrBuilder.java | 15 + .../cloud/dialogflow/v2/EntityTypeProto.java | 15 + .../cloud/dialogflow/v2/EventInput.java | 15 + .../dialogflow/v2/EventInputOrBuilder.java | 15 + .../dialogflow/v2/ExportAgentRequest.java | 15 + .../v2/ExportAgentRequestOrBuilder.java | 15 + .../dialogflow/v2/ExportAgentResponse.java | 63 +- .../v2/ExportAgentResponseOrBuilder.java | 27 +- .../cloud/dialogflow/v2/GetAgentRequest.java | 15 + .../v2/GetAgentRequestOrBuilder.java | 15 + .../dialogflow/v2/GetContextRequest.java | 15 + .../v2/GetContextRequestOrBuilder.java | 15 + .../dialogflow/v2/GetEntityTypeRequest.java | 15 + .../v2/GetEntityTypeRequestOrBuilder.java | 15 + .../cloud/dialogflow/v2/GetIntentRequest.java | 15 + .../v2/GetIntentRequestOrBuilder.java | 15 + .../v2/GetSessionEntityTypeRequest.java | 15 + .../GetSessionEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/ImportAgentRequest.java | 67 +- .../v2/ImportAgentRequestOrBuilder.java | 28 +- .../cloud/dialogflow/v2/InputAudioConfig.java | 15 + .../v2/InputAudioConfigOrBuilder.java | 15 + .../google/cloud/dialogflow/v2/Intent.java | 15 + .../cloud/dialogflow/v2/IntentBatch.java | 15 + .../dialogflow/v2/IntentBatchOrBuilder.java | 15 + .../cloud/dialogflow/v2/IntentName.java | 18 +- .../cloud/dialogflow/v2/IntentOrBuilder.java | 15 + .../cloud/dialogflow/v2/IntentProto.java | 15 + .../cloud/dialogflow/v2/IntentView.java | 15 + .../dialogflow/v2/ListContextsRequest.java | 15 + .../v2/ListContextsRequestOrBuilder.java | 15 + .../dialogflow/v2/ListContextsResponse.java | 15 + .../v2/ListContextsResponseOrBuilder.java | 15 + .../dialogflow/v2/ListEntityTypesRequest.java | 15 + .../v2/ListEntityTypesRequestOrBuilder.java | 15 + .../v2/ListEntityTypesResponse.java | 15 + .../v2/ListEntityTypesResponseOrBuilder.java | 15 + .../dialogflow/v2/ListIntentsRequest.java | 15 + .../v2/ListIntentsRequestOrBuilder.java | 15 + .../dialogflow/v2/ListIntentsResponse.java | 15 + .../v2/ListIntentsResponseOrBuilder.java | 15 + .../v2/ListSessionEntityTypesRequest.java | 15 + ...istSessionEntityTypesRequestOrBuilder.java | 15 + .../v2/ListSessionEntityTypesResponse.java | 15 + ...stSessionEntityTypesResponseOrBuilder.java | 15 + .../v2/OriginalDetectIntentRequest.java | 15 + .../OriginalDetectIntentRequestOrBuilder.java | 15 + .../dialogflow/v2/OutputAudioConfig.java | 15 + .../v2/OutputAudioConfigOrBuilder.java | 15 + .../dialogflow/v2/OutputAudioEncoding.java | 15 + .../cloud/dialogflow/v2/ProjectAgentName.java | 18 +- .../cloud/dialogflow/v2/ProjectName.java | 18 +- .../cloud/dialogflow/v2/QueryInput.java | 15 + .../dialogflow/v2/QueryInputOrBuilder.java | 15 + .../cloud/dialogflow/v2/QueryParameters.java | 15 + .../v2/QueryParametersOrBuilder.java | 15 + .../cloud/dialogflow/v2/QueryResult.java | 15 + .../dialogflow/v2/QueryResultOrBuilder.java | 15 + .../dialogflow/v2/RestoreAgentRequest.java | 67 +- .../v2/RestoreAgentRequestOrBuilder.java | 28 +- .../dialogflow/v2/SearchAgentsRequest.java | 15 + .../v2/SearchAgentsRequestOrBuilder.java | 15 + .../dialogflow/v2/SearchAgentsResponse.java | 15 + .../v2/SearchAgentsResponseOrBuilder.java | 15 + .../google/cloud/dialogflow/v2/Sentiment.java | 15 + .../v2/SentimentAnalysisRequestConfig.java | 15 + ...ntimentAnalysisRequestConfigOrBuilder.java | 15 + .../v2/SentimentAnalysisResult.java | 15 + .../v2/SentimentAnalysisResultOrBuilder.java | 15 + .../dialogflow/v2/SentimentOrBuilder.java | 15 + .../dialogflow/v2/SessionEntityType.java | 15 + .../dialogflow/v2/SessionEntityTypeName.java | 18 +- .../v2/SessionEntityTypeOrBuilder.java | 15 + .../dialogflow/v2/SessionEntityTypeProto.java | 15 + .../cloud/dialogflow/v2/SessionName.java | 18 +- .../cloud/dialogflow/v2/SessionProto.java | 224 +- .../cloud/dialogflow/v2/SetAgentRequest.java | 15 + .../v2/SetAgentRequestOrBuilder.java | 15 + .../dialogflow/v2/SpeechModelVariant.java | 15 + .../cloud/dialogflow/v2/SsmlVoiceGender.java | 15 + .../v2/StreamingDetectIntentRequest.java | 15 + ...StreamingDetectIntentRequestOrBuilder.java | 15 + .../v2/StreamingDetectIntentResponse.java | 15 + ...treamingDetectIntentResponseOrBuilder.java | 15 + .../v2/StreamingRecognitionResult.java | 15 + .../StreamingRecognitionResultOrBuilder.java | 15 + .../dialogflow/v2/SynthesizeSpeechConfig.java | 15 + .../v2/SynthesizeSpeechConfigOrBuilder.java | 15 + .../google/cloud/dialogflow/v2/TextInput.java | 15 + .../dialogflow/v2/TextInputOrBuilder.java | 15 + .../dialogflow/v2/TrainAgentRequest.java | 15 + .../v2/TrainAgentRequestOrBuilder.java | 15 + .../dialogflow/v2/UpdateContextRequest.java | 15 + .../v2/UpdateContextRequestOrBuilder.java | 15 + .../v2/UpdateEntityTypeRequest.java | 15 + .../v2/UpdateEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/UpdateIntentRequest.java | 15 + .../v2/UpdateIntentRequestOrBuilder.java | 15 + .../v2/UpdateSessionEntityTypeRequest.java | 15 + ...dateSessionEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2/VoiceSelectionParams.java | 15 + .../v2/VoiceSelectionParamsOrBuilder.java | 15 + .../cloud/dialogflow/v2/WebhookProto.java | 36 +- .../cloud/dialogflow/v2/WebhookRequest.java | 15 + .../v2/WebhookRequestOrBuilder.java | 15 + .../cloud/dialogflow/v2/WebhookResponse.java | 624 + .../v2/WebhookResponseOrBuilder.java | 88 + .../google/cloud/dialogflow/v2/agent.proto | 41 +- .../cloud/dialogflow/v2/audio_config.proto | 1 + .../google/cloud/dialogflow/v2/session.proto | 1 - .../google/cloud/dialogflow/v2/webhook.proto | 7 + .../clirr-ignored-differences.xml | 14 + proto-google-cloud-dialogflow-v2beta1/pom.xml | 18 +- .../cloud/dialogflow/v2beta1/Agent.java | 15 + .../dialogflow/v2beta1/AgentOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/AgentProto.java | 226 +- .../dialogflow/v2beta1/AudioConfigProto.java | 120 +- .../dialogflow/v2beta1/AudioEncoding.java | 15 + .../v2beta1/BatchCreateEntitiesRequest.java | 15 + .../BatchCreateEntitiesRequestOrBuilder.java | 15 + .../v2beta1/BatchDeleteEntitiesRequest.java | 15 + .../BatchDeleteEntitiesRequestOrBuilder.java | 15 + .../BatchDeleteEntityTypesRequest.java | 15 + ...atchDeleteEntityTypesRequestOrBuilder.java | 15 + .../v2beta1/BatchDeleteIntentsRequest.java | 15 + .../BatchDeleteIntentsRequestOrBuilder.java | 15 + .../v2beta1/BatchUpdateEntitiesRequest.java | 15 + .../BatchUpdateEntitiesRequestOrBuilder.java | 15 + .../BatchUpdateEntityTypesRequest.java | 15 + ...atchUpdateEntityTypesRequestOrBuilder.java | 15 + .../BatchUpdateEntityTypesResponse.java | 15 + ...tchUpdateEntityTypesResponseOrBuilder.java | 15 + .../v2beta1/BatchUpdateIntentsRequest.java | 15 + .../BatchUpdateIntentsRequestOrBuilder.java | 15 + .../v2beta1/BatchUpdateIntentsResponse.java | 15 + .../BatchUpdateIntentsResponseOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/Context.java | 15 + .../cloud/dialogflow/v2beta1/ContextName.java | 18 +- .../dialogflow/v2beta1/ContextOrBuilder.java | 15 + .../dialogflow/v2beta1/ContextProto.java | 15 + .../v2beta1/CreateContextRequest.java | 15 + .../CreateContextRequestOrBuilder.java | 15 + .../v2beta1/CreateDocumentRequest.java | 15 + .../CreateDocumentRequestOrBuilder.java | 15 + .../v2beta1/CreateEntityTypeRequest.java | 15 + .../CreateEntityTypeRequestOrBuilder.java | 15 + .../v2beta1/CreateIntentRequest.java | 15 + .../v2beta1/CreateIntentRequestOrBuilder.java | 15 + .../v2beta1/CreateKnowledgeBaseRequest.java | 15 + .../CreateKnowledgeBaseRequestOrBuilder.java | 15 + .../CreateSessionEntityTypeRequest.java | 15 + ...eateSessionEntityTypeRequestOrBuilder.java | 15 + .../v2beta1/DeleteAgentRequest.java | 15 + .../v2beta1/DeleteAgentRequestOrBuilder.java | 15 + .../v2beta1/DeleteAllContextsRequest.java | 15 + .../DeleteAllContextsRequestOrBuilder.java | 15 + .../v2beta1/DeleteContextRequest.java | 15 + .../DeleteContextRequestOrBuilder.java | 15 + .../v2beta1/DeleteDocumentRequest.java | 15 + .../DeleteDocumentRequestOrBuilder.java | 15 + .../v2beta1/DeleteEntityTypeRequest.java | 15 + .../DeleteEntityTypeRequestOrBuilder.java | 15 + .../v2beta1/DeleteIntentRequest.java | 15 + .../v2beta1/DeleteIntentRequestOrBuilder.java | 15 + .../v2beta1/DeleteKnowledgeBaseRequest.java | 15 + .../DeleteKnowledgeBaseRequestOrBuilder.java | 15 + .../DeleteSessionEntityTypeRequest.java | 15 + ...leteSessionEntityTypeRequestOrBuilder.java | 15 + .../v2beta1/DetectIntentRequest.java | 29 +- .../v2beta1/DetectIntentRequestOrBuilder.java | 19 +- .../v2beta1/DetectIntentResponse.java | 15 + .../DetectIntentResponseOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/Document.java | 15 + .../dialogflow/v2beta1/DocumentName.java | 18 +- .../dialogflow/v2beta1/DocumentOrBuilder.java | 15 + .../dialogflow/v2beta1/DocumentProto.java | 174 +- .../cloud/dialogflow/v2beta1/EntityType.java | 118 + .../dialogflow/v2beta1/EntityTypeBatch.java | 15 + .../v2beta1/EntityTypeBatchOrBuilder.java | 15 + .../dialogflow/v2beta1/EntityTypeName.java | 18 +- .../v2beta1/EntityTypeOrBuilder.java | 26 + .../dialogflow/v2beta1/EntityTypeProto.java | 60 +- .../v2beta1/EnvironmentContextName.java | 18 +- .../EnvironmentSessionEntityTypeName.java | 18 +- .../v2beta1/EnvironmentSessionName.java | 18 +- .../cloud/dialogflow/v2beta1/EventInput.java | 15 + .../v2beta1/EventInputOrBuilder.java | 15 + .../v2beta1/ExportAgentRequest.java | 15 + .../v2beta1/ExportAgentRequestOrBuilder.java | 15 + .../v2beta1/ExportAgentResponse.java | 71 +- .../v2beta1/ExportAgentResponseOrBuilder.java | 29 +- .../cloud/dialogflow/v2beta1/GcsProto.java | 78 + .../cloud/dialogflow/v2beta1/GcsSource.java | 632 + .../v2beta1/GcsSourceOrBuilder.java | 52 + .../dialogflow/v2beta1/GetAgentRequest.java | 15 + .../v2beta1/GetAgentRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/GetContextRequest.java | 15 + .../v2beta1/GetContextRequestOrBuilder.java | 15 + .../v2beta1/GetDocumentRequest.java | 15 + .../v2beta1/GetDocumentRequestOrBuilder.java | 15 + .../v2beta1/GetEntityTypeRequest.java | 15 + .../GetEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/GetIntentRequest.java | 15 + .../v2beta1/GetIntentRequestOrBuilder.java | 15 + .../v2beta1/GetKnowledgeBaseRequest.java | 15 + .../GetKnowledgeBaseRequestOrBuilder.java | 15 + .../v2beta1/GetSessionEntityTypeRequest.java | 15 + .../GetSessionEntityTypeRequestOrBuilder.java | 15 + .../v2beta1/GetValidationResultRequest.java | 816 + .../GetValidationResultRequestOrBuilder.java | 77 + .../v2beta1/ImportAgentRequest.java | 71 +- .../v2beta1/ImportAgentRequestOrBuilder.java | 29 +- .../dialogflow/v2beta1/InputAudioConfig.java | 15 + .../v2beta1/InputAudioConfigOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/Intent.java | 15040 +++++++++++++++- .../cloud/dialogflow/v2beta1/IntentBatch.java | 15 + .../v2beta1/IntentBatchOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/IntentName.java | 18 +- .../dialogflow/v2beta1/IntentOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/IntentProto.java | 761 +- .../cloud/dialogflow/v2beta1/IntentView.java | 15 + .../dialogflow/v2beta1/KnowledgeAnswers.java | 33 +- .../v2beta1/KnowledgeAnswersOrBuilder.java | 15 + .../dialogflow/v2beta1/KnowledgeBase.java | 190 + .../dialogflow/v2beta1/KnowledgeBaseName.java | 18 +- .../v2beta1/KnowledgeBaseOrBuilder.java | 40 + .../v2beta1/KnowledgeBaseProto.java | 131 +- .../v2beta1/KnowledgeOperationMetadata.java | 15 + .../KnowledgeOperationMetadataOrBuilder.java | 15 + .../v2beta1/ListContextsRequest.java | 15 + .../v2beta1/ListContextsRequestOrBuilder.java | 15 + .../v2beta1/ListContextsResponse.java | 15 + .../ListContextsResponseOrBuilder.java | 15 + .../v2beta1/ListDocumentsRequest.java | 15 + .../ListDocumentsRequestOrBuilder.java | 15 + .../v2beta1/ListDocumentsResponse.java | 15 + .../ListDocumentsResponseOrBuilder.java | 15 + .../v2beta1/ListEntityTypesRequest.java | 15 + .../ListEntityTypesRequestOrBuilder.java | 15 + .../v2beta1/ListEntityTypesResponse.java | 15 + .../ListEntityTypesResponseOrBuilder.java | 15 + .../v2beta1/ListIntentsRequest.java | 15 + .../v2beta1/ListIntentsRequestOrBuilder.java | 15 + .../v2beta1/ListIntentsResponse.java | 15 + .../v2beta1/ListIntentsResponseOrBuilder.java | 15 + .../v2beta1/ListKnowledgeBasesRequest.java | 15 + .../ListKnowledgeBasesRequestOrBuilder.java | 15 + .../v2beta1/ListKnowledgeBasesResponse.java | 15 + .../ListKnowledgeBasesResponseOrBuilder.java | 15 + .../ListSessionEntityTypesRequest.java | 15 + ...istSessionEntityTypesRequestOrBuilder.java | 15 + .../ListSessionEntityTypesResponse.java | 15 + ...stSessionEntityTypesResponseOrBuilder.java | 15 + .../v2beta1/OriginalDetectIntentRequest.java | 15 + .../OriginalDetectIntentRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/OutputAudioConfig.java | 15 + .../v2beta1/OutputAudioConfigOrBuilder.java | 15 + .../v2beta1/OutputAudioEncoding.java | 15 + .../dialogflow/v2beta1/ProjectAgentName.java | 18 +- .../cloud/dialogflow/v2beta1/ProjectName.java | 18 +- .../cloud/dialogflow/v2beta1/QueryInput.java | 15 + .../v2beta1/QueryInputOrBuilder.java | 15 + .../dialogflow/v2beta1/QueryParameters.java | 15 + .../v2beta1/QueryParametersOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/QueryResult.java | 15 + .../v2beta1/QueryResultOrBuilder.java | 15 + .../v2beta1/ReloadDocumentRequest.java | 373 + .../ReloadDocumentRequestOrBuilder.java | 48 + .../v2beta1/RestoreAgentRequest.java | 71 +- .../v2beta1/RestoreAgentRequestOrBuilder.java | 29 +- .../v2beta1/SearchAgentsRequest.java | 15 + .../v2beta1/SearchAgentsRequestOrBuilder.java | 15 + .../v2beta1/SearchAgentsResponse.java | 15 + .../SearchAgentsResponseOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/Sentiment.java | 15 + .../SentimentAnalysisRequestConfig.java | 15 + ...ntimentAnalysisRequestConfigOrBuilder.java | 15 + .../v2beta1/SentimentAnalysisResult.java | 15 + .../SentimentAnalysisResultOrBuilder.java | 15 + .../v2beta1/SentimentOrBuilder.java | 15 + .../dialogflow/v2beta1/SessionEntityType.java | 15 + .../v2beta1/SessionEntityTypeName.java | 18 +- .../v2beta1/SessionEntityTypeOrBuilder.java | 15 + .../v2beta1/SessionEntityTypeProto.java | 15 + .../cloud/dialogflow/v2beta1/SessionName.java | 18 +- .../dialogflow/v2beta1/SessionProto.java | 287 +- .../dialogflow/v2beta1/SetAgentRequest.java | 15 + .../v2beta1/SetAgentRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/SpeechContext.java | 15 + .../v2beta1/SpeechContextOrBuilder.java | 15 + .../v2beta1/SpeechModelVariant.java | 15 + .../dialogflow/v2beta1/SpeechWordInfo.java | 15 + .../v2beta1/SpeechWordInfoOrBuilder.java | 15 + .../dialogflow/v2beta1/SsmlVoiceGender.java | 15 + .../v2beta1/StreamingDetectIntentRequest.java | 15 + ...StreamingDetectIntentRequestOrBuilder.java | 15 + .../StreamingDetectIntentResponse.java | 15 + ...treamingDetectIntentResponseOrBuilder.java | 15 + .../v2beta1/StreamingRecognitionResult.java | 15 + .../StreamingRecognitionResultOrBuilder.java | 15 + .../v2beta1/SynthesizeSpeechConfig.java | 15 + .../SynthesizeSpeechConfigOrBuilder.java | 15 + .../cloud/dialogflow/v2beta1/TextInput.java | 15 + .../v2beta1/TextInputOrBuilder.java | 15 + .../dialogflow/v2beta1/TrainAgentRequest.java | 15 + .../v2beta1/TrainAgentRequestOrBuilder.java | 15 + .../v2beta1/UpdateContextRequest.java | 15 + .../UpdateContextRequestOrBuilder.java | 15 + .../v2beta1/UpdateDocumentRequest.java | 15 + .../UpdateDocumentRequestOrBuilder.java | 15 + .../v2beta1/UpdateEntityTypeRequest.java | 15 + .../UpdateEntityTypeRequestOrBuilder.java | 15 + .../v2beta1/UpdateIntentRequest.java | 15 + .../v2beta1/UpdateIntentRequestOrBuilder.java | 15 + .../v2beta1/UpdateKnowledgeBaseRequest.java | 15 + .../UpdateKnowledgeBaseRequestOrBuilder.java | 15 + .../UpdateSessionEntityTypeRequest.java | 15 + ...dateSessionEntityTypeRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/ValidationError.java | 1344 ++ .../v2beta1/ValidationErrorOrBuilder.java | 156 + .../dialogflow/v2beta1/ValidationResult.java | 956 + .../v2beta1/ValidationResultOrBuilder.java | 78 + .../v2beta1/ValidationResultProto.java | 98 + .../v2beta1/VoiceSelectionParams.java | 15 + .../VoiceSelectionParamsOrBuilder.java | 15 + .../dialogflow/v2beta1/WebhookProto.java | 38 +- .../dialogflow/v2beta1/WebhookRequest.java | 15 + .../v2beta1/WebhookRequestOrBuilder.java | 15 + .../dialogflow/v2beta1/WebhookResponse.java | 634 + .../v2beta1/WebhookResponseOrBuilder.java | 93 + .../cloud/dialogflow/v2beta1/agent.proto | 78 +- .../dialogflow/v2beta1/audio_config.proto | 1 + .../cloud/dialogflow/v2beta1/document.proto | 9 + .../dialogflow/v2beta1/entity_type.proto | 10 +- .../google/cloud/dialogflow/v2beta1/gcs.proto | 37 + .../cloud/dialogflow/v2beta1/intent.proto | 205 + .../dialogflow/v2beta1/knowledge_base.proto | 5 + .../cloud/dialogflow/v2beta1/session.proto | 9 +- .../v2beta1/validation_result.proto | 77 + .../cloud/dialogflow/v2beta1/webhook.proto | 7 + renovate.json | 27 + .../synth.metadata => synth.metadata | 0 synth.py | 65 + versions.txt | 8 + 500 files changed, 30743 insertions(+), 1933 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/support_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/release-please.yml create mode 100644 .gitignore create mode 100644 .idea/java-dialogflow.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .kokoro/build.bat create mode 100755 .kokoro/build.sh create mode 100755 .kokoro/coerce_logs.sh create mode 100644 .kokoro/common.cfg create mode 100644 .kokoro/continuous/common.cfg create mode 100644 .kokoro/continuous/dependencies.cfg create mode 100644 .kokoro/continuous/integration.cfg create mode 100644 .kokoro/continuous/java11.cfg create mode 100644 .kokoro/continuous/java7.cfg create mode 100644 .kokoro/continuous/java8-osx.cfg create mode 100644 .kokoro/continuous/java8-win.cfg create mode 100644 .kokoro/continuous/java8.cfg create mode 100644 .kokoro/continuous/lint.cfg create mode 100644 .kokoro/continuous/propose_release.cfg create mode 100755 .kokoro/continuous/propose_release.sh create mode 100755 .kokoro/dependencies.sh create mode 100755 .kokoro/linkage-monitor.sh create mode 100644 .kokoro/nightly/common.cfg create mode 100644 .kokoro/nightly/dependencies.cfg create mode 100644 .kokoro/nightly/integration.cfg create mode 100644 .kokoro/nightly/java11.cfg create mode 100644 .kokoro/nightly/java7.cfg create mode 100644 .kokoro/nightly/java8-osx.cfg create mode 100644 .kokoro/nightly/java8-win.cfg create mode 100644 .kokoro/nightly/java8.cfg create mode 100644 .kokoro/nightly/lint.cfg create mode 100644 .kokoro/presubmit/clirr.cfg create mode 100644 .kokoro/presubmit/common.cfg create mode 100644 .kokoro/presubmit/dependencies.cfg create mode 100644 .kokoro/presubmit/integration.cfg create mode 100644 .kokoro/presubmit/java11.cfg create mode 100644 .kokoro/presubmit/java7.cfg create mode 100644 .kokoro/presubmit/java8-osx.cfg create mode 100644 .kokoro/presubmit/java8-win.cfg create mode 100644 .kokoro/presubmit/java8.cfg create mode 100644 .kokoro/presubmit/linkage-monitor.cfg create mode 100644 .kokoro/presubmit/lint.cfg create mode 100644 .kokoro/release/bump_snapshot.cfg create mode 100755 .kokoro/release/bump_snapshot.sh create mode 100644 .kokoro/release/common.cfg create mode 100755 .kokoro/release/common.sh create mode 100644 .kokoro/release/drop.cfg create mode 100755 .kokoro/release/drop.sh create mode 100644 .kokoro/release/promote.cfg create mode 100755 .kokoro/release/promote.sh create mode 100644 .kokoro/release/publish_javadoc.cfg create mode 100755 .kokoro/release/publish_javadoc.sh create mode 100644 .kokoro/release/snapshot.cfg create mode 100755 .kokoro/release/snapshot.sh create mode 100644 .kokoro/release/stage.cfg create mode 100755 .kokoro/release/stage.sh create mode 100644 .kokoro/trampoline.sh rename google-cloud-dialogflow/.repo-metadata.json => .repo-metadata.json (86%) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md rename google-cloud-dialogflow/README.md => README.md (100%) create mode 100644 codecov.yaml create mode 100644 google-cloud-dialogflow-bom/pom.xml delete mode 100644 google-cloud-dialogflow/synth.py create mode 100644 java.header create mode 100644 license-checks.xml create mode 100644 pom.xml create mode 100644 proto-google-cloud-dialogflow-v2/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsProto.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSource.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSourceOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequest.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequestOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationError.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationErrorOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResult.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultProto.java create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto create mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto create mode 100644 renovate.json rename google-cloud-dialogflow/synth.metadata => synth.metadata (100%) create mode 100644 synth.py create mode 100644 versions.txt diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..257689594 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,51 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +Please run down the following list and make sure you've tried the usual "quick fixes": + + - Search the issues already opened: https://github.com/googleapis/java-dialogflow/issues + - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform + +If you are still having issues, please include as much information as possible: + +#### Environment details + +1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). + General, Core, and Other are also allowed as types +2. OS type and version: +3. Java version: +4. dialogflow version(s): + +#### Steps to reproduce + + 1. ? + 2. ? + +#### Code example + +```java +// example +``` + +#### Stack trace +``` +Any relevant stacktrace here. +``` + +#### External references such as API reference guides + +- ? + +#### Any additional information below + + +Following these steps guarantees the quickest resolution possible. + +Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..754e30c68 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this library + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +**Is your feature request related to a problem? Please describe.** +What the problem is. Example: I'm always frustrated when [...] + +**Describe the solution you'd like** +What you want to happen. + +**Describe alternatives you've considered** +Any alternative solutions or features you've considered. + +**Additional context** +Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md new file mode 100644 index 000000000..995869032 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support_request.md @@ -0,0 +1,7 @@ +--- +name: Support request +about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. + +--- + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..0bd0ee062 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1 @@ +Fixes # (it's a good idea to open an issue first for context and/or discussion) \ No newline at end of file diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 000000000..827446828 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1 @@ +releaseType: java-yoshi diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..18ac2c6ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,44 @@ +.gitignore + +# Packages +dist +bin +var +sdist +target + +# Unit test / coverage reports +.coverage +.tox +nosetests.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg + +.metadata +.project +.pydevproject +*.iml +.idea +.settings +.DS_Store +.classpath + +# Built documentation +docs/ + + +# Wheel directory used in Travis builds. +gcloud-java-wheels/ +src/test/resources/gcd-head.zip +src/test/resources/gcd-v1beta2-rev1-2.1.1.zip + +# API key file containing value of GOOGLE_API_KEY for integration tests +api_key + +# Python utilities +*.pyc +artman-genfiles \ No newline at end of file diff --git a/.idea/java-dialogflow.iml b/.idea/java-dialogflow.iml new file mode 100644 index 000000000..c16e7389d --- /dev/null +++ b/.idea/java-dialogflow.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..f6ce1bda3 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..f7d734dfb --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.kokoro/build.bat b/.kokoro/build.bat new file mode 100644 index 000000000..67e084e83 --- /dev/null +++ b/.kokoro/build.bat @@ -0,0 +1,3 @@ +:: See documentation in type-shell-output.bat + +"C:\Program Files\Git\bin\bash.exe" github/java-dialogflow/.kokoro/build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh new file mode 100755 index 000000000..fa132f410 --- /dev/null +++ b/.kokoro/build.sh @@ -0,0 +1,60 @@ +#!/bin/bash +# 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. + +set -eo pipefail + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# Print out Java version +java -version +echo ${JOB_TYPE} + +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C + +# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it +if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then + export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) +fi + +case ${JOB_TYPE} in +test) + mvn test -B -Dclirr.skip=true + bash ${KOKORO_GFILE_DIR}/codecov.sh + bash .kokoro/coerce_logs.sh + ;; +lint) + mvn com.coveo:fmt-maven-plugin:check + ;; +javadoc) + mvn javadoc:javadoc javadoc:test-javadoc + ;; +integration) + mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify + bash .kokoro/coerce_logs.sh + ;; +clirr) + mvn -B clirr:check + ;; +*) + ;; +esac \ No newline at end of file diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh new file mode 100755 index 000000000..5cf7ba49e --- /dev/null +++ b/.kokoro/coerce_logs.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# 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. + +# This script finds and moves sponge logs so that they can be found by placer +# and are not flagged as flaky by sponge. + +set -eo pipefail + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +job=$(basename ${KOKORO_JOB_NAME}) + +echo "coercing sponge logs..." +for xml in `find . -name *-sponge_log.xml` +do + echo "processing ${xml}" + class=$(basename ${xml} | cut -d- -f2) + dir=$(dirname ${xml})/${job}/${class} + text=$(dirname ${xml})/${class}-sponge_log.txt + mkdir -p ${dir} + mv ${xml} ${dir}/sponge_log.xml + mv ${text} ${dir}/sponge_log.txt +done diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg new file mode 100644 index 000000000..cebffec13 --- /dev/null +++ b/.kokoro/common.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# All builds use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +# Tell the trampoline which build file to use. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/build.sh" +} diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg new file mode 100644 index 000000000..a846d2eaf --- /dev/null +++ b/.kokoro/continuous/common.cfg @@ -0,0 +1,25 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} diff --git a/.kokoro/continuous/dependencies.cfg b/.kokoro/continuous/dependencies.cfg new file mode 100644 index 000000000..5f6e15592 --- /dev/null +++ b/.kokoro/continuous/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/dependencies.sh" +} diff --git a/.kokoro/continuous/integration.cfg b/.kokoro/continuous/integration.cfg new file mode 100644 index 000000000..3b017fc80 --- /dev/null +++ b/.kokoro/continuous/integration.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/continuous/java11.cfg b/.kokoro/continuous/java11.cfg new file mode 100644 index 000000000..709f2b4c7 --- /dev/null +++ b/.kokoro/continuous/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/continuous/java7.cfg b/.kokoro/continuous/java7.cfg new file mode 100644 index 000000000..cb24f44ee --- /dev/null +++ b/.kokoro/continuous/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/continuous/java8-osx.cfg b/.kokoro/continuous/java8-osx.cfg new file mode 100644 index 000000000..5dfcae843 --- /dev/null +++ b/.kokoro/continuous/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-dialogflow/.kokoro/build.sh" diff --git a/.kokoro/continuous/java8-win.cfg b/.kokoro/continuous/java8-win.cfg new file mode 100644 index 000000000..db3d9a3e7 --- /dev/null +++ b/.kokoro/continuous/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-dialogflow/.kokoro/build.bat" diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg new file mode 100644 index 000000000..3b017fc80 --- /dev/null +++ b/.kokoro/continuous/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/continuous/lint.cfg b/.kokoro/continuous/lint.cfg new file mode 100644 index 000000000..6d323c8ae --- /dev/null +++ b/.kokoro/continuous/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/.kokoro/continuous/propose_release.cfg b/.kokoro/continuous/propose_release.cfg new file mode 100644 index 000000000..973579c0a --- /dev/null +++ b/.kokoro/continuous/propose_release.cfg @@ -0,0 +1,53 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/continuous/propose_release.sh" +} + +# tokens used by release-please to keep an up-to-date release PR. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-key-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-token-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-url-release-please" + } + } +} diff --git a/.kokoro/continuous/propose_release.sh b/.kokoro/continuous/propose_release.sh new file mode 100755 index 000000000..a6032c52f --- /dev/null +++ b/.kokoro/continuous/propose_release.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# 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 +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then + # Groom the release PR as new commits are merged. + npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ + --repo-url=googleapis/java-dialogflow \ + --package-name="dialogflow" \ + --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ + --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ + --release-type=java-yoshi +fi diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh new file mode 100755 index 000000000..6834af9db --- /dev/null +++ b/.kokoro/dependencies.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# 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. + +set -eo pipefail + +cd github/java-dialogflow/ + +# Print out Java +java -version +echo $JOB_TYPE + +export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" + +mvn install -DskipTests=true -B -V +mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh new file mode 100755 index 000000000..c2a9befa2 --- /dev/null +++ b/.kokoro/linkage-monitor.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# 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. + +set -eo pipefail +# Display commands being run. +set -x + +cd github/java-dialogflow/ + +# Print out Java version +java -version +echo ${JOB_TYPE} + +mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V + +# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR +JAR=linkage-monitor-latest-all-deps.jar +curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" + +# Fails if there's new linkage errors compared with baseline +java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg new file mode 100644 index 000000000..a846d2eaf --- /dev/null +++ b/.kokoro/nightly/common.cfg @@ -0,0 +1,25 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} diff --git a/.kokoro/nightly/dependencies.cfg b/.kokoro/nightly/dependencies.cfg new file mode 100644 index 000000000..5f6e15592 --- /dev/null +++ b/.kokoro/nightly/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/dependencies.sh" +} diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg new file mode 100644 index 000000000..3b017fc80 --- /dev/null +++ b/.kokoro/nightly/integration.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/nightly/java11.cfg b/.kokoro/nightly/java11.cfg new file mode 100644 index 000000000..709f2b4c7 --- /dev/null +++ b/.kokoro/nightly/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg new file mode 100644 index 000000000..cb24f44ee --- /dev/null +++ b/.kokoro/nightly/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg new file mode 100644 index 000000000..5dfcae843 --- /dev/null +++ b/.kokoro/nightly/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-dialogflow/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg new file mode 100644 index 000000000..db3d9a3e7 --- /dev/null +++ b/.kokoro/nightly/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-dialogflow/.kokoro/build.bat" diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg new file mode 100644 index 000000000..3b017fc80 --- /dev/null +++ b/.kokoro/nightly/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/nightly/lint.cfg b/.kokoro/nightly/lint.cfg new file mode 100644 index 000000000..6d323c8ae --- /dev/null +++ b/.kokoro/nightly/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg new file mode 100644 index 000000000..ec572442e --- /dev/null +++ b/.kokoro/presubmit/clirr.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "clirr" +} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg new file mode 100644 index 000000000..cd413b5d2 --- /dev/null +++ b/.kokoro/presubmit/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "dpebot_codecov_token" + } + } +} diff --git a/.kokoro/presubmit/dependencies.cfg b/.kokoro/presubmit/dependencies.cfg new file mode 100644 index 000000000..5f6e15592 --- /dev/null +++ b/.kokoro/presubmit/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/dependencies.sh" +} diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg new file mode 100644 index 000000000..141f90c13 --- /dev/null +++ b/.kokoro/presubmit/integration.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg new file mode 100644 index 000000000..709f2b4c7 --- /dev/null +++ b/.kokoro/presubmit/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg new file mode 100644 index 000000000..cb24f44ee --- /dev/null +++ b/.kokoro/presubmit/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg new file mode 100644 index 000000000..5dfcae843 --- /dev/null +++ b/.kokoro/presubmit/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-dialogflow/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg new file mode 100644 index 000000000..db3d9a3e7 --- /dev/null +++ b/.kokoro/presubmit/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-dialogflow/.kokoro/build.bat" diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg new file mode 100644 index 000000000..3b017fc80 --- /dev/null +++ b/.kokoro/presubmit/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/presubmit/linkage-monitor.cfg b/.kokoro/presubmit/linkage-monitor.cfg new file mode 100644 index 000000000..534dc0880 --- /dev/null +++ b/.kokoro/presubmit/linkage-monitor.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/linkage-monitor.sh" +} \ No newline at end of file diff --git a/.kokoro/presubmit/lint.cfg b/.kokoro/presubmit/lint.cfg new file mode 100644 index 000000000..6d323c8ae --- /dev/null +++ b/.kokoro/presubmit/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg new file mode 100644 index 000000000..78d31e41e --- /dev/null +++ b/.kokoro/release/bump_snapshot.cfg @@ -0,0 +1,53 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/release/bump_snapshot.sh" +} + +# tokens used by release-please to keep an up-to-date release PR. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-key-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-token-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-url-release-please" + } + } +} diff --git a/.kokoro/release/bump_snapshot.sh b/.kokoro/release/bump_snapshot.sh new file mode 100755 index 000000000..a35aba974 --- /dev/null +++ b/.kokoro/release/bump_snapshot.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# 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 +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then + # Groom the snapshot release PR immediately after publishing a release + npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ + --repo-url=googleapis/java-dialogflow \ + --package-name="dialogflow" \ + --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ + --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ + --snapshot \ + --release-type=java-auth-yoshi +fi diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg new file mode 100644 index 000000000..c9be2e354 --- /dev/null +++ b/.kokoro/release/common.cfg @@ -0,0 +1,49 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-dialogflow/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-keyring" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-passphrase" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-pubkeyring" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "sonatype-credentials" + } + } +} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh new file mode 100755 index 000000000..6e3f65999 --- /dev/null +++ b/.kokoro/release/common.sh @@ -0,0 +1,50 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# Get secrets from keystore and set and environment variables +setup_environment_secrets() { + export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) + export GPG_TTY=$(tty) + export GPG_HOMEDIR=/gpg + mkdir $GPG_HOMEDIR + mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg + mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg + export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') + export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') +} + +create_settings_xml_file() { + echo " + + + ossrh + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + + sonatype-nexus-staging + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + + sonatype-nexus-snapshots + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + +" > $1 +} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg new file mode 100644 index 000000000..0982a6626 --- /dev/null +++ b/.kokoro/release/drop.cfg @@ -0,0 +1,9 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/release/drop.sh" +} + +# Download staging properties file. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-dialogflow" \ No newline at end of file diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh new file mode 100755 index 000000000..5c4551efa --- /dev/null +++ b/.kokoro/release/drop.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# STAGING_REPOSITORY_ID must be set +if [ -z "${STAGING_REPOSITORY_ID}" ]; then + echo "Missing STAGING_REPOSITORY_ID environment variable" + exit 1 +fi + +source $(dirname "$0")/common.sh +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn nexus-staging:drop -B \ + --settings=settings.xml \ + -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg new file mode 100644 index 000000000..b35b19eab --- /dev/null +++ b/.kokoro/release/promote.cfg @@ -0,0 +1,10 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/release/promote.sh" +} + +# Download staging properties file. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-dialogflow" + diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh new file mode 100755 index 000000000..1fa95fa53 --- /dev/null +++ b/.kokoro/release/promote.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# STAGING_REPOSITORY_ID must be set +if [ -z "${STAGING_REPOSITORY_ID}" ]; then + echo "Missing STAGING_REPOSITORY_ID environment variable" + exit 1 +fi + +source $(dirname "$0")/common.sh + +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn nexus-staging:release -B \ + -DperformRelease=true \ + --settings=settings.xml \ + -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg new file mode 100644 index 000000000..3b998bdb4 --- /dev/null +++ b/.kokoro/release/publish_javadoc.cfg @@ -0,0 +1,19 @@ +# Format: //devtools/kokoro/config/proto/build.proto +env_vars: { + key: "STAGING_BUCKET" + value: "docs-staging" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/release/publish_javadoc.sh" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh new file mode 100755 index 000000000..6eb4ce492 --- /dev/null +++ b/.kokoro/release/publish_javadoc.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2019 Google Inc. +# +# 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. + +set -eo pipefail + +if [[ -z "${CREDENTIALS}" ]]; then + CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account +fi + +if [[ -z "${STAGING_BUCKET}" ]]; then + echo "Need to set STAGING_BUCKET environment variable" + exit 1 +fi + +# work from the git root directory +pushd $(dirname "$0")/../../ + +# install docuploader package +python3 -m pip install gcp-docuploader + +# compile all packages +mvn clean install -B -DskipTests=true + +NAME=dialogflow +VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# build the docs +mvn site -B + +pushd target/site/apidocs + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload docs +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET} + +popd diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg new file mode 100644 index 000000000..76bfa15b1 --- /dev/null +++ b/.kokoro/release/snapshot.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/release/snapshot.sh" +} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh new file mode 100755 index 000000000..098168a73 --- /dev/null +++ b/.kokoro/release/snapshot.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# 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. + +set -eo pipefail + +source $(dirname "$0")/common.sh +MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml +pushd $(dirname "$0")/../../ + +# ensure we're trying to push a snapshot (no-result returns non-zero exit code) +grep SNAPSHOT versions.txt + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg new file mode 100644 index 000000000..708c9cbb3 --- /dev/null +++ b/.kokoro/release/stage.cfg @@ -0,0 +1,44 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-dialogflow/.kokoro/release/stage.sh" +} + +# Need to save the properties file +action { + define_artifacts { + regex: "github/java-dialogflow/target/nexus-staging/staging/*.properties" + strip_prefix: "github/java-dialogflow" + } +} + +# Fetch the token needed for reporting release status to GitHub +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "yoshi-automation-github-key" + } + } +} + +# Fetch magictoken to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "releasetool-magictoken" + } + } +} + +# Fetch api key to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "magic-github-proxy-api-key" + } + } +} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh new file mode 100755 index 000000000..3c482cbc5 --- /dev/null +++ b/.kokoro/release/stage.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# Start the releasetool reporter +python3 -m pip install gcp-releasetool +python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script + +source $(dirname "$0")/common.sh +MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DskipTests=true \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} + +if [[ -n "${AUTORELEASE_PR}" ]] +then + mvn nexus-staging:release -B \ + -DperformRelease=true \ + --settings=settings.xml +fi \ No newline at end of file diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh new file mode 100644 index 000000000..ba17ce014 --- /dev/null +++ b/.kokoro/trampoline.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. +set -eo pipefail +# Always run the cleanup script, regardless of the success of bouncing into +# the container. +function cleanup() { + chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + echo "cleanup"; +} +trap cleanup EXIT +python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/google-cloud-dialogflow/.repo-metadata.json b/.repo-metadata.json similarity index 86% rename from google-cloud-dialogflow/.repo-metadata.json rename to .repo-metadata.json index 30177eacc..098a692f7 100644 --- a/google-cloud-dialogflow/.repo-metadata.json +++ b/.repo-metadata.json @@ -6,8 +6,8 @@ "issue_tracker": "https://issuetracker.google.com/savedsearches/5300385", "release_level": "alpha", "language": "java", - "repo": "googleapis/google-cloud-java", - "repo_short": "google-cloud-java", + "repo": "googleapis/java-dialogflow", + "repo_short": "java-dialogflow", "distribution_name": "com.google.cloud:google-cloud-dialogflow", "api_id": "dialogflow.googleapis.com" } \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..6b2238bb7 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,93 @@ +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the +Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..ebbb59e53 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,28 @@ +# How to Contribute + +We'd love to accept your patches and contributions to this project. There are +just a few small guidelines you need to follow. + +## Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution; +this simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +## Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + +## Community Guidelines + +This project follows +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file diff --git a/LICENSE b/LICENSE index 4eedc0116..d64569567 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ -Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -178,7 +179,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a diff --git a/google-cloud-dialogflow/README.md b/README.md similarity index 100% rename from google-cloud-dialogflow/README.md rename to README.md diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 000000000..5724ea947 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,4 @@ +--- +codecov: + ci: + - source.cloud.google.com diff --git a/google-cloud-dialogflow-bom/pom.xml b/google-cloud-dialogflow-bom/pom.xml new file mode 100644 index 000000000..301d128ae --- /dev/null +++ b/google-cloud-dialogflow-bom/pom.xml @@ -0,0 +1,103 @@ + + + 4.0.0 + com.google.cloud + google-cloud-dialogflow-bom + 0.117.0-alpha + pom + + com.google.cloud + google-cloud-shared-config + 0.2.1 + + + Google Cloud dialogflow BOM + https://github.com/googleapis/java-dialogflow + + BOM for Google Cloud Dialog Flow API + + + + Google LLC + + + + + chingor13 + Jeff Ching + chingor@google.com + Google LLC + + Developer + + + + + + scm:git:https://github.com/googleapis/java-dialogflow.git + scm:git:git@github.com:googleapis/java-dialogflow.git + https://github.com/googleapis/java-dialogflow + + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + + + com.google.api.grpc + proto-google-cloud-dialogflow-v2 + 0.82.0 + + + com.google.api.grpc + grpc-google-cloud-dialogflow-v2beta1 + 0.82.0 + + + com.google.api.grpc + grpc-google-cloud-dialogflow-v2 + 0.82.0 + + + com.google.cloud + google-cloud-dialogflow + 0.117.0-alpha + + + com.google.api.grpc + proto-google-cloud-dialogflow-v2beta1 + 0.82.0 + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + true + + + + + \ No newline at end of file diff --git a/google-cloud-dialogflow/pom.xml b/google-cloud-dialogflow/pom.xml index 4fc076ee1..ecea67960 100644 --- a/google-cloud-dialogflow/pom.xml +++ b/google-cloud-dialogflow/pom.xml @@ -1,35 +1,71 @@ 4.0.0 + com.google.cloud google-cloud-dialogflow 0.117.0-alpha jar Google Cloud Dialog Flow API - https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow - - Java idiomatic client for Cloud Dialog Flow API. - + https://github.com/googleapis/java-dialogflow + Java idiomatic client for Google Cloud Dialog Flow API com.google.cloud - google-cloud-clients - 0.117.0-alpha + google-cloud-dialogflow-parent + 0.117.0-alpha google-cloud-dialogflow - ${project.groupId} - google-cloud-core-grpc + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java com.google.api.grpc - proto-google-cloud-dialogflow-v2beta1 + proto-google-common-protos + com.google.api.grpc proto-google-cloud-dialogflow-v2 + + com.google.api.grpc + proto-google-cloud-dialogflow-v2beta1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + org.threeten + threetenbp + @@ -37,6 +73,7 @@ junit test + com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 @@ -56,37 +93,18 @@ - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/proto-google-cloud-dialogflow-v2/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/grpc-google-cloud-dialogflow-v2/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/proto-google-cloud-dialogflow-v2beta1/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/target/site/apidocs/ - - - - - - - + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + \ No newline at end of file diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index 0b4d83fd6..ff9b7611e 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -1045,6 +1045,48 @@ public final UnaryCallable restoreAgentCallable( return stub.restoreAgentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets agent validation result. Agent validation is performed during training time and is updated + * automatically when training is completed. + * + *

Sample code: + * + *


+   * try (AgentsClient agentsClient = AgentsClient.create()) {
+   *   GetValidationResultRequest request = GetValidationResultRequest.newBuilder().build();
+   *   ValidationResult response = agentsClient.getValidationResult(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ValidationResult getValidationResult(GetValidationResultRequest request) { + return getValidationResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets agent validation result. Agent validation is performed during training time and is updated + * automatically when training is completed. + * + *

Sample code: + * + *


+   * try (AgentsClient agentsClient = AgentsClient.create()) {
+   *   GetValidationResultRequest request = GetValidationResultRequest.newBuilder().build();
+   *   ApiFuture<ValidationResult> future = agentsClient.getValidationResultCallable().futureCall(request);
+   *   // Do something
+   *   ValidationResult response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getValidationResultCallable() { + return stub.getValidationResultCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java index 03802f997..89727ce33 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java @@ -137,6 +137,12 @@ public OperationCallSettings restoreAgentOpe return ((AgentsStubSettings) getStubSettings()).restoreAgentOperationSettings(); } + /** Returns the object with the settings used for calls to getValidationResult. */ + public UnaryCallSettings + getValidationResultSettings() { + return ((AgentsStubSettings) getStubSettings()).getValidationResultSettings(); + } + public static final AgentsSettings create(AgentsStubSettings stub) throws IOException { return new AgentsSettings.Builder(stub.toBuilder()).build(); } @@ -307,6 +313,12 @@ public UnaryCallSettings.Builder restoreAgentSet return getStubSettingsBuilder().restoreAgentOperationSettings(); } + /** Returns the builder for the settings used for calls to getValidationResult. */ + public UnaryCallSettings.Builder + getValidationResultSettings() { + return getStubSettingsBuilder().getValidationResultSettings(); + } + @Override public AgentsSettings build() throws IOException { return new AgentsSettings(this); diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java index 20b39313e..4169b3520 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java @@ -26,12 +26,14 @@ import com.google.cloud.dialogflow.v2beta1.ExportAgentRequest; import com.google.cloud.dialogflow.v2beta1.ExportAgentResponse; import com.google.cloud.dialogflow.v2beta1.GetAgentRequest; +import com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest; import com.google.cloud.dialogflow.v2beta1.ImportAgentRequest; import com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest; import com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest; import com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse; import com.google.cloud.dialogflow.v2beta1.SetAgentRequest; import com.google.cloud.dialogflow.v2beta1.TrainAgentRequest; +import com.google.cloud.dialogflow.v2beta1.ValidationResult; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -110,6 +112,10 @@ public UnaryCallable restoreAgentCallable() { throw new UnsupportedOperationException("Not implemented: restoreAgentCallable()"); } + public UnaryCallable getValidationResultCallable() { + throw new UnsupportedOperationException("Not implemented: getValidationResultCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java index d8d9b36a8..aff1cfe7b 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java @@ -48,12 +48,14 @@ import com.google.cloud.dialogflow.v2beta1.ExportAgentRequest; import com.google.cloud.dialogflow.v2beta1.ExportAgentResponse; import com.google.cloud.dialogflow.v2beta1.GetAgentRequest; +import com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest; import com.google.cloud.dialogflow.v2beta1.ImportAgentRequest; import com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest; import com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest; import com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse; import com.google.cloud.dialogflow.v2beta1.SetAgentRequest; import com.google.cloud.dialogflow.v2beta1.TrainAgentRequest; +import com.google.cloud.dialogflow.v2beta1.ValidationResult; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -120,6 +122,8 @@ public class AgentsStubSettings extends StubSettings { private final UnaryCallSettings restoreAgentSettings; private final OperationCallSettings restoreAgentOperationSettings; + private final UnaryCallSettings + getValidationResultSettings; /** Returns the object with the settings used for calls to setAgent. */ public UnaryCallSettings setAgentSettings() { @@ -187,6 +191,12 @@ public OperationCallSettings restoreAgentOpe return restoreAgentOperationSettings; } + /** Returns the object with the settings used for calls to getValidationResult. */ + public UnaryCallSettings + getValidationResultSettings() { + return getValidationResultSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AgentsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -267,6 +277,7 @@ protected AgentsStubSettings(Builder settingsBuilder) throws IOException { importAgentOperationSettings = settingsBuilder.importAgentOperationSettings().build(); restoreAgentSettings = settingsBuilder.restoreAgentSettings().build(); restoreAgentOperationSettings = settingsBuilder.restoreAgentOperationSettings().build(); + getValidationResultSettings = settingsBuilder.getValidationResultSettings().build(); } private static final PagedListDescriptor @@ -344,6 +355,8 @@ public static class Builder extends StubSettings.Builder restoreAgentSettings; private final OperationCallSettings.Builder restoreAgentOperationSettings; + private final UnaryCallSettings.Builder + getValidationResultSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -410,6 +423,8 @@ protected Builder(ClientContext clientContext) { restoreAgentOperationSettings = OperationCallSettings.newBuilder(); + getValidationResultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( setAgentSettings, @@ -419,7 +434,8 @@ protected Builder(ClientContext clientContext) { trainAgentSettings, exportAgentSettings, importAgentSettings, - restoreAgentSettings); + restoreAgentSettings, + getValidationResultSettings); initDefaults(this); } @@ -474,6 +490,11 @@ private static Builder initDefaults(Builder builder) { .restoreAgentSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getValidationResultSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .trainAgentOperationSettings() .setInitialCallSettings( @@ -582,6 +603,7 @@ protected Builder(AgentsStubSettings settings) { importAgentOperationSettings = settings.importAgentOperationSettings.toBuilder(); restoreAgentSettings = settings.restoreAgentSettings.toBuilder(); restoreAgentOperationSettings = settings.restoreAgentOperationSettings.toBuilder(); + getValidationResultSettings = settings.getValidationResultSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -592,7 +614,8 @@ protected Builder(AgentsStubSettings settings) { trainAgentSettings, exportAgentSettings, importAgentSettings, - restoreAgentSettings); + restoreAgentSettings, + getValidationResultSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -685,6 +708,12 @@ public UnaryCallSettings.Builder restoreAgentSet return restoreAgentOperationSettings; } + /** Returns the builder for the settings used for calls to getValidationResult. */ + public UnaryCallSettings.Builder + getValidationResultSettings() { + return getValidationResultSettings; + } + @Override public AgentsStubSettings build() throws IOException { return new AgentsStubSettings(this); diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java index 1c00400fd..01d19bd69 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java +++ b/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java @@ -31,12 +31,14 @@ import com.google.cloud.dialogflow.v2beta1.ExportAgentRequest; import com.google.cloud.dialogflow.v2beta1.ExportAgentResponse; import com.google.cloud.dialogflow.v2beta1.GetAgentRequest; +import com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest; import com.google.cloud.dialogflow.v2beta1.ImportAgentRequest; import com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest; import com.google.cloud.dialogflow.v2beta1.SearchAgentsRequest; import com.google.cloud.dialogflow.v2beta1.SearchAgentsResponse; import com.google.cloud.dialogflow.v2beta1.SetAgentRequest; import com.google.cloud.dialogflow.v2beta1.TrainAgentRequest; +import com.google.cloud.dialogflow.v2beta1.ValidationResult; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -118,6 +120,15 @@ public class GrpcAgentsStub extends AgentsStub { .setRequestMarshaller(ProtoUtils.marshaller(RestoreAgentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + getValidationResultMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Agents/GetValidationResult") + .setRequestMarshaller( + ProtoUtils.marshaller(GetValidationResultRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ValidationResult.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -137,6 +148,8 @@ public class GrpcAgentsStub extends AgentsStub { private final OperationCallable importAgentOperationCallable; private final UnaryCallable restoreAgentCallable; private final OperationCallable restoreAgentOperationCallable; + private final UnaryCallable + getValidationResultCallable; private final GrpcStubCallableFactory callableFactory; @@ -279,6 +292,20 @@ public Map extract(RestoreAgentRequest request) { } }) .build(); + GrpcCallSettings + getValidationResultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getValidationResultMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetValidationResultRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); this.setAgentCallable = callableFactory.createUnaryCallable( @@ -331,6 +358,11 @@ public Map extract(RestoreAgentRequest request) { settings.restoreAgentOperationSettings(), clientContext, this.operationsStub); + this.getValidationResultCallable = + callableFactory.createUnaryCallable( + getValidationResultTransportSettings, + settings.getValidationResultSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -397,6 +429,10 @@ public UnaryCallable restoreAgentCallable() { return restoreAgentCallable; } + public UnaryCallable getValidationResultCallable() { + return getValidationResultCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java index 2e6f8ed6a..acdba42ca 100644 --- a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java +++ b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java @@ -209,8 +209,13 @@ public void listEntityTypesExceptionTest2() throws Exception { public void getEntityTypeTest() { EntityTypeName name2 = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); String displayName = "displayName1615086568"; + boolean enableFuzzyExtraction = true; EntityType expectedResponse = - EntityType.newBuilder().setName(name2.toString()).setDisplayName(displayName).build(); + EntityType.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setEnableFuzzyExtraction(enableFuzzyExtraction) + .build(); mockEntityTypes.addResponse(expectedResponse); EntityTypeName name = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); @@ -250,8 +255,13 @@ public void getEntityTypeExceptionTest() throws Exception { public void getEntityTypeTest2() { EntityTypeName name2 = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); String displayName = "displayName1615086568"; + boolean enableFuzzyExtraction = true; EntityType expectedResponse = - EntityType.newBuilder().setName(name2.toString()).setDisplayName(displayName).build(); + EntityType.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setEnableFuzzyExtraction(enableFuzzyExtraction) + .build(); mockEntityTypes.addResponse(expectedResponse); EntityTypeName name = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); @@ -294,8 +304,13 @@ public void getEntityTypeExceptionTest2() throws Exception { public void createEntityTypeTest() { EntityTypeName name = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); String displayName = "displayName1615086568"; + boolean enableFuzzyExtraction = true; EntityType expectedResponse = - EntityType.newBuilder().setName(name.toString()).setDisplayName(displayName).build(); + EntityType.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setEnableFuzzyExtraction(enableFuzzyExtraction) + .build(); mockEntityTypes.addResponse(expectedResponse); ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); @@ -338,8 +353,13 @@ public void createEntityTypeExceptionTest() throws Exception { public void createEntityTypeTest2() { EntityTypeName name = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); String displayName = "displayName1615086568"; + boolean enableFuzzyExtraction = true; EntityType expectedResponse = - EntityType.newBuilder().setName(name.toString()).setDisplayName(displayName).build(); + EntityType.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setEnableFuzzyExtraction(enableFuzzyExtraction) + .build(); mockEntityTypes.addResponse(expectedResponse); ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); @@ -385,8 +405,13 @@ public void createEntityTypeExceptionTest2() throws Exception { public void updateEntityTypeTest() { EntityTypeName name = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); String displayName = "displayName1615086568"; + boolean enableFuzzyExtraction = true; EntityType expectedResponse = - EntityType.newBuilder().setName(name.toString()).setDisplayName(displayName).build(); + EntityType.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setEnableFuzzyExtraction(enableFuzzyExtraction) + .build(); mockEntityTypes.addResponse(expectedResponse); EntityType entityType = EntityType.newBuilder().build(); @@ -426,8 +451,13 @@ public void updateEntityTypeExceptionTest() throws Exception { public void updateEntityTypeTest2() { EntityTypeName name = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); String displayName = "displayName1615086568"; + boolean enableFuzzyExtraction = true; EntityType expectedResponse = - EntityType.newBuilder().setName(name.toString()).setDisplayName(displayName).build(); + EntityType.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setEnableFuzzyExtraction(enableFuzzyExtraction) + .build(); mockEntityTypes.addResponse(expectedResponse); EntityType entityType = EntityType.newBuilder().build(); diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClientTest.java b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClientTest.java index 67917bd45..b18b367e6 100644 --- a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClientTest.java +++ b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClientTest.java @@ -153,8 +153,13 @@ public void listKnowledgeBasesExceptionTest() throws Exception { public void getKnowledgeBaseTest() { KnowledgeBaseName name2 = KnowledgeBaseName.of("[PROJECT]", "[KNOWLEDGE_BASE]"); String displayName = "displayName1615086568"; + String languageCode = "languageCode-412800396"; KnowledgeBase expectedResponse = - KnowledgeBase.newBuilder().setName(name2.toString()).setDisplayName(displayName).build(); + KnowledgeBase.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setLanguageCode(languageCode) + .build(); mockKnowledgeBases.addResponse(expectedResponse); KnowledgeBaseName name = KnowledgeBaseName.of("[PROJECT]", "[KNOWLEDGE_BASE]"); @@ -194,8 +199,13 @@ public void getKnowledgeBaseExceptionTest() throws Exception { public void createKnowledgeBaseTest() { KnowledgeBaseName name = KnowledgeBaseName.of("[PROJECT]", "[KNOWLEDGE_BASE]"); String displayName = "displayName1615086568"; + String languageCode = "languageCode-412800396"; KnowledgeBase expectedResponse = - KnowledgeBase.newBuilder().setName(name.toString()).setDisplayName(displayName).build(); + KnowledgeBase.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setLanguageCode(languageCode) + .build(); mockKnowledgeBases.addResponse(expectedResponse); ProjectName parent = ProjectName.of("[PROJECT]"); @@ -275,8 +285,13 @@ public void deleteKnowledgeBaseExceptionTest() throws Exception { public void updateKnowledgeBaseTest() { KnowledgeBaseName name = KnowledgeBaseName.of("[PROJECT]", "[KNOWLEDGE_BASE]"); String displayName = "displayName1615086568"; + String languageCode = "languageCode-412800396"; KnowledgeBase expectedResponse = - KnowledgeBase.newBuilder().setName(name.toString()).setDisplayName(displayName).build(); + KnowledgeBase.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setLanguageCode(languageCode) + .build(); mockKnowledgeBases.addResponse(expectedResponse); KnowledgeBase knowledgeBase = KnowledgeBase.newBuilder().build(); diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java index 6a94cae66..df18c87db 100644 --- a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java +++ b/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java @@ -171,4 +171,19 @@ public void restoreAgent( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void getValidationResult( + GetValidationResultRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ValidationResult) { + requests.add(request); + responseObserver.onNext((ValidationResult) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-cloud-dialogflow/synth.py b/google-cloud-dialogflow/synth.py deleted file mode 100644 index d1004983d..000000000 --- a/google-cloud-dialogflow/synth.py +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -import synthtool.languages.java as java - -gapic = gcp.GAPICGenerator() - -library = gapic.java_library( - service='dialogflow', - version='v2', - config_path=f'/google/cloud/dialogflow/artman_dialogflow_v2.yaml', - artman_output_name='') - -s.copy(library / f'gapic-google-cloud-dialogflow-v2/src', 'src') -s.copy(library / f'grpc-google-cloud-dialogflow-v2/src', f'../../google-api-grpc/grpc-google-cloud-dialogflow-v2/src') -s.copy(library / f'proto-google-cloud-dialogflow-v2/src', f'../../google-api-grpc/proto-google-cloud-dialogflow-v2/src') - -# v2beta1 has a weird config name -library = gapic.java_library( - service='dialogflow', - version='v2beta1', - config_path=f'/google/cloud/dialogflow/artman_dialogflow_v2beta1_java.yaml', - artman_output_name='') - -s.copy(library / f'gapic-google-cloud-dialogflow-v2beta1/src', 'src') -s.copy(library / f'grpc-google-cloud-dialogflow-v2beta1/src', f'../../google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src') -s.copy(library / f'proto-google-cloud-dialogflow-v2beta1/src', f'../../google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src') - -java.format_code('./src') -java.format_code(f'../../google-api-grpc/grpc-google-cloud-dialogflow-v2/src') -java.format_code(f'../../google-api-grpc/proto-google-cloud-dialogflow-v2/src') -java.format_code(f'../../google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src') -java.format_code(f'../../google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src') diff --git a/grpc-google-cloud-dialogflow-v2/pom.xml b/grpc-google-cloud-dialogflow-v2/pom.xml index 8cca329d1..ccd0e3d4a 100644 --- a/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/grpc-google-cloud-dialogflow-v2/pom.xml @@ -2,51 +2,59 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc grpc-google-cloud-dialogflow-v2 0.82.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 - com.google.api.grpc - google-api-grpc - 0.82.0 + com.google.cloud + google-cloud-dialogflow-parent + 0.117.0-alpha + + io.grpc + grpc-api + io.grpc grpc-stub - compile io.grpc grpc-protobuf - compile + + + com.google.protobuf + protobuf-java com.google.api.grpc proto-google-cloud-dialogflow-v2 - compile + + + com.google.guava + guava + + + com.google.api.grpc + proto-google-common-protos - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../proto-google-cloud-dialogflow-v2/target/site/apidocs/ - - - - - - - + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + \ No newline at end of file diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java index 6bbf52a9d..f8c1ee535 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java index 91e6004a9..4a62a5207 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java index b14d8dbe0..23c041bb8 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java index c5b958a80..cd239ee4f 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java index 8946e1ba8..26b152d05 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java index f4eeda859..06c7fc63a 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 97e75cbf8..e6038a298 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -2,51 +2,59 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 0.82.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 - com.google.api.grpc - google-api-grpc - 0.82.0 + com.google.cloud + google-cloud-dialogflow-parent + 0.117.0-alpha + + io.grpc + grpc-api + io.grpc grpc-stub - compile io.grpc grpc-protobuf - compile + + + com.google.protobuf + protobuf-java com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - compile + + + com.google.guava + guava + + + com.google.api.grpc + proto-google-common-protos - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../proto-google-cloud-dialogflow-v2beta1/target/site/apidocs/ - - - - - - - + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + \ No newline at end of file diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java index 8e8b10ce3..8ccfc5009 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; @@ -481,6 +496,65 @@ private AgentsGrpc() {} return getRestoreAgentMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetValidationResultMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, + com.google.cloud.dialogflow.v2beta1.ValidationResult> + METHOD_GET_VALIDATION_RESULT = getGetValidationResultMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, + com.google.cloud.dialogflow.v2beta1.ValidationResult> + getGetValidationResultMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, + com.google.cloud.dialogflow.v2beta1.ValidationResult> + getGetValidationResultMethod() { + return getGetValidationResultMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, + com.google.cloud.dialogflow.v2beta1.ValidationResult> + getGetValidationResultMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, + com.google.cloud.dialogflow.v2beta1.ValidationResult> + getGetValidationResultMethod; + if ((getGetValidationResultMethod = AgentsGrpc.getGetValidationResultMethod) == null) { + synchronized (AgentsGrpc.class) { + if ((getGetValidationResultMethod = AgentsGrpc.getGetValidationResultMethod) == null) { + AgentsGrpc.getGetValidationResultMethod = + getGetValidationResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.dialogflow.v2beta1.Agents", "GetValidationResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2beta1.ValidationResult + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentsMethodDescriptorSupplier("GetValidationResult")) + .build(); + } + } + } + return getGetValidationResultMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AgentsStub newStub(io.grpc.Channel channel) { return new AgentsStub(channel); @@ -648,6 +722,21 @@ public void restoreAgent( asyncUnimplementedUnaryCall(getRestoreAgentMethodHelper(), responseObserver); } + /** + * + * + *
+     * Gets agent validation result. Agent validation is performed during
+     * training time and is updated automatically when training is completed.
+     * 
+ */ + public void getValidationResult( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetValidationResultMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -700,6 +789,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest, com.google.longrunning.Operation>(this, METHODID_RESTORE_AGENT))) + .addMethod( + getGetValidationResultMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest, + com.google.cloud.dialogflow.v2beta1.ValidationResult>( + this, METHODID_GET_VALIDATION_RESULT))) .build(); } } @@ -889,6 +985,24 @@ public void restoreAgent( request, responseObserver); } + + /** + * + * + *
+     * Gets agent validation result. Agent validation is performed during
+     * training time and is updated automatically when training is completed.
+     * 
+ */ + public void getValidationResult( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetValidationResultMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1050,6 +1164,20 @@ public com.google.longrunning.Operation restoreAgent( return blockingUnaryCall( getChannel(), getRestoreAgentMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets agent validation result. Agent validation is performed during
+     * training time and is updated automatically when training is completed.
+     * 
+ */ + public com.google.cloud.dialogflow.v2beta1.ValidationResult getValidationResult( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request) { + return blockingUnaryCall( + getChannel(), getGetValidationResultMethodHelper(), getCallOptions(), request); + } } /** @@ -1215,6 +1343,22 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca return futureUnaryCall( getChannel().newCall(getRestoreAgentMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets agent validation result. Agent validation is performed during
+     * training time and is updated automatically when training is completed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.v2beta1.ValidationResult> + getValidationResult( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetValidationResultMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_GET_AGENT = 0; @@ -1225,6 +1369,7 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_EXPORT_AGENT = 5; private static final int METHODID_IMPORT_AGENT = 6; private static final int METHODID_RESTORE_AGENT = 7; + private static final int METHODID_GET_VALIDATION_RESULT = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1287,6 +1432,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dialogflow.v2beta1.RestoreAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_VALIDATION_RESULT: + serviceImpl.getValidationResult( + (com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1357,6 +1508,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getExportAgentMethodHelper()) .addMethod(getImportAgentMethodHelper()) .addMethod(getRestoreAgentMethodHelper()) + .addMethod(getGetValidationResultMethodHelper()) .build(); } } diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java index 00fa258ca..3de6fd6f0 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java index 92fe31014..549695d5c 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java index 0da633324..2602bbb2e 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java index 9f867cb97..6a8acb90e 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java index 1ec1348a6..9228016dd 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java index 38e1df5a2..e5e2b1137 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java index bcab04a86..d8f7c9e1c 100644 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java +++ b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.dialogflow.v2beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/java.header b/java.header new file mode 100644 index 000000000..3a9b503aa --- /dev/null +++ b/java.header @@ -0,0 +1,15 @@ +^/\*$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \*$ +^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License\.$ +^ \* You may obtain a copy of the License at$ +^ \*$ +^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ +^ \*$ +^ \* Unless required by applicable law or agreed to in writing, software$ +^ \* distributed under the License is distributed on an "AS IS" BASIS,$ +^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ +^ \* See the License for the specific language governing permissions and$ +^ \* limitations under the License\.$ +^ \*/$ diff --git a/license-checks.xml b/license-checks.xml new file mode 100644 index 000000000..6597fced8 --- /dev/null +++ b/license-checks.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..c5d66ba50 --- /dev/null +++ b/pom.xml @@ -0,0 +1,268 @@ + + + 4.0.0 + com.google.cloud + google-cloud-dialogflow-parent + pom + 0.117.0-alpha + Google Cloud Dialog Flow API Parent + https://github.com/googleapis/java-dialogflow + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-shared-config + 0.2.1 + + + + + chingor + Jeff Ching + chingor@google.com + Google + + Developer + + + + + Google LLC + + + scm:git:git@github.com:googleapis/java-dialogflow.git + scm:git:git@github.com:googleapis/java-dialogflow.git + https://github.com/googleapis/java-dialogflow + HEAD + + + https://github.com/googleapis/java-dialogflow/issues + GitHub Issues + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + Apache-2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + UTF-8 + UTF-8 + github + google-cloud-dialogflow-parent + 1.91.1 + 1.8.1 + 1.17.0 + 1.49.0 + 1.24.0 + 3.10.0 + 4.12 + 28.1-android + 1.4.0 + 1.3.2 + 1.18 + + + + + + com.google.api.grpc + proto-google-cloud-dialogflow-v2 + 0.82.0 + + + com.google.api.grpc + proto-google-cloud-dialogflow-v2beta1 + 0.82.0 + + + com.google.api.grpc + grpc-google-cloud-dialogflow-v2beta1 + 0.82.0 + + + com.google.api.grpc + grpc-google-cloud-dialogflow-v2 + 0.82.0 + + + com.google.cloud + google-cloud-dialogflow + 0.117.0-alpha + + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + com.google.api + gax-bom + ${gax.version} + pom + import + + + com.google.guava + guava-bom + ${guava.version} + pom + import + + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + com.google.api + api-common + ${google.api-common.version} + + + com.google.api.grpc + proto-google-common-protos + ${google.common-protos.version} + + + org.threeten + threetenbp + ${threeten.version} + + + javax.annotation + javax.annotation-api + ${javax.annotations.version} + + + org.codehaus.mojo + animal-sniffer-annotations + ${animal-sniffer.version} + + + + junit + junit + ${junit.version} + test + + + com.google.api + gax-grpc + ${gax.version} + testlib + test + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + org.objenesis:objenesis + + + + + + + + proto-google-cloud-dialogflow-v2 + proto-google-cloud-dialogflow-v2beta1 + grpc-google-cloud-dialogflow-v2beta1 + grpc-google-cloud-dialogflow-v2 + google-cloud-dialogflow + google-cloud-dialogflow-bom + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.0.0 + + + + index + dependency-info + team + ci-management + issue-management + licenses + scm + dependency-management + distribution-management + summary + modules + + + + + true + ${site.installationModule} + jar + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + html + + aggregate + javadoc + + + + + none + protected + true + ${project.build.directory}/javadoc + + + Test helpers packages + com.google.cloud.testing + + + SPI packages + com.google.cloud.spi* + + + + + https://grpc.io/grpc-java/javadoc/ + https://developers.google.com/protocol-buffers/docs/reference/java/ + https://googleapis.dev/java/google-auth-library/latest/ + https://googleapis.dev/java/gax/latest/ + https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ + + + + + + \ No newline at end of file diff --git a/proto-google-cloud-dialogflow-v2/clirr-ignored-differences.xml b/proto-google-cloud-dialogflow-v2/clirr-ignored-differences.xml new file mode 100644 index 000000000..e95fd9097 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2/clirr-ignored-differences.xml @@ -0,0 +1,9 @@ + + + + + 7012 + com/google/cloud/dialogflow/**/*OrBuilder + * get*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-dialogflow-v2/pom.xml b/proto-google-cloud-dialogflow-v2/pom.xml index e3466d9d3..ca44cbb0a 100644 --- a/proto-google-cloud-dialogflow-v2/pom.xml +++ b/proto-google-cloud-dialogflow-v2/pom.xml @@ -2,30 +2,32 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc proto-google-cloud-dialogflow-v2 0.82.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 - com.google.api.grpc - google-api-grpc - 0.82.0 + com.google.cloud + google-cloud-dialogflow-parent + 0.117.0-alpha com.google.protobuf protobuf-java - compile + + + com.google.api.grpc + proto-google-common-protos com.google.api api-common - compile - com.google.api.grpc - proto-google-common-protos - compile + com.google.guava + guava \ No newline at end of file diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java index b1cf171cd..04ab6b7fc 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java index 9cc290193..6995c913a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java index e7fbf4d0f..c8479278b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java index abec077dc..4c6d347bf 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index ba4aa3168..162723108 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto @@ -38,49 +53,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n-google/cloud/dialogflow/v2/audio_confi" - + "g.proto\022\032google.cloud.dialogflow.v2\032\036goo" - + "gle/protobuf/duration.proto\032\034google/api/" - + "annotations.proto\"\376\001\n\020InputAudioConfig\022A" - + "\n\016audio_encoding\030\001 \001(\0162).google.cloud.di" - + "alogflow.v2.AudioEncoding\022\031\n\021sample_rate" - + "_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014p" - + "hrase_hints\030\004 \003(\t\022E\n\rmodel_variant\030\n \001(\016" - + "2..google.cloud.dialogflow.v2.SpeechMode" - + "lVariant\022\030\n\020single_utterance\030\010 \001(\010\"f\n\024Vo" - + "iceSelectionParams\022\014\n\004name\030\001 \001(\t\022@\n\013ssml" - + "_gender\030\002 \001(\0162+.google.cloud.dialogflow." - + "v2.SsmlVoiceGender\"\263\001\n\026SynthesizeSpeechC" - + "onfig\022\025\n\rspeaking_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_p" - + "rofile_id\030\005 \003(\t\022?\n\005voice\030\004 \001(\01320.google." - + "cloud.dialogflow.v2.VoiceSelectionParams" - + "\"\315\001\n\021OutputAudioConfig\022G\n\016audio_encoding" - + "\030\001 \001(\0162/.google.cloud.dialogflow.v2.Outp" - + "utAudioEncoding\022\031\n\021sample_rate_hertz\030\002 \001" - + "(\005\022T\n\030synthesize_speech_config\030\003 \001(\01322.g" - + "oogle.cloud.dialogflow.v2.SynthesizeSpee" - + "chConfig*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCO" - + "DING_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LIN" - + "EAR_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUD" - + "IO_ENCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AM" - + "R\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_" - + "ENCODING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SP" - + "EEX_WITH_HEADER_BYTE\020\007*v\n\022SpeechModelVar" - + "iant\022$\n SPEECH_MODEL_VARIANT_UNSPECIFIED" - + "\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020\n\014USE_STANDA" - + "RD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017SsmlVoiceGend" - + "er\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_NEU" - + "TRAL\020\003*\244\001\n\023OutputAudioEncoding\022%\n!OUTPUT" - + "_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_" - + "AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUD" - + "IO_ENCODING_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCODI" - + "NG_OGG_OPUS\020\003B\237\001\n\036com.google.cloud.dialo" - + "gflow.v2B\020AudioConfigProtoP\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" + + "g.proto\022\032google.cloud.dialogflow.v2\032\037goo" + + "gle/api/field_behavior.proto\032\036google/pro" + + "tobuf/duration.proto\032\034google/api/annotat" + + "ions.proto\"\376\001\n\020InputAudioConfig\022A\n\016audio" + + "_encoding\030\001 \001(\0162).google.cloud.dialogflo" + + "w.v2.AudioEncoding\022\031\n\021sample_rate_hertz\030" + + "\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(\t\022\024\n\014phrase_h" + + "ints\030\004 \003(\t\022E\n\rmodel_variant\030\n \001(\0162..goog" + + "le.cloud.dialogflow.v2.SpeechModelVarian" + + "t\022\030\n\020single_utterance\030\010 \001(\010\"f\n\024VoiceSele" + + "ctionParams\022\014\n\004name\030\001 \001(\t\022@\n\013ssml_gender" + + "\030\002 \001(\0162+.google.cloud.dialogflow.v2.Ssml" + + "VoiceGender\"\263\001\n\026SynthesizeSpeechConfig\022\025" + + "\n\rspeaking_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016" + + "volume_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.d" + + "ialogflow.v2.VoiceSelectionParams\"\315\001\n\021Ou" + + "tputAudioConfig\022G\n\016audio_encoding\030\001 \001(\0162" + + "/.google.cloud.dialogflow.v2.OutputAudio" + + "Encoding\022\031\n\021sample_rate_hertz\030\002 \001(\005\022T\n\030s" + + "ynthesize_speech_config\030\003 \001(\01322.google.c" + + "loud.dialogflow.v2.SynthesizeSpeechConfi" + + "g*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING_UN" + + "SPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020" + + "\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCO" + + "DING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025" + + "AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODIN" + + "G_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_WIT" + + "H_HEADER_BYTE\020\007*v\n\022SpeechModelVariant\022$\n" + + " SPEECH_MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022U" + + "SE_BEST_AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n" + + "\014USE_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035S" + + "SML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_V" + + "OICE_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\023OutputAudioEncoding\022%\n!OUTPUT_AUDIO_" + + "ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_E" + + "NCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCO" + + "DING_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_" + + "OPUS\020\003B\237\001\n\036com.google.cloud.dialogflow.v" + + "2B\020AudioConfigProtoP\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() { @@ -93,6 +109,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }, @@ -134,6 +151,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig", }); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java index abf8ded84..fde16461f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java index 3ac40c67a..278b20dc4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java index bfd44f160..a36186e1d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java index 0011b94e6..b615bcd1b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java index 47ef3677f..c3b23dc36 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java index 2ae9c3e29..ec75daa29 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java index 06dbe63a5..0f6053105 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java index 9f452c7aa..e177e41c9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java index 930782153..f0a198f89 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java index 2a2d6c65f..edcb7b625 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java index fb27ac79e..ef85cab36 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java index e3d39fbd9..4c11921cd 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java index 1fe9f8f70..a4a3340ee 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java index 90f7a2239..a0c9e3d00 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java index e769e38c4..ec7838f89 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java index 33e8ed386..f4be892c8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java index 0f26c081e..447ae3c54 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java index 480abd75e..14a2ae796 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java index 7e87e5c9f..30a0305f6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java index b9a9b851d..a404f5353 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java index 8f8d9468d..8647e9eed 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java index b40902e88..81d3ea1f6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java index 9d5cfcb6a..0a9f024ef 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java index 9894c726b..72096d30c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java index bd86137b4..fcb5f5db7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java index 47b1f1806..1fffd1277 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java index 1bbbf157b..2cecfc98d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java index 8ea669067..0ab20636a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java index 2fa31f84a..8e40f48fa 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java index 52432d5fa..3e36d4ef8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java index f9b995d0b..ad27b00a3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java index 2332c5423..344f7d713 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java index 37feb4037..b04df5521 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java index aa7b40df1..5c96f3c74 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java index d754024d1..6e1ade127 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java index 360f99ec2..125f1dc98 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java index 9e308f177..a621810bf 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java index bfa05efdf..f716ba2f4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java index 65feb9cb4..77de08dbb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java index 5cf77419b..cc0850ddc 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java index 7c9cf6d8e..cdc2b7617 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java index 5341f4c81..1df8cc3d8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java index 3e6b5afda..185e923d7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java index fb324db24..3c3bbae8d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java index 2a1329056..729c3518b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java index 399ba759e..1485dca84 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java index c0b02f4b0..b944c7e9f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java index 618d758c9..76029fb43 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java index 4ecbab9d0..9d5b96c56 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java index 73c3ce1ad..2bd0ea89a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java index bc81d3b3b..f85768933 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java index 9a10f830c..e6303c71c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java index 11cb2f5b3..b9964328e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java index 4f4b7615b..a2839f446 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java index 263bd3a3d..cb9bdd82a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java index 5f6784aed..94c0c2db3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java index 5381c3a6d..f9099b972 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java index eade227a5..31c03b841 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto @@ -194,17 +209,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * The exported agent.
-   * Example for how to export an agent to a zip file via a command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:export'\
-   *   -X POST \
-   *   -H 'Authorization: Bearer' \
-   *   $(gcloud auth application-default print-access-token) \
-   *   -H 'Accept: application/json'
-   *   --compressed \
-   *   | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-   *   | base64 --decode > &lt;agent zip file&gt;</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; @@ -710,17 +715,7 @@ 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:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:export'\
-     *   -X POST \
-     *   -H 'Authorization: Bearer' \
-     *   $(gcloud auth application-default print-access-token) \
-     *   -H 'Accept: application/json'
-     *   --compressed \
-     *   | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-     *   | base64 --decode > &lt;agent zip file&gt;</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; @@ -735,17 +730,7 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * The exported agent.
-     * Example for how to export an agent to a zip file via a command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:export'\
-     *   -X POST \
-     *   -H 'Authorization: Bearer' \
-     *   $(gcloud auth application-default print-access-token) \
-     *   -H 'Accept: application/json'
-     *   --compressed \
-     *   | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-     *   | base64 --decode > &lt;agent zip file&gt;</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; @@ -763,17 +748,7 @@ 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:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:export'\
-     *   -X POST \
-     *   -H 'Authorization: Bearer' \
-     *   $(gcloud auth application-default print-access-token) \
-     *   -H 'Accept: application/json'
-     *   --compressed \
-     *   | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-     *   | base64 --decode > &lt;agent zip file&gt;</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java index 99413403d..6a0c99659 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto @@ -35,17 +50,7 @@ public interface ExportAgentResponseOrBuilder * * *
-   * The exported agent.
-   * Example for how to export an agent to a zip file via a command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:export'\
-   *   -X POST \
-   *   -H 'Authorization: Bearer' \
-   *   $(gcloud auth application-default print-access-token) \
-   *   -H 'Accept: application/json'
-   *   --compressed \
-   *   | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-   *   | base64 --decode > &lt;agent zip file&gt;</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java index 06a03c2ec..88631dcbb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java index 31a5cf588..8ad75be13 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java index ae56743b0..b3ea6c9c8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java index b3328e1d9..4ac69e760 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java index 7115e9efe..36e844db8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java index 6cbb07979..ef7a99e22 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java index 185ff6618..762598c2d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java index e3379e867..e7cb11286 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java index a155ef1b0..7e9e14ec6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java index 601bd69c4..8de508915 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java index d82318980..869e5b6c9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto @@ -252,18 +267,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * The agent to import.
-   * Example for how to import an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:import'\
-   *    -X POST \
-   *    -H 'Authorization: Bearer'\
-   *    $(gcloud auth application-default print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --data-binary "{
-   *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; @@ -894,18 +898,7 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { * * *
-     * The agent to import.
-     * Example for how to import an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:import'\
-     *    -X POST \
-     *    -H 'Authorization: Bearer'\
-     *    $(gcloud auth application-default print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --data-binary "{
-     *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -920,18 +913,7 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * The agent to import.
-     * Example for how to import an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:import'\
-     *    -X POST \
-     *    -H 'Authorization: Bearer'\
-     *    $(gcloud auth application-default print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --data-binary "{
-     *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -949,18 +931,7 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) { * * *
-     * The agent to import.
-     * Example for how to import an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:import'\
-     *    -X POST \
-     *    -H 'Authorization: Bearer'\
-     *    $(gcloud auth application-default print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --data-binary "{
-     *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java index 8aa107920..d44407f4d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto @@ -62,18 +77,7 @@ public interface ImportAgentRequestOrBuilder * * *
-   * The agent to import.
-   * Example for how to import an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:import'\
-   *    -X POST \
-   *    -H 'Authorization: Bearer'\
-   *    $(gcloud auth application-default print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --data-binary "{
-   *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java index 95c43795e..b6154d6c5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java index bb1fb6269..8ed8df995 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java index 741154db4..935d4b495 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatch.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatch.java index 159af62c1..fae1e34ba 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatch.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatch.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatchOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatchOrBuilder.java index 62206d779..b30d1d3d2 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatchOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentBatchOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java index e2ef24c11..db54120fd 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java index e1c7c06fd..ee506da10 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java index fbb9301cb..3d943e7aa 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentView.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentView.java index bb8f0cfe6..fb1aba351 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentView.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentView.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java index 990754ad0..96f53ada2 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequestOrBuilder.java index dda940374..e37d7d100 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java index a5ec56d86..3c439cc49 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponseOrBuilder.java index 278d785cf..d48aaf01c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java index 3fe464ba6..79725c6b6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java index fd1f2b890..266803414 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java index 4146dcc50..867f3a5bb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponseOrBuilder.java index f8125d33f..c04049ff6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java index d7982f832..9a86174a6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java index a3b3b55fc..6fc396657 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java index d926ff2f6..e22de86d7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponseOrBuilder.java index 67affc6ee..68bc9fe9c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java index a07f14520..2e64d0f13 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequestOrBuilder.java index ae9029392..32e1aff2d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java index 7ef49f81d..128807523 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponseOrBuilder.java index 8620eb375..01f4b58af 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java index afec8453b..746f3af73 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java index 0cbb4dfef..eb23bdb01 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java index 16b8c21fa..f6afa1d37 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java index 9cf7f0450..69da74194 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java index 16c0392a6..19ebf3458 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java index d5ff3c3f1..05711c0b5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java index 7e9e71bc9..96bd9f4e4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInput.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInput.java index a1e9222b5..8c525f523 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInput.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInput.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInputOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInputOrBuilder.java index 82be47c19..e10bbf129 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInputOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryInputOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java index 009cb6dae..f30be2112 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java index 43471e178..1ca1c4137 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java index 182436f05..5d5e99291 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java index a07c1f911..f60a12128 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java index b9a29f541..9a1cfc4b6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto @@ -252,18 +267,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * The agent to restore.
-   * Example for how to restore an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:restore'\
-   *    -X POST \
-   *    -H 'Authorization: Bearer' \
-   *    $(gcloud auth application-default print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --data-binary "{
-   *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; @@ -894,18 +898,7 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { * * *
-     * The agent to restore.
-     * Example for how to restore an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:restore'\
-     *    -X POST \
-     *    -H 'Authorization: Bearer' \
-     *    $(gcloud auth application-default print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --data-binary "{
-     *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -920,18 +913,7 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * The agent to restore.
-     * Example for how to restore an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:restore'\
-     *    -X POST \
-     *    -H 'Authorization: Bearer' \
-     *    $(gcloud auth application-default print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --data-binary "{
-     *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -949,18 +931,7 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) { * * *
-     * The agent to restore.
-     * Example for how to restore an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:restore'\
-     *    -X POST \
-     *    -H 'Authorization: Bearer' \
-     *    $(gcloud auth application-default print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --data-binary "{
-     *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java index fc6a7dc2f..df1467bc1 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto @@ -62,18 +77,7 @@ public interface RestoreAgentRequestOrBuilder * * *
-   * The agent to restore.
-   * Example for how to restore an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2/projects/&lt;project_id&gt;/agent:restore'\
-   *    -X POST \
-   *    -H 'Authorization: Bearer' \
-   *    $(gcloud auth application-default print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --data-binary "{
-   *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java index 851fa712b..afafba07d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequestOrBuilder.java index f0c214753..1014faa73 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java index 2800cea68..a5cb59e9d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponseOrBuilder.java index f183862f9..6a6d229d7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java index ccc857a4d..a684c6dc5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java index d538a0cd7..74d0da9d6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java index 4ad8b7b67..6bf747401 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java index 70b4ccc4e..a909aa398 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java index c9a3b0ef8..77e98218b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java index 683bcb6c9..2668dc3bd 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java index 9d0b8a497..971ef66d6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java index 08b9eeb6a..61fd49a8f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java index 99e9b491f..690c92ae0 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java index ae2a504d6..6f7f61eef 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java index 77a55cb36..5b32af200 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2; diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java index 673f29ec1..c5f55d3c7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto @@ -76,111 +91,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/cloud/dialogflow/v2/session.pro" + "to\022\032google.cloud.dialogflow.v2\032\034google/a" + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032-google/cloud/" - + "dialogflow/v2/audio_config.proto\032(google" - + "/cloud/dialogflow/v2/context.proto\032\'goog" - + "le/cloud/dialogflow/v2/intent.proto\0324goo" - + "gle/cloud/dialogflow/v2/session_entity_t" - + "ype.proto\032\036google/protobuf/duration.prot" - + "o\032\034google/protobuf/struct.proto\032\027google/" - + "rpc/status.proto\032\030google/type/latlng.pro" - + "to\"\240\002\n\023DetectIntentRequest\022\024\n\007session\030\001 " - + "\001(\tB\003\340A\002\022F\n\014query_params\030\002 \001(\0132+.google." - + "cloud.dialogflow.v2.QueryParametersB\003\340A\001" - + "\022@\n\013query_input\030\003 \001(\0132&.google.cloud.dia" - + "logflow.v2.QueryInputB\003\340A\002\022O\n\023output_aud" - + "io_config\030\004 \001(\0132-.google.cloud.dialogflo" + + "proto\032\037google/api/field_behavior.proto\032-" + + "google/cloud/dialogflow/v2/audio_config." + + "proto\032(google/cloud/dialogflow/v2/contex" + + "t.proto\032\'google/cloud/dialogflow/v2/inte" + + "nt.proto\0324google/cloud/dialogflow/v2/ses" + + "sion_entity_type.proto\032\036google/protobuf/" + + "duration.proto\032\034google/protobuf/struct.p" + + "roto\032\027google/rpc/status.proto\032\030google/ty" + + "pe/latlng.proto\"\240\002\n\023DetectIntentRequest\022" + + "\024\n\007session\030\001 \001(\tB\003\340A\002\022F\n\014query_params\030\002 " + + "\001(\0132+.google.cloud.dialogflow.v2.QueryPa" + + "rametersB\003\340A\001\022@\n\013query_input\030\003 \001(\0132&.goo" + + "gle.cloud.dialogflow.v2.QueryInputB\003\340A\002\022" + + "O\n\023output_audio_config\030\004 \001(\0132-.google.cl" + + "oud.dialogflow.v2.OutputAudioConfigB\003\340A\001" + + "\022\030\n\013input_audio\030\005 \001(\014B\003\340A\001\"\370\001\n\024DetectInt" + + "entResponse\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\016webhook_status\030\003 \001(\0132" + + "\022.google.rpc.Status\022\024\n\014output_audio\030\004 \001(" + + "\014\022J\n\023output_audio_config\030\006 \001(\0132-.google." + + "cloud.dialogflow.v2.OutputAudioConfig\"\237\003" + + "\n\017QueryParameters\022\026\n\ttime_zone\030\001 \001(\tB\003\340A" + + "\001\022.\n\014geo_location\030\002 \001(\0132\023.google.type.La" + + "tLngB\003\340A\001\022:\n\010contexts\030\003 \003(\0132#.google.clo" + + "ud.dialogflow.v2.ContextB\003\340A\001\022\033\n\016reset_c" + + "ontexts\030\004 \001(\010B\003\340A\001\022P\n\024session_entity_typ" + + "es\030\005 \003(\0132-.google.cloud.dialogflow.v2.Se" + + "ssionEntityTypeB\003\340A\001\022-\n\007payload\030\006 \001(\0132\027." + + "google.protobuf.StructB\003\340A\001\022j\n!sentiment" + + "_analysis_request_config\030\n \001(\0132:.google." + + "cloud.dialogflow.v2.SentimentAnalysisReq" + + "uestConfigB\003\340A\001\"\313\001\n\nQueryInput\022D\n\014audio_" + + "config\030\001 \001(\0132,.google.cloud.dialogflow.v" + + "2.InputAudioConfigH\000\0225\n\004text\030\002 \001(\0132%.goo" + + "gle.cloud.dialogflow.v2.TextInputH\000\0227\n\005e" + + "vent\030\003 \001(\0132&.google.cloud.dialogflow.v2." + + "EventInputH\000B\007\n\005input\"\220\005\n\013QueryResult\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.go" + + "ogle.protobuf.Struct\022#\n\033all_required_par" + + "ams_present\030\005 \001(\010\022\030\n\020fulfillment_text\030\006 " + + "\001(\t\022H\n\024fulfillment_messages\030\007 \003(\0132*.goog" + + "le.cloud.dialogflow.v2.Intent.Message\022\026\n" + + "\016webhook_source\030\010 \001(\t\0220\n\017webhook_payload" + + "\030\t \001(\0132\027.google.protobuf.Struct\022<\n\017outpu" + + "t_contexts\030\n \003(\0132#.google.cloud.dialogfl" + + "ow.v2.Context\0222\n\006intent\030\013 \001(\0132\".google.c" + + "loud.dialogflow.v2.Intent\022#\n\033intent_dete" + + "ction_confidence\030\014 \001(\002\0220\n\017diagnostic_inf" + + "o\030\016 \001(\0132\027.google.protobuf.Struct\022V\n\031sent" + + "iment_analysis_result\030\021 \001(\01323.google.clo" + + "ud.dialogflow.v2.SentimentAnalysisResult" + + "\"\312\002\n\034StreamingDetectIntentRequest\022\024\n\007ses" + + "sion\030\001 \001(\tB\003\340A\002\022F\n\014query_params\030\002 \001(\0132+." + + "google.cloud.dialogflow.v2.QueryParamete" + + "rsB\003\340A\001\022@\n\013query_input\030\003 \001(\0132&.google.cl" + + "oud.dialogflow.v2.QueryInputB\003\340A\002\022\037\n\020sin" + + "gle_utterance\030\004 \001(\010B\005\030\001\340A\001\022O\n\023output_aud" + + "io_config\030\005 \001(\0132-.google.cloud.dialogflo" + "w.v2.OutputAudioConfigB\003\340A\001\022\030\n\013input_aud" - + "io\030\005 \001(\014B\003\340A\001\"\370\001\n\024DetectIntentResponse\022\023" - + "\n\013response_id\030\001 \001(\t\022=\n\014query_result\030\002 \001(" - + "\0132\'.google.cloud.dialogflow.v2.QueryResu" - + "lt\022*\n\016webhook_status\030\003 \001(\0132\022.google.rpc." - + "Status\022\024\n\014output_audio\030\004 \001(\014\022J\n\023output_a" - + "udio_config\030\006 \001(\0132-.google.cloud.dialogf" - + "low.v2.OutputAudioConfig\"\237\003\n\017QueryParame" - + "ters\022\026\n\ttime_zone\030\001 \001(\tB\003\340A\001\022.\n\014geo_loca" - + "tion\030\002 \001(\0132\023.google.type.LatLngB\003\340A\001\022:\n\010" - + "contexts\030\003 \003(\0132#.google.cloud.dialogflow" - + ".v2.ContextB\003\340A\001\022\033\n\016reset_contexts\030\004 \001(\010" - + "B\003\340A\001\022P\n\024session_entity_types\030\005 \003(\0132-.go" - + "ogle.cloud.dialogflow.v2.SessionEntityTy" - + "peB\003\340A\001\022-\n\007payload\030\006 \001(\0132\027.google.protob" - + "uf.StructB\003\340A\001\022j\n!sentiment_analysis_req" - + "uest_config\030\n \001(\0132:.google.cloud.dialogf" - + "low.v2.SentimentAnalysisRequestConfigB\003\340" - + "A\001\"\313\001\n\nQueryInput\022D\n\014audio_config\030\001 \001(\0132" - + ",.google.cloud.dialogflow.v2.InputAudioC" - + "onfigH\000\0225\n\004text\030\002 \001(\0132%.google.cloud.dia" - + "logflow.v2.TextInputH\000\0227\n\005event\030\003 \001(\0132&." - + "google.cloud.dialogflow.v2.EventInputH\000B" - + "\007\n\005input\"\220\005\n\013QueryResult\022\022\n\nquery_text\030\001" - + " \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\022%\n\035speech_re" - + "cognition_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_required_params_present\030\005" - + " \001(\010\022\030\n\020fulfillment_text\030\006 \001(\t\022H\n\024fulfil" - + "lment_messages\030\007 \003(\0132*.google.cloud.dial" - + "ogflow.v2.Intent.Message\022\026\n\016webhook_sour" - + "ce\030\010 \001(\t\0220\n\017webhook_payload\030\t \001(\0132\027.goog" - + "le.protobuf.Struct\022<\n\017output_contexts\030\n " - + "\003(\0132#.google.cloud.dialogflow.v2.Context" - + "\0222\n\006intent\030\013 \001(\0132\".google.cloud.dialogfl" - + "ow.v2.Intent\022#\n\033intent_detection_confide" - + "nce\030\014 \001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.goo" - + "gle.protobuf.Struct\022V\n\031sentiment_analysi" - + "s_result\030\021 \001(\01323.google.cloud.dialogflow" - + ".v2.SentimentAnalysisResult\"\312\002\n\034Streamin" - + "gDetectIntentRequest\022\024\n\007session\030\001 \001(\tB\003\340" - + "A\002\022F\n\014query_params\030\002 \001(\0132+.google.cloud." - + "dialogflow.v2.QueryParametersB\003\340A\001\022@\n\013qu" - + "ery_input\030\003 \001(\0132&.google.cloud.dialogflo" - + "w.v2.QueryInputB\003\340A\002\022\037\n\020single_utterance" - + "\030\004 \001(\010B\005\030\001\340A\001\022O\n\023output_audio_config\030\005 \001" - + "(\0132-.google.cloud.dialogflow.v2.OutputAu" - + "dioConfigB\003\340A\001\022\030\n\013input_audio\030\006 \001(\014B\003\340A\001" - + "\"\325\002\n\035StreamingDetectIntentResponse\022\023\n\013re" - + "sponse_id\030\001 \001(\t\022R\n\022recognition_result\030\002 " - + "\001(\01326.google.cloud.dialogflow.v2.Streami" - + "ngRecognitionResult\022=\n\014query_result\030\003 \001(" - + "\0132\'.google.cloud.dialogflow.v2.QueryResu" - + "lt\022*\n\016webhook_status\030\004 \001(\0132\022.google.rpc." - + "Status\022\024\n\014output_audio\030\005 \001(\014\022J\n\023output_a" - + "udio_config\030\006 \001(\0132-.google.cloud.dialogf" - + "low.v2.OutputAudioConfig\"\212\002\n\032StreamingRe" - + "cognitionResult\022X\n\014message_type\030\001 \001(\0162B." - + "google.cloud.dialogflow.v2.StreamingReco" - + "gnitionResult.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_UNSPE" - + "CIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGL" - + "E_UTTERANCE\020\002\":\n\tTextInput\022\021\n\004text\030\001 \001(\t" - + "B\003\340A\002\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\002\"m\n\nEve" - + "ntInput\022\021\n\004name\030\001 \001(\tB\003\340A\002\0220\n\nparameters" - + "\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\032\n\r" - + "language_code\030\003 \001(\tB\003\340A\002\"K\n\036SentimentAna" - + "lysisRequestConfig\022)\n\034analyze_query_text" - + "_sentiment\030\001 \001(\010B\003\340A\001\"^\n\027SentimentAnalys" - + "isResult\022C\n\024query_text_sentiment\030\001 \001(\0132%" - + ".google.cloud.dialogflow.v2.Sentiment\"-\n" - + "\tSentiment\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002" - + " \001(\0022\346\003\n\010Sessions\022\312\001\n\014DetectIntent\022/.goo" - + "gle.cloud.dialogflow.v2.DetectIntentRequ" - + "est\0320.google.cloud.dialogflow.v2.DetectI" - + "ntentResponse\"W\202\323\344\223\002;\"6/v2/{session=proj" - + "ects/*/agent/sessions/*}:detectIntent:\001*" - + "\332A\023session,query_input\022\222\001\n\025StreamingDete" - + "ctIntent\0228.google.cloud.dialogflow.v2.St" - + "reamingDetectIntentRequest\0329.google.clou" - + "d.dialogflow.v2.StreamingDetectIntentRes" - + "ponse\"\000(\0010\001\032x\312A\031dialogflow.googleapis.co" - + "m\322AYhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/dialogflowB\233\001\n\036com.google.cloud.dialo" - + "gflow.v2B\014SessionProtoP\001ZDgoogle.golang." - + "org/genproto/googleapis/cloud/dialogflow" - + "/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Di" - + "alogflow.V2b\006proto3" + + "io\030\006 \001(\014B\003\340A\001\"\325\002\n\035StreamingDetectIntentR" + + "esponse\022\023\n\013response_id\030\001 \001(\t\022R\n\022recognit" + + "ion_result\030\002 \001(\01326.google.cloud.dialogfl" + + "ow.v2.StreamingRecognitionResult\022=\n\014quer" + + "y_result\030\003 \001(\0132\'.google.cloud.dialogflow" + + ".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-.google." + + "cloud.dialogflow.v2.OutputAudioConfig\"\212\002" + + "\n\032StreamingRecognitionResult\022X\n\014message_" + + "type\030\001 \001(\0162B.google.cloud.dialogflow.v2." + + "StreamingRecognitionResult.MessageType\022\022" + + "\n\ntranscript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\n" + + "confidence\030\004 \001(\002\"X\n\013MessageType\022\034\n\030MESSA" + + "GE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n" + + "\027END_OF_SINGLE_UTTERANCE\020\002\":\n\tTextInput\022" + + "\021\n\004text\030\001 \001(\tB\003\340A\002\022\032\n\rlanguage_code\030\002 \001(" + + "\tB\003\340A\002\"m\n\nEventInput\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "0\n\nparameters\030\002 \001(\0132\027.google.protobuf.St" + + "ructB\003\340A\001\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\"K\n" + + "\036SentimentAnalysisRequestConfig\022)\n\034analy" + + "ze_query_text_sentiment\030\001 \001(\010B\003\340A\001\"^\n\027Se" + + "ntimentAnalysisResult\022C\n\024query_text_sent" + + "iment\030\001 \001(\0132%.google.cloud.dialogflow.v2" + + ".Sentiment\"-\n\tSentiment\022\r\n\005score\030\001 \001(\002\022\021" + + "\n\tmagnitude\030\002 \001(\0022\346\003\n\010Sessions\022\312\001\n\014Detec" + + "tIntent\022/.google.cloud.dialogflow.v2.Det" + + "ectIntentRequest\0320.google.cloud.dialogfl" + + "ow.v2.DetectIntentResponse\"W\202\323\344\223\002;\"6/v2/" + + "{session=projects/*/agent/sessions/*}:de" + + "tectIntent:\001*\332A\023session,query_input\022\222\001\n\025" + + "StreamingDetectIntent\0228.google.cloud.dia" + + "logflow.v2.StreamingDetectIntentRequest\032" + + "9.google.cloud.dialogflow.v2.StreamingDe" + + "tectIntentResponse\"\000(\0010\001\032x\312A\031dialogflow." + + "googleapis.com\322AYhttps://www.googleapis." + + "com/auth/cloud-platform,https://www.goog" + + "leapis.com/auth/dialogflowB\233\001\n\036com.googl" + + "e.cloud.dialogflow.v2B\014SessionProtoP\001ZDg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Go" + + "ogle.Cloud.Dialogflow.V2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -196,7 +210,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.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(), @@ -353,7 +366,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.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(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequest.java index c757f17cb..2ff4f9c0f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequestOrBuilder.java index 6c1a18130..ce294a505 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java index 2378d5305..a6d77068e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java index e9108184f..9f2a28674 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java index 0e0447c77..e3bf00020 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java index fc1aa85bc..cb5e0d519 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java index 0de2b2459..41afaef91 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java index a4c73e58d..effb3704e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java index cd305c052..83756958d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java index 32bf9996e..6444aca1b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java index 887cbb50a..e5a93104f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java index 7d2b3b831..fd9bd6e4a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java index 2efd318e6..aeb0ab6be 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java index 1211e5538..d221624c7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java index 3871c3730..5a8c794f7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequestOrBuilder.java index 305bfcecc..b21255338 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/agent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java index 43deadb76..2fd3ef1f2 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequestOrBuilder.java index 5fc00a347..3e9b17f33 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/context.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java index a799b2368..4b5c43e56 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java index e0a9df6d3..5752c2bd0 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java index 06bceb3b7..db6e642a9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java index c2ee2ac03..07b453808 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/intent.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java index 6658833b4..dc852848d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequestOrBuilder.java index 9b6000aaf..e9c0be5d9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java index dffee3342..d438b2152 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java index e79b5af87..6bb7f0c34 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java index f9fe28f86..8afc43569 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto @@ -46,21 +61,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oud.dialogflow.v2.QueryResult\022_\n\036origina" + "l_detect_intent_request\030\003 \001(\01327.google.c" + "loud.dialogflow.v2.OriginalDetectIntentR" - + "equest\"\263\002\n\017WebhookResponse\022\030\n\020fulfillmen" + + "equest\"\200\003\n\017WebhookResponse\022\030\n\020fulfillmen" + "t_text\030\001 \001(\t\022H\n\024fulfillment_messages\030\002 \003" + "(\0132*.google.cloud.dialogflow.v2.Intent.M" + "essage\022\016\n\006source\030\003 \001(\t\022(\n\007payload\030\004 \001(\0132" + "\027.google.protobuf.Struct\022<\n\017output_conte" + "xts\030\005 \003(\0132#.google.cloud.dialogflow.v2.C" + "ontext\022D\n\024followup_event_input\030\006 \001(\0132&.g" - + "oogle.cloud.dialogflow.v2.EventInput\"h\n\033" - + "OriginalDetectIntentRequest\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\233\001\n\036com.google.cl" - + "oud.dialogflow.v2B\014WebhookProtoP\001ZDgoogl" - + "e.golang.org/genproto/googleapis/cloud/d" - + "ialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google" - + ".Cloud.Dialogflow.V2b\006proto3" + + "oogle.cloud.dialogflow.v2.EventInput\022K\n\024" + + "session_entity_types\030\n \003(\0132-.google.clou" + + "d.dialogflow.v2.SessionEntityType\"h\n\033Ori" + + "ginalDetectIntentRequest\022\016\n\006source\030\001 \001(\t" + + "\022\017\n\007version\030\002 \001(\t\022(\n\007payload\030\003 \001(\0132\027.goo" + + "gle.protobuf.StructB\233\001\n\036com.google.cloud" + + ".dialogflow.v2B\014WebhookProtoP\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" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -101,6 +118,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Payload", "OutputContexts", "FollowupEventInput", + "SessionEntityTypes", }); internal_static_google_cloud_dialogflow_v2_OriginalDetectIntentRequest_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java index e81642515..94b37266f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java index 388d71a63..ac042a1bc 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponse.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponse.java index d347169f7..842d2a2ed 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponse.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto @@ -27,6 +42,7 @@ private WebhookResponse() { fulfillmentMessages_ = java.util.Collections.emptyList(); source_ = ""; outputContexts_ = java.util.Collections.emptyList(); + sessionEntityTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -120,6 +136,19 @@ private WebhookResponse( break; } + case 82: + { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + sessionEntityTypes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + sessionEntityTypes_.add( + input.readMessage( + com.google.cloud.dialogflow.v2.SessionEntityType.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -140,6 +169,9 @@ private WebhookResponse( if (((mutable_bitField0_ & 0x00000010) != 0)) { outputContexts_ = java.util.Collections.unmodifiableList(outputContexts_); } + if (((mutable_bitField0_ & 0x00000040) != 0)) { + sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -541,6 +573,92 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getFollowupEventInputO return getFollowupEventInput(); } + public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 10; + private java.util.List sessionEntityTypes_; + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + public java.util.List + getSessionEntityTypesList() { + return sessionEntityTypes_; + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + public java.util.List + getSessionEntityTypesOrBuilderList() { + return sessionEntityTypes_; + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + public int getSessionEntityTypesCount() { + return sessionEntityTypes_.size(); + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityTypes(int index) { + return sessionEntityTypes_.get(index); + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder( + int index) { + return sessionEntityTypes_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -573,6 +691,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (followupEventInput_ != null) { output.writeMessage(6, getFollowupEventInput()); } + for (int i = 0; i < sessionEntityTypes_.size(); i++) { + output.writeMessage(10, sessionEntityTypes_.get(i)); + } unknownFields.writeTo(output); } @@ -601,6 +722,10 @@ public int getSerializedSize() { if (followupEventInput_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFollowupEventInput()); } + for (int i = 0; i < sessionEntityTypes_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, sessionEntityTypes_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -629,6 +754,7 @@ public boolean equals(final java.lang.Object obj) { if (hasFollowupEventInput()) { if (!getFollowupEventInput().equals(other.getFollowupEventInput())) return false; } + if (!getSessionEntityTypesList().equals(other.getSessionEntityTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -660,6 +786,10 @@ public int hashCode() { hash = (37 * hash) + FOLLOWUP_EVENT_INPUT_FIELD_NUMBER; hash = (53 * hash) + getFollowupEventInput().hashCode(); } + if (getSessionEntityTypesCount() > 0) { + hash = (37 * hash) + SESSION_ENTITY_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getSessionEntityTypesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -802,6 +932,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFulfillmentMessagesFieldBuilder(); getOutputContextsFieldBuilder(); + getSessionEntityTypesFieldBuilder(); } } @@ -836,6 +967,12 @@ public Builder clear() { followupEventInput_ = null; followupEventInputBuilder_ = null; } + if (sessionEntityTypesBuilder_ == null) { + sessionEntityTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + sessionEntityTypesBuilder_.clear(); + } return this; } @@ -895,6 +1032,15 @@ public com.google.cloud.dialogflow.v2.WebhookResponse buildPartial() { } else { result.followupEventInput_ = followupEventInputBuilder_.build(); } + if (sessionEntityTypesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.sessionEntityTypes_ = sessionEntityTypes_; + } else { + result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1013,6 +1159,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.WebhookResponse other) { if (other.hasFollowupEventInput()) { mergeFollowupEventInput(other.getFollowupEventInput()); } + if (sessionEntityTypesBuilder_ == null) { + if (!other.sessionEntityTypes_.isEmpty()) { + if (sessionEntityTypes_.isEmpty()) { + sessionEntityTypes_ = other.sessionEntityTypes_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.addAll(other.sessionEntityTypes_); + } + onChanged(); + } + } else { + if (!other.sessionEntityTypes_.isEmpty()) { + if (sessionEntityTypesBuilder_.isEmpty()) { + sessionEntityTypesBuilder_.dispose(); + sessionEntityTypesBuilder_ = null; + sessionEntityTypes_ = other.sessionEntityTypes_; + bitField0_ = (bitField0_ & ~0x00000040); + sessionEntityTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSessionEntityTypesFieldBuilder() + : null; + } else { + sessionEntityTypesBuilder_.addAllMessages(other.sessionEntityTypes_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2561,6 +2734,457 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getFollowupEventInputO return followupEventInputBuilder_; } + private java.util.List sessionEntityTypes_ = + java.util.Collections.emptyList(); + + private void ensureSessionEntityTypesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + sessionEntityTypes_ = + new java.util.ArrayList( + sessionEntityTypes_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.SessionEntityType, + com.google.cloud.dialogflow.v2.SessionEntityType.Builder, + com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder> + sessionEntityTypesBuilder_; + + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesList() { + if (sessionEntityTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sessionEntityTypes_); + } else { + return sessionEntityTypesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public int getSessionEntityTypesCount() { + if (sessionEntityTypesBuilder_ == null) { + return sessionEntityTypes_.size(); + } else { + return sessionEntityTypesBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityTypes(int index) { + if (sessionEntityTypesBuilder_ == null) { + return sessionEntityTypes_.get(index); + } else { + return sessionEntityTypesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder setSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2.SessionEntityType value) { + if (sessionEntityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.set(index, value); + onChanged(); + } else { + sessionEntityTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder setSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2.SessionEntityType.Builder builderForValue) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + sessionEntityTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes(com.google.cloud.dialogflow.v2.SessionEntityType value) { + if (sessionEntityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(value); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2.SessionEntityType value) { + if (sessionEntityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(index, value); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + com.google.cloud.dialogflow.v2.SessionEntityType.Builder builderForValue) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(builderForValue.build()); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2.SessionEntityType.Builder builderForValue) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder addAllSessionEntityTypes( + java.lang.Iterable values) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sessionEntityTypes_); + onChanged(); + } else { + sessionEntityTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder clearSessionEntityTypes() { + if (sessionEntityTypesBuilder_ == null) { + sessionEntityTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + sessionEntityTypesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public Builder removeSessionEntityTypes(int index) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.remove(index); + onChanged(); + } else { + sessionEntityTypesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2.SessionEntityType.Builder getSessionEntityTypesBuilder( + int index) { + return getSessionEntityTypesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder( + int index) { + if (sessionEntityTypesBuilder_ == null) { + return sessionEntityTypes_.get(index); + } else { + return sessionEntityTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesOrBuilderList() { + if (sessionEntityTypesBuilder_ != null) { + return sessionEntityTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sessionEntityTypes_); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2.SessionEntityType.Builder addSessionEntityTypesBuilder() { + return getSessionEntityTypesFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance()); + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2.SessionEntityType.Builder addSessionEntityTypesBuilder( + int index) { + return getSessionEntityTypesFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance()); + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesBuilderList() { + return getSessionEntityTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.SessionEntityType, + com.google.cloud.dialogflow.v2.SessionEntityType.Builder, + com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder> + getSessionEntityTypesFieldBuilder() { + if (sessionEntityTypesBuilder_ == null) { + sessionEntityTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.SessionEntityType, + com.google.cloud.dialogflow.v2.SessionEntityType.Builder, + com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder>( + sessionEntityTypes_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + sessionEntityTypes_ = null; + } + return sessionEntityTypesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponseOrBuilder.java index fca325b02..450e9e278 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2/webhook.proto @@ -299,4 +314,77 @@ public interface WebhookResponseOrBuilder * .google.cloud.dialogflow.v2.EventInput followup_event_input = 6; */ com.google.cloud.dialogflow.v2.EventInputOrBuilder getFollowupEventInputOrBuilder(); + + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + java.util.List getSessionEntityTypesList(); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityTypes(int index); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + int getSessionEntityTypesCount(); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + java.util.List + getSessionEntityTypesOrBuilderList(); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; + */ + com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder( + int index); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto index 14502fc6d..f6dca94c4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto @@ -383,18 +383,7 @@ message ExportAgentResponse { // only if `agent_uri` is specified in `ExportAgentRequest`. string agent_uri = 1; - // 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_id>/agent:export'\
-    //   -X POST \
-    //   -H 'Authorization: Bearer' \
-    //   $(gcloud auth application-default print-access-token) \
-    //   -H 'Accept: application/json'
-    //   --compressed \
-    //   | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-    //   | base64 --decode > <agent zip file>
+ // Zip compressed raw byte content for agent. bytes agent_content = 2; } } @@ -416,19 +405,7 @@ message ImportAgentRequest { // Note: The URI must start with "gs://". string agent_uri = 2; - // The agent to import. - // - // Example for how to import an agent via the command line: - //
curl \
-    //   'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:import'\
-    //    -X POST \
-    //    -H 'Authorization: Bearer'\
-    //    $(gcloud auth application-default print-access-token) \
-    //    -H 'Accept: application/json' \
-    //    -H 'Content-Type: application/json' \
-    //    --data-binary "{
-    //       'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-    //    }"
+ // Zip compressed raw byte content for agent. bytes agent_content = 3; } } @@ -450,19 +427,7 @@ message RestoreAgentRequest { // Note: The URI must start with "gs://". string agent_uri = 2; - // The agent to restore. - // - // Example for how to restore an agent via the command line: - //
curl \
-    //   'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:restore'\
-    //    -X POST \
-    //    -H 'Authorization: Bearer' \
-    //    $(gcloud auth application-default print-access-token) \
-    //    -H 'Accept: application/json' \
-    //    -H 'Content-Type: application/json' \
-    //    --data-binary "{
-    //        'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-    //    }"
+ // Zip compressed raw byte content for agent. bytes agent_content = 3; } } diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index 3a1c600c5..9e9023958 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.v2; +import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index 1e29f5af4..86c893232 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -20,7 +20,6 @@ package google.cloud.dialogflow.v2; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.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"; diff --git a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto index 056f4615c..377eaa71f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto +++ b/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto @@ -101,6 +101,13 @@ message WebhookResponse { // When this field is set, Dialogflow ignores the `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. EventInput followup_event_input = 6; + + // 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. Setting the session entity types inside + // webhook overwrites the session entity types that have been set through + // `DetectIntentRequest.query_params.session_entity_types`. + repeated SessionEntityType session_entity_types = 10; } // Represents the contents of the original request that was passed to diff --git a/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml b/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml new file mode 100644 index 000000000..c4119c156 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/clirr-ignored-differences.xml @@ -0,0 +1,14 @@ + + + + + 7012 + com/google/cloud/dialogflow/**/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/dialogflow/**/*OrBuilder + * has*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-dialogflow-v2beta1/pom.xml b/proto-google-cloud-dialogflow-v2beta1/pom.xml index ac64fa5a9..8b22ac236 100644 --- a/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -2,30 +2,32 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 0.82.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 - com.google.api.grpc - google-api-grpc - 0.82.0 + com.google.cloud + google-cloud-dialogflow-parent + 0.117.0-alpha com.google.protobuf protobuf-java - compile + + + com.google.api.grpc + proto-google-common-protos com.google.api api-common - compile - com.google.api.grpc - proto-google-common-protos - compile + com.google.guava + guava \ No newline at end of file diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java index 5e6acb7e0..70db17461 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java index b234b4666..a8fac6dd6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java index f337384a8..79861a801 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -56,6 +71,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_RestoreAgentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_RestoreAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,96 +86,108 @@ 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\027google/api/client.proto\"\323\005\n\005Ag" - + "ent\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\030supp" - + "orted_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\022D\n\nmatch_" - + "mode\030\t \001(\01620.google.cloud.dialogflow.v2b" - + "eta1.Agent.MatchMode\022 \n\030classification_t" - + "hreshold\030\n \001(\002\022F\n\013api_version\030\016 \001(\01621.go" - + "ogle.cloud.dialogflow.v2beta1.Agent.ApiV" - + "ersion\0229\n\004tier\030\017 \001(\0162+.google.cloud.dial" - + "ogflow.v2beta1.Agent.Tier\"V\n\tMatchMode\022\032" - + "\n\026MATCH_MODE_UNSPECIFIED\020\000\022\025\n\021MATCH_MODE" - + "_HYBRID\020\001\022\026\n\022MATCH_MODE_ML_ONLY\020\002\"l\n\nApi" - + "Version\022\033\n\027API_VERSION_UNSPECIFIED\020\000\022\022\n\016" - + "API_VERSION_V1\020\001\022\022\n\016API_VERSION_V2\020\002\022\031\n\025" - + "API_VERSION_V2_BETA_1\020\003\"^\n\004Tier\022\024\n\020TIER_" - + "UNSPECIFIED\020\000\022\021\n\rTIER_STANDARD\020\001\022\023\n\017TIER" - + "_ENTERPRISE\020\002\022\030\n\024TIER_ENTERPRISE_PLUS\020\003\"" - + "!\n\017GetAgentRequest\022\016\n\006parent\030\001 \001(\t\"y\n\017Se" - + "tAgentRequest\0225\n\005agent\030\001 \001(\0132&.google.cl" - + "oud.dialogflow.v2beta1.Agent\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n" - + "\022DeleteAgentRequest\022\016\n\006parent\030\001 \001(\t\"L\n\023S" - + "earchAgentsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"g\n\024Sea" - + "rchAgentsResponse\0226\n\006agents\030\001 \003(\0132&.goog" - + "le.cloud.dialogflow.v2beta1.Agent\022\027\n\017nex" - + "t_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\023Expo" - + "rtAgentResponse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\r" - + "agent_content\030\002 \001(\014H\000B\007\n\005agent\"[\n\022Import" - + "AgentRequest\022\016\n\006parent\030\001 \001(\t\022\023\n\tagent_ur" - + "i\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014H\000B\007\n\005ag" - + "ent\"\\\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\352\r\n\006Agents\022\302\001\n\010GetAgen" - + "t\0220.google.cloud.dialogflow.v2beta1.GetA" - + "gentRequest\032&.google.cloud.dialogflow.v2" - + "beta1.Agent\"\\\202\323\344\223\002V\022\"/v2beta1/{parent=pr" - + "ojects/*}/agentZ0\022./v2beta1/{parent=proj" - + "ects/*/locations/*}/agent\022\334\001\n\010SetAgent\0220" - + ".google.cloud.dialogflow.v2beta1.SetAgen" - + "tRequest\032&.google.cloud.dialogflow.v2bet" - + "a1.Agent\"v\202\323\344\223\002p\"(/v2beta1/{agent.parent" - + "=projects/*}/agent:\005agentZ=\"4/v2beta1/{a" - + "gent.parent=projects/*/locations/*}/agen" - + "t:\005agent\022\270\001\n\013DeleteAgent\0223.google.cloud." - + "dialogflow.v2beta1.DeleteAgentRequest\032\026." - + "google.protobuf.Empty\"\\\202\323\344\223\002V*\"/v2beta1/" - + "{parent=projects/*}/agentZ0*./v2beta1/{p" - + "arent=projects/*/locations/*}/agent\022\256\001\n\014" - + "SearchAgents\0224.google.cloud.dialogflow.v" - + "2beta1.SearchAgentsRequest\0325.google.clou" - + "d.dialogflow.v2beta1.SearchAgentsRespons" - + "e\"1\202\323\344\223\002+\022)/v2beta1/{parent=projects/*}/" - + "agent:search\022\317\001\n\nTrainAgent\0222.google.clo" - + "ud.dialogflow.v2beta1.TrainAgentRequest\032" - + "\035.google.longrunning.Operation\"n\202\323\344\223\002h\"(" - + "/v2beta1/{parent=projects/*}/agent:train" - + ":\001*Z9\"4/v2beta1/{parent=projects/*/locat" - + "ions/*}/agent:train:\001*\022\323\001\n\013ExportAgent\0223" - + ".google.cloud.dialogflow.v2beta1.ExportA" - + "gentRequest\032\035.google.longrunning.Operati" - + "on\"p\202\323\344\223\002j\")/v2beta1/{parent=projects/*}" - + "/agent:export:\001*Z:\"5/v2beta1/{parent=pro" - + "jects/*/locations/*}/agent:export:\001*\022\323\001\n" - + "\013ImportAgent\0223.google.cloud.dialogflow.v" - + "2beta1.ImportAgentRequest\032\035.google.longr" - + "unning.Operation\"p\202\323\344\223\002j\")/v2beta1/{pare" - + "nt=projects/*}/agent:import:\001*Z:\"5/v2bet" - + "a1/{parent=projects/*/locations/*}/agent" - + ":import:\001*\022\327\001\n\014RestoreAgent\0224.google.clo" - + "ud.dialogflow.v2beta1.RestoreAgentReques" - + "t\032\035.google.longrunning.Operation\"r\202\323\344\223\002l" - + "\"*/v2beta1/{parent=projects/*}/agent:res" - + "tore:\001*Z;\"6/v2beta1/{parent=projects/*/l" - + "ocations/*}/agent:restore:\001*\032x\312A\031dialogf" - + "low.googleapis.com\322AYhttps://www.googlea" - + "pis.com/auth/cloud-platform,https://www." - + "googleapis.com/auth/dialogflowB\250\001\n#com.g" - + "oogle.cloud.dialogflow.v2beta1B\nAgentPro" - + "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" + + "google/api/annotations.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\0327google/cloud/dialogflow/v2beta" + + "1/validation_result.proto\032#google/longru" + + "nning/operations.proto\032\033google/protobuf/" + + "empty.proto\032 google/protobuf/field_mask." + + "proto\032\027google/api/client.proto\"\302\006\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\030support" + + "ed_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\022D\n\nmatch_mod" + + "e\030\t \001(\01620.google.cloud.dialogflow.v2beta" + + "1.Agent.MatchMode\022 \n\030classification_thre" + + "shold\030\n \001(\002\022F\n\013api_version\030\016 \001(\01621.googl" + + "e.cloud.dialogflow.v2beta1.Agent.ApiVers" + + "ion\0229\n\004tier\030\017 \001(\0162+.google.cloud.dialogf" + + "low.v2beta1.Agent.Tier\"V\n\tMatchMode\022\032\n\026M" + + "ATCH_MODE_UNSPECIFIED\020\000\022\025\n\021MATCH_MODE_HY" + + "BRID\020\001\022\026\n\022MATCH_MODE_ML_ONLY\020\002\"l\n\nApiVer" + + "sion\022\033\n\027API_VERSION_UNSPECIFIED\020\000\022\022\n\016API" + + "_VERSION_V1\020\001\022\022\n\016API_VERSION_V2\020\002\022\031\n\025API" + + "_VERSION_V2_BETA_1\020\003\"^\n\004Tier\022\024\n\020TIER_UNS" + + "PECIFIED\020\000\022\021\n\rTIER_STANDARD\020\001\022\023\n\017TIER_EN" + + "TERPRISE\020\002\022\030\n\024TIER_ENTERPRISE_PLUS\020\003:m\352A" + + "j\n\037dialogflow.googleapis.com/Agent\022\030proj" + + "ects/{project}/agent\022-projects/{project}" + + "/locations/{location}/agent\"!\n\017GetAgentR" + + "equest\022\016\n\006parent\030\001 \001(\t\"y\n\017SetAgentReques" + + "t\0225\n\005agent\030\001 \001(\0132&.google.cloud.dialogfl" + + "ow.v2beta1.Agent\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"$\n\022DeleteAgent" + + "Request\022\016\n\006parent\030\001 \001(\t\"L\n\023SearchAgentsR" + + "equest\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\024SearchAgentsRes" + + "ponse\0226\n\006agents\030\001 \003(\0132&.google.cloud.dia" + + "logflow.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\023ExportAgentRespo" + + "nse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_conten" + + "t\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" + + "\ragent_content\030\003 \001(\014H\000B\007\n\005agent\"\\\n\023Resto" + + "reAgentRequest\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\005" + + "agent\"C\n\032GetValidationResultRequest\022\016\n\006p" + + "arent\030\001 \001(\t\022\025\n\rlanguage_code\030\003 \001(\t2\257\017\n\006A" + + "gents\022\302\001\n\010GetAgent\0220.google.cloud.dialog" + + "flow.v2beta1.GetAgentRequest\032&.google.cl" + + "oud.dialogflow.v2beta1.Agent\"\\\202\323\344\223\002V\022\"/v" + + "2beta1/{parent=projects/*}/agentZ0\022./v2b" + + "eta1/{parent=projects/*/locations/*}/age" + + "nt\022\334\001\n\010SetAgent\0220.google.cloud.dialogflo" + + "w.v2beta1.SetAgentRequest\032&.google.cloud" + + ".dialogflow.v2beta1.Agent\"v\202\323\344\223\002p\"(/v2be" + + "ta1/{agent.parent=projects/*}/agent:\005age" + + "ntZ=\"4/v2beta1/{agent.parent=projects/*/" + + "locations/*}/agent:\005agent\022\270\001\n\013DeleteAgen" + + "t\0223.google.cloud.dialogflow.v2beta1.Dele" + + "teAgentRequest\032\026.google.protobuf.Empty\"\\" + + "\202\323\344\223\002V*\"/v2beta1/{parent=projects/*}/age" + + "ntZ0*./v2beta1/{parent=projects/*/locati" + + "ons/*}/agent\022\256\001\n\014SearchAgents\0224.google.c" + + "loud.dialogflow.v2beta1.SearchAgentsRequ" + + "est\0325.google.cloud.dialogflow.v2beta1.Se" + + "archAgentsResponse\"1\202\323\344\223\002+\022)/v2beta1/{pa" + + "rent=projects/*}/agent:search\022\317\001\n\nTrainA" + + "gent\0222.google.cloud.dialogflow.v2beta1.T" + + "rainAgentRequest\032\035.google.longrunning.Op" + + "eration\"n\202\323\344\223\002h\"(/v2beta1/{parent=projec" + + "ts/*}/agent:train:\001*Z9\"4/v2beta1/{parent" + + "=projects/*/locations/*}/agent:train:\001*\022" + + "\323\001\n\013ExportAgent\0223.google.cloud.dialogflo" + + "w.v2beta1.ExportAgentRequest\032\035.google.lo" + + "ngrunning.Operation\"p\202\323\344\223\002j\")/v2beta1/{p" + + "arent=projects/*}/agent:export:\001*Z:\"5/v2" + + "beta1/{parent=projects/*/locations/*}/ag" + + "ent:export:\001*\022\323\001\n\013ImportAgent\0223.google.c" + + "loud.dialogflow.v2beta1.ImportAgentReque" + + "st\032\035.google.longrunning.Operation\"p\202\323\344\223\002" + + "j\")/v2beta1/{parent=projects/*}/agent:im" + + "port:\001*Z:\"5/v2beta1/{parent=projects/*/l" + + "ocations/*}/agent:import:\001*\022\327\001\n\014RestoreA" + + "gent\0224.google.cloud.dialogflow.v2beta1.R" + + "estoreAgentRequest\032\035.google.longrunning." + + "Operation\"r\202\323\344\223\002l\"*/v2beta1/{parent=proj" + + "ects/*}/agent:restore:\001*Z;\"6/v2beta1/{pa" + + "rent=projects/*/locations/*}/agent:resto" + + "re:\001*\022\302\001\n\023GetValidationResult\022;.google.c" + + "loud.dialogflow.v2beta1.GetValidationRes" + + "ultRequest\0321.google.cloud.dialogflow.v2b" + + "eta1.ValidationResult\";\202\323\344\223\0025\0223/v2beta1/" + + "{parent=projects/*}/agent/validationResu" + + "lt\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialog" + + "flowB\250\001\n#com.google.cloud.dialogflow.v2b" + + "eta1B\nAgentProtoP\001ZIgoogle.golang.org/ge" + + "nproto/googleapis/cloud/dialogflow/v2bet" + + "a1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dia" + + "logflow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -170,6 +201,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ValidationResultProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -275,14 +309,26 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Parent", "AgentUri", "AgentContent", "Agent", }); + internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_descriptor, + new java.lang.String[] { + "Parent", "LanguageCode", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ValidationResultProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java index 56aea4fe5..fba8b1d82 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto @@ -47,57 +62,58 @@ 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\036google/protobuf/duration.proto\032\034g" - + "oogle/api/annotations.proto\"/\n\rSpeechCon" - + "text\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\002 \001(\002\"\222\001\n" - + "\016SpeechWordInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_o" - + "ffset\030\001 \001(\0132\031.google.protobuf.Duration\022-" - + "\n\nend_offset\030\002 \001(\0132\031.google.protobuf.Dur" - + "ation\022\022\n\nconfidence\030\004 \001(\002\"\372\002\n\020InputAudio" - + "Config\022F\n\016audio_encoding\030\001 \001(\0162..google." - + "cloud.dialogflow.v2beta1.AudioEncoding\022\031" - + "\n\021sample_rate_hertz\030\002 \001(\005\022\025\n\rlanguage_co" - + "de\030\003 \001(\t\022\030\n\020enable_word_info\030\r \001(\010\022\024\n\014ph" - + "rase_hints\030\004 \003(\t\022G\n\017speech_contexts\030\013 \003(" - + "\0132..google.cloud.dialogflow.v2beta1.Spee" - + "chContext\022\r\n\005model\030\007 \001(\t\022J\n\rmodel_varian" - + "t\030\n \001(\01623.google.cloud.dialogflow.v2beta" - + "1.SpeechModelVariant\022\030\n\020single_utterance" - + "\030\010 \001(\010\"k\n\024VoiceSelectionParams\022\014\n\004name\030\001" - + " \001(\t\022E\n\013ssml_gender\030\002 \001(\01620.google.cloud" - + ".dialogflow.v2beta1.SsmlVoiceGender\"\270\001\n\026" - + "SynthesizeSpeechConfig\022\025\n\rspeaking_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\005voic" - + "e\030\004 \001(\01325.google.cloud.dialogflow.v2beta" - + "1.VoiceSelectionParams\"\327\001\n\021OutputAudioCo" - + "nfig\022L\n\016audio_encoding\030\001 \001(\01624.google.cl" - + "oud.dialogflow.v2beta1.OutputAudioEncodi" - + "ng\022\031\n\021sample_rate_hertz\030\002 \001(\005\022Y\n\030synthes" - + "ize_speech_config\030\003 \001(\01327.google.cloud.d" - + "ialogflow.v2beta1.SynthesizeSpeechConfig" - + "*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING_UNS" - + "PECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001" - + "\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCOD" - + "ING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025A" - + "UDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING" - + "_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH" - + "_HEADER_BYTE\020\007*v\n\022SpeechModelVariant\022$\n " - + "SPEECH_MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022US" - + "E_BEST_AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014" - + "USE_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SS" - + "ML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VO" - + "ICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_F" - + "EMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020\003*\244" - + "\001\n\023OutputAudioEncoding\022%\n!OUTPUT_AUDIO_E" - + "NCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_EN" - + "CODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCOD" - + "ING_MP3\020\002\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_O" - + "PUS\020\003B\256\001\n#com.google.cloud.dialogflow.v2" - + "beta1B\020AudioConfigProtoP\001ZIgoogle.golang" - + ".org/genproto/googleapis/cloud/dialogflo" - + "w/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cl" - + "oud.Dialogflow.V2beta1b\006proto3" + + "beta1\032\037google/api/field_behavior.proto\032\036" + + "google/protobuf/duration.proto\032\034google/a" + + "pi/annotations.proto\"/\n\rSpeechContext\022\017\n" + + "\007phrases\030\001 \003(\t\022\r\n\005boost\030\002 \001(\002\"\222\001\n\016Speech" + + "WordInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_offset\030\001" + + " \001(\0132\031.google.protobuf.Duration\022-\n\nend_o" + + "ffset\030\002 \001(\0132\031.google.protobuf.Duration\022\022" + + "\n\nconfidence\030\004 \001(\002\"\372\002\n\020InputAudioConfig\022" + + "F\n\016audio_encoding\030\001 \001(\0162..google.cloud.d" + + "ialogflow.v2beta1.AudioEncoding\022\031\n\021sampl" + + "e_rate_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 \001(" + + "\t\022\030\n\020enable_word_info\030\r \001(\010\022\024\n\014phrase_hi" + + "nts\030\004 \003(\t\022G\n\017speech_contexts\030\013 \003(\0132..goo" + + "gle.cloud.dialogflow.v2beta1.SpeechConte" + + "xt\022\r\n\005model\030\007 \001(\t\022J\n\rmodel_variant\030\n \001(\016" + + "23.google.cloud.dialogflow.v2beta1.Speec" + + "hModelVariant\022\030\n\020single_utterance\030\010 \001(\010\"" + + "k\n\024VoiceSelectionParams\022\014\n\004name\030\001 \001(\t\022E\n" + + "\013ssml_gender\030\002 \001(\01620.google.cloud.dialog" + + "flow.v2beta1.SsmlVoiceGender\"\270\001\n\026Synthes" + + "izeSpeechConfig\022\025\n\rspeaking_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(\013" + + "25.google.cloud.dialogflow.v2beta1.Voice" + + "SelectionParams\"\327\001\n\021OutputAudioConfig\022L\n" + + "\016audio_encoding\030\001 \001(\01624.google.cloud.dia" + + "logflow.v2beta1.OutputAudioEncoding\022\031\n\021s" + + "ample_rate_hertz\030\002 \001(\005\022Y\n\030synthesize_spe" + + "ech_config\030\003 \001(\01327.google.cloud.dialogfl" + + "ow.v2beta1.SynthesizeSpeechConfig*\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\007*v\n\022SpeechModelVariant\022$\n SPEECH_" + + "MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE_BEST_" + + "AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014USE_ENH" + + "ANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSML_VOIC" + + "E_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VOICE_GEN" + + "DER_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_FEMALE\020\002" + + "\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020\003*\244\001\n\023Outp" + + "utAudioEncoding\022%\n!OUTPUT_AUDIO_ENCODING" + + "_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENCODING_" + + "LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODING_MP3" + + "\020\002\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003B\256" + + "\001\n#com.google.cloud.dialogflow.v2beta1B\020" + + "AudioConfigProtoP\001ZIgoogle.golang.org/ge" + + "nproto/googleapis/cloud/dialogflow/v2bet" + + "a1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dia" + + "logflow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -110,6 +126,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }, @@ -170,6 +187,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig", }); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java index 02170b409..467e266d2 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java index e48f960f1..212eeb00f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java index 62d65739c..5ebe5d198 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java index a881bb9ea..a9261d575 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java index 8e6fb5b7c..fd50a1be4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java index bf2db0687..f3d03f058 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequestOrBuilder.java index 392cd1dc3..623aec0f6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java index 131de5e7b..87b6de6a1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequestOrBuilder.java index e17fb8d9c..84e2934e0 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java index 06a9f2435..294fa56fb 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java index 6d8ef8784..d029e95c6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java index f0754b264..aeca3b12d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java index c04ec1d76..1fcc10d8e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java index 99925ec39..f39b17d3a 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponseOrBuilder.java index fa8ab7bdd..31dd388f0 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java index 2cf353cc5..931d9a6ab 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java index f9f065afb..7fcd93a53 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java index 17c46c66d..239159c40 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponseOrBuilder.java index bd04e2f8c..a2bd143b3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java index 5db0ba60d..c6c4e930b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java index d70a79a56..431df6324 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java index b76b4aff1..772573e3e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java index e69fc9618..a17754ad3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java index 435179b2b..cf3f00730 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java index 712cc883a..4c6011692 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java index 35c9890ad..cd229408a 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequestOrBuilder.java index ef78b5f18..2ced70f58 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java index 2e5055f8f..9115725e6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java index a08dd9b60..dbfb593cd 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java index 25c3a1a3b..3d1c56e1b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java index ea6d9e676..b885e1a67 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java index 7ba092987..253de8c7c 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java index 299ae168a..31f0d3352 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java index 1a38cee4a..e4060d466 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java index 0d6c06ffd..beffcb49b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequest.java index 63349af79..28daba5db 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequestOrBuilder.java index 7bb6adb91..756a7b66d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java index aa24f9023..93cb283cc 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java index b3a0caed8..7e19e9b27 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java index db649b769..4e11c5aa6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java index d2e673189..f59ac029c 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java index a0c72611a..cd6505b85 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequestOrBuilder.java index 7cfe5c172..4d6cce1b7 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java index 93ad4be2f..42cd50542 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequestOrBuilder.java index 623393c07..4f7f85098 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java index 2af8b0e34..a265b3b3e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java index 77d5a5e42..ef8233acc 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java index 90933e90e..e0a0127d6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequestOrBuilder.java index aec53ee86..43ce6ea62 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java index 2e6fa4c24..dc86acfae 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java index 5ec2823c4..0421790cc 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java index 192f61546..e146662c8 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto @@ -164,7 +179,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public java.lang.String getSession() { java.lang.Object ref = session_; @@ -192,7 +207,7 @@ public java.lang.String getSession() { * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; @@ -799,7 +814,7 @@ public Builder mergeFrom( * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public java.lang.String getSession() { java.lang.Object ref = session_; @@ -827,7 +842,7 @@ public java.lang.String getSession() { * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; @@ -855,7 +870,7 @@ public com.google.protobuf.ByteString getSessionBytes() { * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public Builder setSession(java.lang.String value) { if (value == null) { @@ -881,7 +896,7 @@ public Builder setSession(java.lang.String value) { * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public Builder clearSession() { @@ -904,7 +919,7 @@ public Builder clearSession() { * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ public Builder setSessionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java index 8bc03b400..e3907e2e6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto @@ -23,7 +38,7 @@ public interface DetectIntentRequestOrBuilder * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ java.lang.String getSession(); /** @@ -41,7 +56,7 @@ public interface DetectIntentRequestOrBuilder * `User ID` must not exceed 36 characters. * * - * string session = 1; + * string session = 1 [(.google.api.resource_reference) = { ... } */ com.google.protobuf.ByteString getSessionBytes(); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java index 24f37852e..271e246e9 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java index d6d1629dc..633a85fca 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java index b0c410fb1..d4182d4e3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java index cd621cb21..c6dce8535 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java index 4eb08cfc3..1849454c6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java index 1c80a74bb..acb35d644 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto @@ -59,84 +74,87 @@ 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\032\037google/protobuf/timestamp.p" - + "roto\032\027google/rpc/status.proto\032\027google/ap" - + "i/client.proto\"\257\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\022P\n\017knowledge_types\030\004 \003(\01627.google.clo" - + "ud.dialogflow.v2beta1.Document.Knowledge" - + "Type\022\025\n\013content_uri\030\005 \001(\tH\000\022\025\n\007content\030\006" - + " \001(\tB\002\030\001H\000\022\025\n\013raw_content\030\t \001(\014H\000\"K\n\rKno" - + "wledgeType\022\036\n\032KNOWLEDGE_TYPE_UNSPECIFIED" - + "\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002B\010\n\006source" - + "\"M\n\024ListDocumentsRequest\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\n\025ListDocumentsResponse\022<\n\tdocuments\030\001 " - + "\003(\0132).google.cloud.dialogflow.v2beta1.Do" - + "cument\022\027\n\017next_page_token\030\002 \001(\t\"\"\n\022GetDo" - + "cumentRequest\022\014\n\004name\030\001 \001(\t\"d\n\025CreateDoc" - + "umentRequest\022\016\n\006parent\030\001 \001(\t\022;\n\010document" - + "\030\002 \001(\0132).google.cloud.dialogflow.v2beta1" - + ".Document\"%\n\025DeleteDocumentRequest\022\014\n\004na" - + "me\030\001 \001(\t\"\205\001\n\025UpdateDocumentRequest\022;\n\010do" - + "cument\030\001 \001(\0132).google.cloud.dialogflow.v" - + "2beta1.Document\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"\262\001\n\032KnowledgeOp" - + "erationMetadata\022P\n\005state\030\001 \001(\0162A.google." - + "cloud.dialogflow.v2beta1.KnowledgeOperat" - + "ionMetadata.State\"B\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004D" - + "ONE\020\003\"%\n\025ReloadDocumentRequest\022\014\n\004name\030\001" - + " \001(\t2\201\r\n\tDocuments\022\201\002\n\rListDocuments\0225.g" - + "oogle.cloud.dialogflow.v2beta1.ListDocum" - + "entsRequest\0326.google.cloud.dialogflow.v2" - + "beta1.ListDocumentsResponse\"\200\001\202\323\344\223\002z\0227/v" + + "1\032\034google/api/annotations.proto\032)google/" + + "cloud/dialogflow/v2beta1/gcs.proto\032#goog" + + "le/longrunning/operations.proto\032\033google/" + + "protobuf/empty.proto\032 google/protobuf/fi" + + "eld_mask.proto\032\037google/protobuf/timestam" + + "p.proto\032\027google/rpc/status.proto\032\027google" + + "/api/client.proto\"\257\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\022P\n\017knowledge_types\030\004 \003(\01627.google." + + "cloud.dialogflow.v2beta1.Document.Knowle" + + "dgeType\022\025\n\013content_uri\030\005 \001(\tH\000\022\025\n\007conten" + + "t\030\006 \001(\tB\002\030\001H\000\022\025\n\013raw_content\030\t \001(\014H\000\"K\n\r" + + "KnowledgeType\022\036\n\032KNOWLEDGE_TYPE_UNSPECIF" + + "IED\020\000\022\007\n\003FAQ\020\001\022\021\n\rEXTRACTIVE_QA\020\002B\010\n\006sou" + + "rce\"M\n\024ListDocumentsRequest\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\n\025ListDocumentsResponse\022<\n\tdocuments" + + "\030\001 \003(\0132).google.cloud.dialogflow.v2beta1" + + ".Document\022\027\n\017next_page_token\030\002 \001(\t\"\"\n\022Ge" + + "tDocumentRequest\022\014\n\004name\030\001 \001(\t\"d\n\025Create" + + "DocumentRequest\022\016\n\006parent\030\001 \001(\t\022;\n\010docum" + + "ent\030\002 \001(\0132).google.cloud.dialogflow.v2be" + + "ta1.Document\"%\n\025DeleteDocumentRequest\022\014\n" + + "\004name\030\001 \001(\t\"\205\001\n\025UpdateDocumentRequest\022;\n" + + "\010document\030\001 \001(\0132).google.cloud.dialogflo" + + "w.v2beta1.Document\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"\262\001\n\032Knowledg" + + "eOperationMetadata\022P\n\005state\030\001 \001(\0162A.goog" + + "le.cloud.dialogflow.v2beta1.KnowledgeOpe" + + "rationMetadata.State\"B\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" + + "\n\004DONE\020\003\"q\n\025ReloadDocumentRequest\022\014\n\004nam" + + "e\030\001 \001(\t\022@\n\ngcs_source\030\003 \001(\0132*.google.clo" + + "ud.dialogflow.v2beta1.GcsSourceH\000B\010\n\006sou" + + "rce2\201\r\n\tDocuments\022\201\002\n\rListDocuments\0225.go" + + "ogle.cloud.dialogflow.v2beta1.ListDocume" + + "ntsRequest\0326.google.cloud.dialogflow.v2b" + + "eta1.ListDocumentsResponse\"\200\001\202\323\344\223\002z\0227/v2" + + "beta1/{parent=projects/*/knowledgeBases/" + + "*}/documentsZ?\022=/v2beta1/{parent=project" + + "s/*/agent/knowledgeBases/*}/documents\022\360\001" + + "\n\013GetDocument\0223.google.cloud.dialogflow." + + "v2beta1.GetDocumentRequest\032).google.clou" + + "d.dialogflow.v2beta1.Document\"\200\001\202\323\344\223\002z\0227" + + "/v2beta1/{name=projects/*/knowledgeBases" + + "/*/documents/*}Z?\022=/v2beta1/{name=projec" + + "ts/*/agent/knowledgeBases/*/documents/*}" + + "\022\377\001\n\016CreateDocument\0226.google.cloud.dialo" + + "gflow.v2beta1.CreateDocumentRequest\032\035.go" + + "ogle.longrunning.Operation\"\225\001\202\323\344\223\002\216\001\"7/v" + "2beta1/{parent=projects/*/knowledgeBases" - + "/*}/documentsZ?\022=/v2beta1/{parent=projec" - + "ts/*/agent/knowledgeBases/*}/documents\022\360" - + "\001\n\013GetDocument\0223.google.cloud.dialogflow" - + ".v2beta1.GetDocumentRequest\032).google.clo" - + "ud.dialogflow.v2beta1.Document\"\200\001\202\323\344\223\002z\022" - + "7/v2beta1/{name=projects/*/knowledgeBase" - + "s/*/documents/*}Z?\022=/v2beta1/{name=proje" + + "/*}/documents:\010documentZI\"=/v2beta1/{par" + + "ent=projects/*/agent/knowledgeBases/*}/d" + + "ocuments:\010document\022\352\001\n\016DeleteDocument\0226." + + "google.cloud.dialogflow.v2beta1.DeleteDo" + + "cumentRequest\032\035.google.longrunning.Opera" + + "tion\"\200\001\202\323\344\223\002z*7/v2beta1/{name=projects/*" + + "/knowledgeBases/*/documents/*}Z?*=/v2bet" + + "a1/{name=projects/*/agent/knowledgeBases" + + "/*/documents/*}\022\221\002\n\016UpdateDocument\0226.goo" + + "gle.cloud.dialogflow.v2beta1.UpdateDocum" + + "entRequest\032\035.google.longrunning.Operatio" + + "n\"\247\001\202\323\344\223\002\240\0012@/v2beta1/{document.name=pro" + + "jects/*/knowledgeBases/*/documents/*}:\010d" + + "ocumentZR2F/v2beta1/{document.name=proje" + "cts/*/agent/knowledgeBases/*/documents/*" - + "}\022\377\001\n\016CreateDocument\0226.google.cloud.dial" - + "ogflow.v2beta1.CreateDocumentRequest\032\035.g" - + "oogle.longrunning.Operation\"\225\001\202\323\344\223\002\216\001\"7/" - + "v2beta1/{parent=projects/*/knowledgeBase" - + "s/*}/documents:\010documentZI\"=/v2beta1/{pa" - + "rent=projects/*/agent/knowledgeBases/*}/" - + "documents:\010document\022\352\001\n\016DeleteDocument\0226" - + ".google.cloud.dialogflow.v2beta1.DeleteD" - + "ocumentRequest\032\035.google.longrunning.Oper" - + "ation\"\200\001\202\323\344\223\002z*7/v2beta1/{name=projects/" - + "*/knowledgeBases/*/documents/*}Z?*=/v2be" - + "ta1/{name=projects/*/agent/knowledgeBase" - + "s/*/documents/*}\022\221\002\n\016UpdateDocument\0226.go" - + "ogle.cloud.dialogflow.v2beta1.UpdateDocu" - + "mentRequest\032\035.google.longrunning.Operati" - + "on\"\247\001\202\323\344\223\002\240\0012@/v2beta1/{document.name=pr" - + "ojects/*/knowledgeBases/*/documents/*}:\010" - + "documentZR2F/v2beta1/{document.name=proj" - + "ects/*/agent/knowledgeBases/*/documents/" - + "*}:\010document\022\377\001\n\016ReloadDocument\0226.google" - + ".cloud.dialogflow.v2beta1.ReloadDocument" - + "Request\032\035.google.longrunning.Operation\"\225" - + "\001\202\323\344\223\002\216\001\">/v2beta1/{name=projects/*/know" - + "ledgeBases/*/documents/*}:reload:\001*ZI\"D/" - + "v2beta1/{name=projects/*/agent/knowledge" - + "Bases/*/documents/*}:reload:\001*\032x\312A\031dialo" - + "gflow.googleapis.com\322AYhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/dialogflowB\253\001\n#com" - + ".google.cloud.dialogflow.v2beta1B\rDocume" - + "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" + + "}:\010document\022\377\001\n\016ReloadDocument\0226.google." + + "cloud.dialogflow.v2beta1.ReloadDocumentR" + + "equest\032\035.google.longrunning.Operation\"\225\001" + + "\202\323\344\223\002\216\001\">/v2beta1/{name=projects/*/knowl" + + "edgeBases/*/documents/*}:reload:\001*ZI\"D/v" + + "2beta1/{name=projects/*/agent/knowledgeB" + + "ases/*/documents/*}:reload:\001*\032x\312A\031dialog" + + "flow.googleapis.com\322AYhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/dialogflowB\253\001\n#com." + + "google.cloud.dialogflow.v2beta1B\rDocumen" + + "tProtoP\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() { @@ -150,6 +168,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.GcsProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -235,7 +254,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ReloadDocumentRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "GcsSource", "Source", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -245,6 +264,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.GcsProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java index 53d964764..eb414aa01 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto @@ -98,6 +113,11 @@ private EntityType( extensionRegistry)); break; } + case 56: + { + enableFuzzyExtraction_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -178,6 +198,17 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum { * KIND_LIST = 2; */ KIND_LIST(2), + /** + * + * + *
+     * Regexp entity types allow to specify regular expressions in entries
+     * values.
+     * 
+ * + * KIND_REGEXP = 3; + */ + KIND_REGEXP(3), UNRECOGNIZED(-1), ; @@ -214,6 +245,17 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum { * KIND_LIST = 2; */ public static final int KIND_LIST_VALUE = 2; + /** + * + * + *
+     * Regexp entity types allow to specify regular expressions in entries
+     * values.
+     * 
+ * + * KIND_REGEXP = 3; + */ + public static final int KIND_REGEXP_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -237,6 +279,8 @@ public static Kind forNumber(int value) { return KIND_MAP; case 2: return KIND_LIST; + case 3: + return KIND_REGEXP; default: return null; } @@ -1688,6 +1732,21 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitie return entities_.get(index); } + public static final int ENABLE_FUZZY_EXTRACTION_FIELD_NUMBER = 7; + private boolean enableFuzzyExtraction_; + /** + * + * + *
+   * Optional. Enables fuzzy entity extraction during classification.
+   * 
+ * + * bool enable_fuzzy_extraction = 7; + */ + public boolean getEnableFuzzyExtraction() { + return enableFuzzyExtraction_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1720,6 +1779,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < entities_.size(); i++) { output.writeMessage(6, entities_.get(i)); } + if (enableFuzzyExtraction_ != false) { + output.writeBool(7, enableFuzzyExtraction_); + } unknownFields.writeTo(output); } @@ -1747,6 +1809,9 @@ public int getSerializedSize() { for (int i = 0; i < entities_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, entities_.get(i)); } + if (enableFuzzyExtraction_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableFuzzyExtraction_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1768,6 +1833,7 @@ public boolean equals(final java.lang.Object obj) { if (kind_ != other.kind_) return false; if (autoExpansionMode_ != other.autoExpansionMode_) return false; if (!getEntitiesList().equals(other.getEntitiesList())) return false; + if (getEnableFuzzyExtraction() != other.getEnableFuzzyExtraction()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1791,6 +1857,8 @@ public int hashCode() { hash = (37 * hash) + ENTITIES_FIELD_NUMBER; hash = (53 * hash) + getEntitiesList().hashCode(); } + hash = (37 * hash) + ENABLE_FUZZY_EXTRACTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFuzzyExtraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1954,6 +2022,8 @@ public Builder clear() { } else { entitiesBuilder_.clear(); } + enableFuzzyExtraction_ = false; + return this; } @@ -1996,6 +2066,7 @@ public com.google.cloud.dialogflow.v2beta1.EntityType buildPartial() { } else { result.entities_ = entitiesBuilder_.build(); } + result.enableFuzzyExtraction_ = enableFuzzyExtraction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2087,6 +2158,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.EntityType other) { } } } + if (other.getEnableFuzzyExtraction() != false) { + setEnableFuzzyExtraction(other.getEnableFuzzyExtraction()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2848,6 +2922,50 @@ public com.google.cloud.dialogflow.v2beta1.EntityType.Entity.Builder addEntities return entitiesBuilder_; } + private boolean enableFuzzyExtraction_; + /** + * + * + *
+     * Optional. Enables fuzzy entity extraction during classification.
+     * 
+ * + * bool enable_fuzzy_extraction = 7; + */ + public boolean getEnableFuzzyExtraction() { + return enableFuzzyExtraction_; + } + /** + * + * + *
+     * Optional. Enables fuzzy entity extraction during classification.
+     * 
+ * + * bool enable_fuzzy_extraction = 7; + */ + public Builder setEnableFuzzyExtraction(boolean value) { + + enableFuzzyExtraction_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Enables fuzzy entity extraction during classification.
+     * 
+ * + * bool enable_fuzzy_extraction = 7; + */ + public Builder clearEnableFuzzyExtraction() { + + enableFuzzyExtraction_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatch.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatch.java index 46ec0f08f..4d5b49ac4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatch.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatch.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatchOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatchOrBuilder.java index 31a90a4ed..62e96be93 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatchOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatchOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java index b93253eb5..52d75575f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java index ff05b49d3..e3d528e28 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto @@ -153,4 +168,15 @@ public interface EntityTypeOrBuilder * repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6; */ com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Enables fuzzy entity extraction during classification.
+   * 
+ * + * bool enable_fuzzy_extraction = 7; + */ + boolean getEnableFuzzyExtraction(); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java index 71e7f2a35..9fe7b05a5 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto @@ -83,21 +98,23 @@ 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\032\027google/api/client.proto\"\323\003\n\nEntity" - + "Type\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.dialogflow" - + ".v2beta1.EntityType.Kind\022Z\n\023auto_expansi" - + "on_mode\030\004 \001(\0162=.google.cloud.dialogflow." - + "v2beta1.EntityType.AutoExpansionMode\022D\n\010" - + "entities\030\006 \003(\01322.google.cloud.dialogflow" - + ".v2beta1.EntityType.Entity\032)\n\006Entity\022\r\n\005" - + "value\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\tKIN" - + "D_LIST\020\002\"Y\n\021AutoExpansionMode\022#\n\037AUTO_EX" + + "eta1\032\034google/api/annotations.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032#google/longrunning/opera" + + "tions.proto\032\033google/protobuf/empty.proto" + + "\032 google/protobuf/field_mask.proto\032\027goog" + + "le/api/client.proto\"\205\004\n\nEntityType\022\014\n\004na" + + "me\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022>\n\004kind\030\003" + + " \001(\01620.google.cloud.dialogflow.v2beta1.E" + + "ntityType.Kind\022Z\n\023auto_expansion_mode\030\004 " + + "\001(\0162=.google.cloud.dialogflow.v2beta1.En" + + "tityType.AutoExpansionMode\022D\n\010entities\030\006" + + " \003(\01322.google.cloud.dialogflow.v2beta1.E" + + "ntityType.Entity\022\037\n\027enable_fuzzy_extract" + + "ion\030\007 \001(\010\032)\n\006Entity\022\r\n\005value\030\001 \001(\t\022\020\n\010sy" + + "nonyms\030\002 \003(\t\"J\n\004Kind\022\024\n\020KIND_UNSPECIFIED" + + "\020\000\022\014\n\010KIND_MAP\020\001\022\r\n\tKIND_LIST\020\002\022\017\n\013KIND_" + + "REGEXP\020\003\"Y\n\021AutoExpansionMode\022#\n\037AUTO_EX" + "PANSION_MODE_UNSPECIFIED\020\000\022\037\n\033AUTO_EXPAN" + "SION_MODE_DEFAULT\020\001\"f\n\026ListEntityTypesRe" + "quest\022\016\n\006parent\030\001 \001(\t\022\025\n\rlanguage_code\030\002" @@ -227,10 +244,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), }, assigner); @@ -240,7 +258,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_EntityType_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Kind", "AutoExpansionMode", "Entities", + "Name", + "DisplayName", + "Kind", + "AutoExpansionMode", + "Entities", + "EnableFuzzyExtraction", }); internal_static_google_cloud_dialogflow_v2beta1_EntityType_Entity_descriptor = internal_static_google_cloud_dialogflow_v2beta1_EntityType_descriptor @@ -369,10 +392,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentContextName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentContextName.java index 26df2fbcf..719059bd1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentContextName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentContextName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java index acc92c431..80e85bdd4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java index f9949be36..1b517f772 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java index f5658dda9..6706f85ab 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java index c78cc078f..f3e2050ea 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java index be0e7b0cd..70d358808 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java index 3e1d4a9c5..93098ae7e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java index 83c7c5c05..b97ee0ef4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -194,19 +209,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * The exported agent.
-   * Example for how to export an agent to a zip file via a command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:export'\
-   *   -X POST \
-   *   -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 > &lt;agent zip file&gt;</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; @@ -713,19 +716,7 @@ 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:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:export'\
-     *   -X POST \
-     *   -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 > &lt;agent zip file&gt;</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; @@ -740,19 +731,7 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * The exported agent.
-     * Example for how to export an agent to a zip file via a command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:export'\
-     *   -X POST \
-     *   -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 > &lt;agent zip file&gt;</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; @@ -770,19 +749,7 @@ 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:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:export'\
-     *   -X POST \
-     *   -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 > &lt;agent zip file&gt;</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java index 5211a58cc..4c71e1eef 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -35,19 +50,7 @@ public interface ExportAgentResponseOrBuilder * * *
-   * The exported agent.
-   * Example for how to export an agent to a zip file via a command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:export'\
-   *   -X POST \
-   *   -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 > &lt;agent zip file&gt;</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsProto.java new file mode 100644 index 000000000..cc8418bd6 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsProto.java @@ -0,0 +1,78 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/gcs.proto + +package com.google.cloud.dialogflow.v2beta1; + +public final class GcsProto { + private GcsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_GcsSource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/dialogflow/v2beta1/gcs.pr" + + "oto\022\037google.cloud.dialogflow.v2beta1\032\034go" + + "ogle/api/annotations.proto\"\030\n\tGcsSource\022" + + "\013\n\003uri\030\001 \001(\tB\246\001\n#com.google.cloud.dialog" + + "flow.v2beta1B\010GcsProtoP\001ZIgoogle.golang." + + "org/genproto/googleapis/cloud/dialogflow" + + "/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Clo" + + "ud.Dialogflow.V2beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_dialogflow_v2beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSource.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSource.java new file mode 100644 index 000000000..9ca8a89eb --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSource.java @@ -0,0 +1,632 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/gcs.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Google Cloud Storage location for single input.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GcsSource} + */ +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GcsSource) + GcsSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsSource.newBuilder() to construct. + private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsSource() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcsSource( + 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(); + + uri_ = 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.GcsProto + .internal_static_google_cloud_dialogflow_v2beta1_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GcsProto + .internal_static_google_cloud_dialogflow_v2beta1_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GcsSource.class, + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+   * form:
+   *   gs://bucket/object-prefix-or-name
+   * Whether a prefix or name is used depends on the use case.
+   * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+   * form:
+   *   gs://bucket/object-prefix-or-name
+   * Whether a prefix or name is used depends on the use case.
+   * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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 (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + 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.GcsSource)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GcsSource other = + (com.google.cloud.dialogflow.v2beta1.GcsSource) obj; + + if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource 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.GcsSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource 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.GcsSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource 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.GcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource 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.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource 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.GcsSource 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.GcsSource 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.GcsSource 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; + } + /** + * + * + *
+   * Google Cloud Storage location for single input.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GcsSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GcsSource) + com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.GcsProto + .internal_static_google_cloud_dialogflow_v2beta1_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.GcsProto + .internal_static_google_cloud_dialogflow_v2beta1_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GcsSource.class, + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.GcsSource.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(); + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.GcsProto + .internal_static_google_cloud_dialogflow_v2beta1_GcsSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GcsSource getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GcsSource build() { + com.google.cloud.dialogflow.v2beta1.GcsSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GcsSource buildPartial() { + com.google.cloud.dialogflow.v2beta1.GcsSource result = + new com.google.cloud.dialogflow.v2beta1.GcsSource(this); + result.uri_ = uri_; + 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.GcsSource) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GcsSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GcsSource other) { + if (other == com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + 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.GcsSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.v2beta1.GcsSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+     * form:
+     *   gs://bucket/object-prefix-or-name
+     * Whether a prefix or name is used depends on the use case.
+     * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+     * form:
+     *   gs://bucket/object-prefix-or-name
+     * Whether a prefix or name is used depends on the use case.
+     * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+     * form:
+     *   gs://bucket/object-prefix-or-name
+     * Whether a prefix or name is used depends on the use case.
+     * 
+ * + * string uri = 1; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+     * form:
+     *   gs://bucket/object-prefix-or-name
+     * Whether a prefix or name is used depends on the use case.
+     * 
+ * + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+     * form:
+     *   gs://bucket/object-prefix-or-name
+     * Whether a prefix or name is used depends on the use case.
+     * 
+ * + * string uri = 1; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = 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.GcsSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GcsSource) + private static final com.google.cloud.dialogflow.v2beta1.GcsSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GcsSource(); + } + + public static com.google.cloud.dialogflow.v2beta1.GcsSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(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.GcsSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSourceOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSourceOrBuilder.java new file mode 100644 index 000000000..16f1c7670 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSourceOrBuilder.java @@ -0,0 +1,52 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/gcs.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface GcsSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GcsSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+   * form:
+   *   gs://bucket/object-prefix-or-name
+   * Whether a prefix or name is used depends on the use case.
+   * 
+ * + * string uri = 1; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Required. The Google Cloud Storage URIs for the inputs. A URI is of the
+   * form:
+   *   gs://bucket/object-prefix-or-name
+   * Whether a prefix or name is used depends on the use case.
+   * 
+ * + * string uri = 1; + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java index 9a4eb390e..6e844c0e2 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequestOrBuilder.java index 0da49c93a..0ae46e8d4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java index 7f6f32094..20e52ce91 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java index a045aa062..fbc1ee46d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java index f9dd1c7f9..8405bc3a1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequestOrBuilder.java index 1beaebb46..3ab34f597 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java index ff5274efe..56a1ef3d4 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java index 230b778e0..b93227031 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java index c75567f69..28acb3590 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java index aa08bad56..27c80fdb9 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java index 2e5c8426e..8ae9d9152 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequestOrBuilder.java index 9eef24a86..66c0f96a3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java index afd1d2421..7d70e6d92 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java index 36172027f..809fe7c47 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequest.java new file mode 100644 index 000000000..40d7da30c --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequest.java @@ -0,0 +1,816 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/agent.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2beta1.Agents.GetValidationResult].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetValidationResultRequest} + */ +public final class GetValidationResultRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.GetValidationResultRequest) + GetValidationResultRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetValidationResultRequest.newBuilder() to construct. + private GetValidationResultRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetValidationResultRequest() { + parent_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetValidationResultRequest( + 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(); + + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = 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.AgentProto + .internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentProto + .internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.class, + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The project that the agent is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The project that the agent is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional. The language for which you want a validation result. If not
+   * specified, the agent's default language is used. [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+   * are supported. Note: languages must be enabled in the agent before they can
+   * be used.
+   * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The language for which you want a validation result. If not
+   * specified, the agent's default language is used. [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+   * are supported. Note: languages must be enabled in the agent before they can
+   * be used.
+   * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + 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.GetValidationResultRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest other = + (com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest 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.GetValidationResultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest 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.GetValidationResultRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest 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.GetValidationResultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest 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.GetValidationResultRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest 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.GetValidationResultRequest 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.GetValidationResultRequest 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.GetValidationResultRequest 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 request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2beta1.Agents.GetValidationResult].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.GetValidationResultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.GetValidationResultRequest) + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.AgentProto + .internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.AgentProto + .internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.class, + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.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(); + parent_ = ""; + + languageCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.AgentProto + .internal_static_google_cloud_dialogflow_v2beta1_GetValidationResultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest build() { + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest buildPartial() { + com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest result = + new com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest(this); + result.parent_ = parent_; + result.languageCode_ = languageCode_; + 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.GetValidationResultRequest) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest other) { + if (other + == com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + 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.GetValidationResultRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The project that the agent is associated with.
+     * Format: `projects/<Project ID>`.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The project that the agent is associated with.
+     * Format: `projects/<Project ID>`.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The project that the agent is associated with.
+     * Format: `projects/<Project ID>`.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project that the agent is associated with.
+     * Format: `projects/<Project ID>`.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project that the agent is associated with.
+     * Format: `projects/<Project ID>`.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional. The language for which you want a validation result. If not
+     * specified, the agent's default language is used. [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+     * are supported. Note: languages must be enabled in the agent before they can
+     * be used.
+     * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The language for which you want a validation result. If not
+     * specified, the agent's default language is used. [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+     * are supported. Note: languages must be enabled in the agent before they can
+     * be used.
+     * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The language for which you want a validation result. If not
+     * specified, the agent's default language is used. [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+     * are supported. Note: languages must be enabled in the agent before they can
+     * be used.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The language for which you want a validation result. If not
+     * specified, the agent's default language is used. [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+     * are supported. Note: languages must be enabled in the agent before they can
+     * be used.
+     * 
+ * + * string language_code = 3; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The language for which you want a validation result. If not
+     * specified, the agent's default language is used. [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+     * are supported. Note: languages must be enabled in the agent before they can
+     * be used.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = 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.GetValidationResultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GetValidationResultRequest) + private static final com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest(); + } + + public static com.google.cloud.dialogflow.v2beta1.GetValidationResultRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetValidationResultRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetValidationResultRequest(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.GetValidationResultRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequestOrBuilder.java new file mode 100644 index 000000000..36f49728e --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/agent.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface GetValidationResultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.GetValidationResultRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project that the agent is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project that the agent is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The language for which you want a validation result. If not
+   * specified, the agent's default language is used. [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+   * are supported. Note: languages must be enabled in the agent before they can
+   * be used.
+   * 
+ * + * string language_code = 3; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional. The language for which you want a validation result. If not
+   * specified, the agent's default language is used. [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language)
+   * are supported. Note: languages must be enabled in the agent before they can
+   * be used.
+   * 
+ * + * string language_code = 3; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java index 353aba951..f6178318b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -248,19 +263,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * The agent to import.
-   * Example for how to import an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:import\
-   *    -X POST \
-   *    -H 'Authorization: Bearer '$(gcloud auth application-default
-   *    print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --compressed \
-   *    --data-binary "{
-   *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; @@ -882,19 +885,7 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { * * *
-     * The agent to import.
-     * Example for how to import an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:import\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -909,19 +900,7 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * The agent to import.
-     * Example for how to import an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:import\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -939,19 +918,7 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) { * * *
-     * The agent to import.
-     * Example for how to import an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:import\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java index bdbc0700f..f1619f188 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -58,19 +73,7 @@ public interface ImportAgentRequestOrBuilder * * *
-   * The agent to import.
-   * Example for how to import an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:import\
-   *    -X POST \
-   *    -H 'Authorization: Bearer '$(gcloud auth application-default
-   *    print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --compressed \
-   *    --data-binary "{
-   *       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java index 94dae8d85..d4f8ff803 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java index a900b24e3..b753e0fc0 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java index 0d3965365..b159c8588 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto @@ -6122,6 +6137,107 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCardOrBuilder getRbmCarouselRichCardOrBuilder(); + /** + * + * + *
+     * Browse carousel card for Actions on Google.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + boolean hasBrowseCarouselCard(); + /** + * + * + *
+     * Browse carousel card for Actions on Google.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard getBrowseCarouselCard(); + /** + * + * + *
+     * Browse carousel card for Actions on Google.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder + getBrowseCarouselCardOrBuilder(); + + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + boolean hasTableCard(); + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard getTableCard(); + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder getTableCardOrBuilder(); + + /** + * + * + *
+     * The media content card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + */ + boolean hasMediaContent(); + /** + * + * + *
+     * The media content card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent getMediaContent(); + /** + * + * + *
+     * The media content card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder + getMediaContentOrBuilder(); + /** * * @@ -6567,6 +6683,72 @@ private Message( messageCase_ = 20; break; } + case 178: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder + subBuilder = null; + if (messageCase_ == 22) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + message_) + .toBuilder(); + } + message_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 22; + break; + } + case 186: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder subBuilder = + null; + if (messageCase_ == 23) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_) + .toBuilder(); + } + message_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 23; + break; + } + case 194: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder subBuilder = + null; + if (messageCase_ == 24) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_) + .toBuilder(); + } + message_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 24; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -42500,280 +42682,13736 @@ public com.google.protobuf.Parser getParserForType() { } } - private int messageCase_ = 0; - private java.lang.Object message_; - - public enum MessageCase implements com.google.protobuf.Internal.EnumLite { - TEXT(1), - IMAGE(2), - QUICK_REPLIES(3), - CARD(4), - PAYLOAD(5), - SIMPLE_RESPONSES(7), - BASIC_CARD(8), - SUGGESTIONS(9), - LINK_OUT_SUGGESTION(10), - LIST_SELECT(11), - CAROUSEL_SELECT(12), - TELEPHONY_PLAY_AUDIO(13), - TELEPHONY_SYNTHESIZE_SPEECH(14), - TELEPHONY_TRANSFER_CALL(15), - RBM_TEXT(18), - RBM_STANDALONE_RICH_CARD(19), - RBM_CAROUSEL_RICH_CARD(20), - MESSAGE_NOT_SET(0); - private final int value; - - private MessageCase(int value) { - this.value = value; - } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static MessageCase valueOf(int value) { - return forNumber(value); - } - - public static MessageCase forNumber(int value) { - switch (value) { - case 1: - return TEXT; - case 2: - return IMAGE; - case 3: - return QUICK_REPLIES; - case 4: - return CARD; - case 5: - return PAYLOAD; - case 7: - return SIMPLE_RESPONSES; - case 8: - return BASIC_CARD; - case 9: - return SUGGESTIONS; - case 10: - return LINK_OUT_SUGGESTION; - case 11: - return LIST_SELECT; - case 12: - return CAROUSEL_SELECT; - case 13: - return TELEPHONY_PLAY_AUDIO; - case 14: - return TELEPHONY_SYNTHESIZE_SPEECH; - case 15: - return TELEPHONY_TRANSFER_CALL; - case 18: - return RBM_TEXT; - case 19: - return RBM_STANDALONE_RICH_CARD; - case 20: - return RBM_CAROUSEL_RICH_CARD; - case 0: - return MESSAGE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; + public interface MediaContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) + com.google.protobuf.MessageOrBuilder { - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); - } + /** + * + * + *
+       * Optional. What type of media is the content (ie "audio").
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + int getMediaTypeValue(); + /** + * + * + *
+       * Optional. What type of media is the content (ie "audio").
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + getMediaType(); - public static final int TEXT_FIELD_NUMBER = 1; - /** - * - * - *
-     * Returns a text response.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1; - */ - public boolean hasText() { - return messageCase_ == 1; - } - /** - * - * - *
-     * Returns a text response.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject> + getMediaObjectsList(); + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + getMediaObjects(int index); + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + int getMediaObjectsCount(); + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder> + getMediaObjectsOrBuilderList(); + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObjectOrBuilder + getMediaObjectsOrBuilder(int index); } /** * * *
-     * Returns a text response.
+     * The media content card for Actions on Google.
      * 
* - * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1; + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent} */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + public static final class MediaContent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) + MediaContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use MediaContent.newBuilder() to construct. + private MediaContent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); - } - public static final int IMAGE_FIELD_NUMBER = 2; - /** - * - * - *
-     * Displays an image.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2; - */ - public boolean hasImage() { - return messageCase_ == 2; - } - /** - * - * - *
-     * Displays an image.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { - if (messageCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; - } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); - } - /** - * - * - *
-     * Displays an image.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { - if (messageCase_ == 2) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + private MediaContent() { + mediaType_ = 0; + mediaObjects_ = java.util.Collections.emptyList(); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); - } - public static final int QUICK_REPLIES_FIELD_NUMBER = 3; - /** - * - * - *
-     * Displays quick replies.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3; - */ - public boolean hasQuickReplies() { - return messageCase_ == 3; - } - /** - * - * - *
-     * Displays quick replies.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() { - if (messageCase_ == 3) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); - } - /** - * - * - *
-     * Displays quick replies.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder - getQuickRepliesOrBuilder() { - if (messageCase_ == 3) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + + private MediaContent( + 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(); + + mediaType_ = rawValue; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + mediaObjects_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject>(); + mutable_bitField0_ |= 0x00000002; + } + mediaObjects_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.parser(), + extensionRegistry)); + 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_ & 0x00000002) != 0)) { + mediaObjects_ = java.util.Collections.unmodifiableList(mediaObjects_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); - } - public static final int CARD_FIELD_NUMBER = 4; - /** - * - * - *
-     * Displays a card.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4; - */ - public boolean hasCard() { - return messageCase_ == 4; - } - /** - * - * - *
-     * Displays a card.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() { - if (messageCase_ == 4) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor; } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); - } - /** - * - * - *
-     * Displays a card.
-     * 
- * - * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4; - */ - public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() { - if (messageCase_ == 4) { - return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder.class); } - return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); - } - public static final int PAYLOAD_FIELD_NUMBER = 5; - /** - * - * - *
-     * Returns a response containing a custom, platform-specific payload.
-     * See the Intent.Message.Platform type for a description of the
-     * structure that may be required for your platform.
-     * 
- * - * .google.protobuf.Struct payload = 5; - */ + /** + * + * + *
+       * Format of response media type.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType} + */ + public enum ResponseMediaType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified.
+         * 
+ * + * RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0; + */ + RESPONSE_MEDIA_TYPE_UNSPECIFIED(0), + /** + * + * + *
+         * Response media type is audio.
+         * 
+ * + * AUDIO = 1; + */ + AUDIO(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Unspecified.
+         * 
+ * + * RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0; + */ + public static final int RESPONSE_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * Response media type is audio.
+         * 
+ * + * AUDIO = 1; + */ + public static final int AUDIO_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ResponseMediaType valueOf(int value) { + return forNumber(value); + } + + public static ResponseMediaType forNumber(int value) { + switch (value) { + case 0: + return RESPONSE_MEDIA_TYPE_UNSPECIFIED; + case 1: + return AUDIO; + 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 ResponseMediaType findValueByNumber(int number) { + return ResponseMediaType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ResponseMediaType[] VALUES = values(); + + public static ResponseMediaType 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 ResponseMediaType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType) + } + + public interface ResponseMediaObjectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Required. Name of media card.
+         * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+         * Required. Name of media card.
+         * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+         * Optional. Description of media card.
+         * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + * + * + *
+         * Optional. Description of media card.
+         * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+         * Optional. Image to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + boolean hasLargeImage(); + /** + * + * + *
+         * Optional. Image to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getLargeImage(); + /** + * + * + *
+         * Optional. Image to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getLargeImageOrBuilder(); + + /** + * + * + *
+         * Optional. Icon to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + boolean hasIcon(); + /** + * + * + *
+         * Optional. Icon to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getIcon(); + /** + * + * + *
+         * Optional. Icon to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getIconOrBuilder(); + + /** + * + * + *
+         * Required. Url where the media is stored.
+         * 
+ * + * string content_url = 5; + */ + java.lang.String getContentUrl(); + /** + * + * + *
+         * Required. Url where the media is stored.
+         * 
+ * + * string content_url = 5; + */ + com.google.protobuf.ByteString getContentUrlBytes(); + + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .ImageCase + getImageCase(); + } + /** + * + * + *
+       * Response media object for media content card.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject} + */ + public static final class ResponseMediaObject extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject) + ResponseMediaObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResponseMediaObject.newBuilder() to construct. + private ResponseMediaObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResponseMediaObject() { + name_ = ""; + description_ = ""; + contentUrl_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResponseMediaObject( + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder subBuilder = + null; + if (imageCase_ == 3) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_) + .toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_); + image_ = subBuilder.buildPartial(); + } + imageCase_ = 3; + break; + } + case 34: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder subBuilder = + null; + if (imageCase_ == 4) { + subBuilder = + ((com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_) + .toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_); + image_ = subBuilder.buildPartial(); + } + imageCase_ = 4; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + contentUrl_ = 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.Builder.class); + } + + private int imageCase_ = 0; + private java.lang.Object image_; + + public enum ImageCase implements com.google.protobuf.Internal.EnumLite { + LARGE_IMAGE(3), + ICON(4), + IMAGE_NOT_SET(0); + private final int value; + + private ImageCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ImageCase valueOf(int value) { + return forNumber(value); + } + + public static ImageCase forNumber(int value) { + switch (value) { + case 3: + return LARGE_IMAGE; + case 4: + return ICON; + case 0: + return IMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+         * Required. Name of media card.
+         * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+         * Required. Name of media card.
+         * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+         * Optional. Description of media card.
+         * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+         * Optional. Description of media card.
+         * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LARGE_IMAGE_FIELD_NUMBER = 3; + /** + * + * + *
+         * Optional. Image to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public boolean hasLargeImage() { + return imageCase_ == 3; + } + /** + * + * + *
+         * Optional. Image to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getLargeImage() { + if (imageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + /** + * + * + *
+         * Optional. Image to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getLargeImageOrBuilder() { + if (imageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + + public static final int ICON_FIELD_NUMBER = 4; + /** + * + * + *
+         * Optional. Icon to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public boolean hasIcon() { + return imageCase_ == 4; + } + /** + * + * + *
+         * Optional. Icon to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getIcon() { + if (imageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + /** + * + * + *
+         * Optional. Icon to display above media content.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getIconOrBuilder() { + if (imageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + + public static final int CONTENT_URL_FIELD_NUMBER = 5; + private volatile java.lang.Object contentUrl_; + /** + * + * + *
+         * Required. Url where the media is stored.
+         * 
+ * + * string content_url = 5; + */ + public java.lang.String getContentUrl() { + java.lang.Object ref = contentUrl_; + 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(); + contentUrl_ = s; + return s; + } + } + /** + * + * + *
+         * Required. Url where the media is stored.
+         * 
+ * + * string content_url = 5; + */ + public com.google.protobuf.ByteString getContentUrlBytes() { + java.lang.Object ref = contentUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentUrl_ = 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_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (imageCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_); + } + if (imageCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_); + } + if (!getContentUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contentUrl_); + } + 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 (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (imageCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_); + } + if (imageCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_); + } + if (!getContentUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contentUrl_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getContentUrl().equals(other.getContentUrl())) return false; + if (!getImageCase().equals(other.getImageCase())) return false; + switch (imageCase_) { + case 3: + if (!getLargeImage().equals(other.getLargeImage())) return false; + break; + case 4: + if (!getIcon().equals(other.getIcon())) return false; + break; + case 0: + default: + } + 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + CONTENT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContentUrl().hashCode(); + switch (imageCase_) { + case 3: + hash = (37 * hash) + LARGE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getLargeImage().hashCode(); + break; + case 4: + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + getIcon().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + 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.Intent.Message.MediaContent.ResponseMediaObject + 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; + } + /** + * + * + *
+         * Response media object for media content card.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject) + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject.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_ = ""; + + description_ = ""; + + contentUrl_ = ""; + + imageCase_ = 0; + image_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject(this); + result.name_ = name_; + result.description_ = description_; + if (imageCase_ == 3) { + if (largeImageBuilder_ == null) { + result.image_ = image_; + } else { + result.image_ = largeImageBuilder_.build(); + } + } + if (imageCase_ == 4) { + if (iconBuilder_ == null) { + result.image_ = image_; + } else { + result.image_ = iconBuilder_.build(); + } + } + result.contentUrl_ = contentUrl_; + result.imageCase_ = imageCase_; + 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.Intent.Message.MediaContent + .ResponseMediaObject) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getContentUrl().isEmpty()) { + contentUrl_ = other.contentUrl_; + onChanged(); + } + switch (other.getImageCase()) { + case LARGE_IMAGE: + { + mergeLargeImage(other.getLargeImage()); + break; + } + case ICON: + { + mergeIcon(other.getIcon()); + break; + } + case IMAGE_NOT_SET: + { + break; + } + } + 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.Intent.Message.MediaContent.ResponseMediaObject + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int imageCase_ = 0; + private java.lang.Object image_; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public Builder clearImage() { + imageCase_ = 0; + image_ = null; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+           * Required. Name of media card.
+           * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Required. Name of media card.
+           * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Required. Name of media card.
+           * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * Required. Name of media card.
+           * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+           * Required. Name of media card.
+           * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+           * Optional. Description of media card.
+           * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Optional. Description of media card.
+           * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Optional. Description of media card.
+           * 
+ * + * string description = 2; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * Optional. Description of media card.
+           * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+           * Optional. Description of media card.
+           * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + largeImageBuilder_; + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public boolean hasLargeImage() { + return imageCase_ == 3; + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getLargeImage() { + if (largeImageBuilder_ == null) { + if (imageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } else { + if (imageCase_ == 3) { + return largeImageBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public Builder setLargeImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (largeImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + image_ = value; + onChanged(); + } else { + largeImageBuilder_.setMessage(value); + } + imageCase_ = 3; + return this; + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public Builder setLargeImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) { + if (largeImageBuilder_ == null) { + image_ = builderForValue.build(); + onChanged(); + } else { + largeImageBuilder_.setMessage(builderForValue.build()); + } + imageCase_ = 3; + return this; + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public Builder mergeLargeImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (largeImageBuilder_ == null) { + if (imageCase_ == 3 + && image_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image + .getDefaultInstance()) { + image_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_) + .mergeFrom(value) + .buildPartial(); + } else { + image_ = value; + } + onChanged(); + } else { + if (imageCase_ == 3) { + largeImageBuilder_.mergeFrom(value); + } + largeImageBuilder_.setMessage(value); + } + imageCase_ = 3; + return this; + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public Builder clearLargeImage() { + if (largeImageBuilder_ == null) { + if (imageCase_ == 3) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + } else { + if (imageCase_ == 3) { + imageCase_ = 0; + image_ = null; + } + largeImageBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder + getLargeImageBuilder() { + return getLargeImageFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getLargeImageOrBuilder() { + if ((imageCase_ == 3) && (largeImageBuilder_ != null)) { + return largeImageBuilder_.getMessageOrBuilder(); + } else { + if (imageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + } + /** + * + * + *
+           * Optional. Image to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + getLargeImageFieldBuilder() { + if (largeImageBuilder_ == null) { + if (!(imageCase_ == 3)) { + image_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + largeImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_, + getParentForChildren(), + isClean()); + image_ = null; + } + imageCase_ = 3; + onChanged(); + ; + return largeImageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + iconBuilder_; + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public boolean hasIcon() { + return imageCase_ == 4; + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getIcon() { + if (iconBuilder_ == null) { + if (imageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } else { + if (imageCase_ == 4) { + return iconBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public Builder setIcon(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (iconBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + image_ = value; + onChanged(); + } else { + iconBuilder_.setMessage(value); + } + imageCase_ = 4; + return this; + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public Builder setIcon( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) { + if (iconBuilder_ == null) { + image_ = builderForValue.build(); + onChanged(); + } else { + iconBuilder_.setMessage(builderForValue.build()); + } + imageCase_ = 4; + return this; + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public Builder mergeIcon(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (iconBuilder_ == null) { + if (imageCase_ == 4 + && image_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.Image + .getDefaultInstance()) { + image_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_) + .mergeFrom(value) + .buildPartial(); + } else { + image_ = value; + } + onChanged(); + } else { + if (imageCase_ == 4) { + iconBuilder_.mergeFrom(value); + } + iconBuilder_.setMessage(value); + } + imageCase_ = 4; + return this; + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public Builder clearIcon() { + if (iconBuilder_ == null) { + if (imageCase_ == 4) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + } else { + if (imageCase_ == 4) { + imageCase_ = 0; + image_ = null; + } + iconBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getIconBuilder() { + return getIconFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getIconOrBuilder() { + if ((imageCase_ == 4) && (iconBuilder_ != null)) { + return iconBuilder_.getMessageOrBuilder(); + } else { + if (imageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + } + /** + * + * + *
+           * Optional. Icon to display above media content.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + getIconFieldBuilder() { + if (iconBuilder_ == null) { + if (!(imageCase_ == 4)) { + image_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + iconBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) image_, + getParentForChildren(), + isClean()); + image_ = null; + } + imageCase_ = 4; + onChanged(); + ; + return iconBuilder_; + } + + private java.lang.Object contentUrl_ = ""; + /** + * + * + *
+           * Required. Url where the media is stored.
+           * 
+ * + * string content_url = 5; + */ + public java.lang.String getContentUrl() { + java.lang.Object ref = contentUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Required. Url where the media is stored.
+           * 
+ * + * string content_url = 5; + */ + public com.google.protobuf.ByteString getContentUrlBytes() { + java.lang.Object ref = contentUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Required. Url where the media is stored.
+           * 
+ * + * string content_url = 5; + */ + public Builder setContentUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contentUrl_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * Required. Url where the media is stored.
+           * 
+ * + * string content_url = 5; + */ + public Builder clearContentUrl() { + + contentUrl_ = getDefaultInstance().getContentUrl(); + onChanged(); + return this; + } + /** + * + * + *
+           * Required. Url where the media is stored.
+           * 
+ * + * string content_url = 5; + */ + public Builder setContentUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contentUrl_ = 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.Intent.Message.MediaContent.ResponseMediaObject) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseMediaObject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResponseMediaObject(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.Intent.Message.MediaContent.ResponseMediaObject + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MEDIA_TYPE_FIELD_NUMBER = 1; + private int mediaType_; + /** + * + * + *
+       * Optional. What type of media is the content (ie "audio").
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public int getMediaTypeValue() { + return mediaType_; + } + /** + * + * + *
+       * Optional. What type of media is the content (ie "audio").
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + getMediaType() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + .valueOf(mediaType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + .UNRECOGNIZED + : result; + } + + public static final int MEDIA_OBJECTS_FIELD_NUMBER = 2; + private java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject> + mediaObjects_; + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject> + getMediaObjectsList() { + return mediaObjects_; + } + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder> + getMediaObjectsOrBuilderList() { + return mediaObjects_; + } + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public int getMediaObjectsCount() { + return mediaObjects_.size(); + } + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + getMediaObjects(int index) { + return mediaObjects_.get(index); + } + /** + * + * + *
+       * Required. List of media objects.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder + getMediaObjectsOrBuilder(int index) { + return mediaObjects_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mediaType_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + .RESPONSE_MEDIA_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mediaType_); + } + for (int i = 0; i < mediaObjects_.size(); i++) { + output.writeMessage(2, mediaObjects_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mediaType_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + .RESPONSE_MEDIA_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mediaType_); + } + for (int i = 0; i < mediaObjects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mediaObjects_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) obj; + + if (mediaType_ != other.mediaType_) return false; + if (!getMediaObjectsList().equals(other.getMediaObjectsList())) 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) + MEDIA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + mediaType_; + if (getMediaObjectsCount() > 0) { + hash = (37 * hash) + MEDIA_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getMediaObjectsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent 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.Intent.Message.MediaContent 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 media content card for Actions on Google.
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMediaObjectsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + mediaType_ = 0; + + if (mediaObjectsBuilder_ == null) { + mediaObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + mediaObjectsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.mediaType_ = mediaType_; + if (mediaObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + mediaObjects_ = java.util.Collections.unmodifiableList(mediaObjects_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.mediaObjects_ = mediaObjects_; + } else { + result.mediaObjects_ = mediaObjectsBuilder_.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.v2beta1.Intent.Message.MediaContent) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance()) return this; + if (other.mediaType_ != 0) { + setMediaTypeValue(other.getMediaTypeValue()); + } + if (mediaObjectsBuilder_ == null) { + if (!other.mediaObjects_.isEmpty()) { + if (mediaObjects_.isEmpty()) { + mediaObjects_ = other.mediaObjects_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMediaObjectsIsMutable(); + mediaObjects_.addAll(other.mediaObjects_); + } + onChanged(); + } + } else { + if (!other.mediaObjects_.isEmpty()) { + if (mediaObjectsBuilder_.isEmpty()) { + mediaObjectsBuilder_.dispose(); + mediaObjectsBuilder_ = null; + mediaObjects_ = other.mediaObjects_; + bitField0_ = (bitField0_ & ~0x00000002); + mediaObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMediaObjectsFieldBuilder() + : null; + } else { + mediaObjectsBuilder_.addAllMessages(other.mediaObjects_); + } + } + } + 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.Intent.Message.MediaContent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int mediaType_ = 0; + /** + * + * + *
+         * Optional. What type of media is the content (ie "audio").
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public int getMediaTypeValue() { + return mediaType_; + } + /** + * + * + *
+         * Optional. What type of media is the content (ie "audio").
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public Builder setMediaTypeValue(int value) { + mediaType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. What type of media is the content (ie "audio").
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + getMediaType() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + .valueOf(mediaType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Optional. What type of media is the content (ie "audio").
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public Builder setMediaType( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType + value) { + if (value == null) { + throw new NullPointerException(); + } + + mediaType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. What type of media is the content (ie "audio").
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1; + * + */ + public Builder clearMediaType() { + + mediaType_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject> + mediaObjects_ = java.util.Collections.emptyList(); + + private void ensureMediaObjectsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + mediaObjects_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject>(mediaObjects_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder> + mediaObjectsBuilder_; + + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject> + getMediaObjectsList() { + if (mediaObjectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mediaObjects_); + } else { + return mediaObjectsBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public int getMediaObjectsCount() { + if (mediaObjectsBuilder_ == null) { + return mediaObjects_.size(); + } else { + return mediaObjectsBuilder_.getCount(); + } + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + getMediaObjects(int index) { + if (mediaObjectsBuilder_ == null) { + return mediaObjects_.get(index); + } else { + return mediaObjectsBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder setMediaObjects( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + value) { + if (mediaObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMediaObjectsIsMutable(); + mediaObjects_.set(index, value); + onChanged(); + } else { + mediaObjectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder setMediaObjects( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder + builderForValue) { + if (mediaObjectsBuilder_ == null) { + ensureMediaObjectsIsMutable(); + mediaObjects_.set(index, builderForValue.build()); + onChanged(); + } else { + mediaObjectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder addMediaObjects( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + value) { + if (mediaObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMediaObjectsIsMutable(); + mediaObjects_.add(value); + onChanged(); + } else { + mediaObjectsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder addMediaObjects( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + value) { + if (mediaObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMediaObjectsIsMutable(); + mediaObjects_.add(index, value); + onChanged(); + } else { + mediaObjectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder addMediaObjects( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder + builderForValue) { + if (mediaObjectsBuilder_ == null) { + ensureMediaObjectsIsMutable(); + mediaObjects_.add(builderForValue.build()); + onChanged(); + } else { + mediaObjectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder addMediaObjects( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder + builderForValue) { + if (mediaObjectsBuilder_ == null) { + ensureMediaObjectsIsMutable(); + mediaObjects_.add(index, builderForValue.build()); + onChanged(); + } else { + mediaObjectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder addAllMediaObjects( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject> + values) { + if (mediaObjectsBuilder_ == null) { + ensureMediaObjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mediaObjects_); + onChanged(); + } else { + mediaObjectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder clearMediaObjects() { + if (mediaObjectsBuilder_ == null) { + mediaObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + mediaObjectsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public Builder removeMediaObjects(int index) { + if (mediaObjectsBuilder_ == null) { + ensureMediaObjectsIsMutable(); + mediaObjects_.remove(index); + onChanged(); + } else { + mediaObjectsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder + getMediaObjectsBuilder(int index) { + return getMediaObjectsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder + getMediaObjectsOrBuilder(int index) { + if (mediaObjectsBuilder_ == null) { + return mediaObjects_.get(index); + } else { + return mediaObjectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder> + getMediaObjectsOrBuilderList() { + if (mediaObjectsBuilder_ != null) { + return mediaObjectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mediaObjects_); + } + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder + addMediaObjectsBuilder() { + return getMediaObjectsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.getDefaultInstance()); + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder + addMediaObjectsBuilder(int index) { + return getMediaObjectsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.getDefaultInstance()); + } + /** + * + * + *
+         * Required. List of media objects.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder> + getMediaObjectsBuilderList() { + return getMediaObjectsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject + .Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder> + getMediaObjectsFieldBuilder() { + if (mediaObjectsBuilder_ == null) { + mediaObjectsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObject.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .ResponseMediaObjectOrBuilder>( + mediaObjects_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + mediaObjects_ = null; + } + return mediaObjectsBuilder_; + } + + @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.Intent.Message.MediaContent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MediaContent(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.Intent.Message.MediaContent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BrowseCarouselCardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem> + getItemsList(); + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem + getItems(int index); + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + int getItemsCount(); + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder> + getItemsOrBuilderList(); + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder + getItemsOrBuilder(int index); + + /** + * + * + *
+       * Optional. Settings for displaying the image. Applies to every image in
+       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + int getImageDisplayOptionsValue(); + /** + * + * + *
+       * Optional. Settings for displaying the image. Applies to every image in
+       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions + getImageDisplayOptions(); + } + /** + * + * + *
+     * Browse Carousel Card for Actions on Google.
+     * https://developers.google.com/actions/assistant/responses#browsing_carousel
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard} + */ + public static final class BrowseCarouselCard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + BrowseCarouselCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use BrowseCarouselCard.newBuilder() to construct. + private BrowseCarouselCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BrowseCarouselCard() { + items_ = java.util.Collections.emptyList(); + imageDisplayOptions_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BrowseCarouselCard( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem>(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.parser(), + extensionRegistry)); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + imageDisplayOptions_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder + .class); + } + + /** + * + * + *
+       * Image display options for Actions on Google. This should be used for
+       * when the image's aspect ratio does not match the image container's
+       * aspect ratio.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions} + */ + public enum ImageDisplayOptions implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Fill the gaps between the image and the image container with gray
+         * bars.
+         * 
+ * + * IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0; + */ + IMAGE_DISPLAY_OPTIONS_UNSPECIFIED(0), + /** + * + * + *
+         * Fill the gaps between the image and the image container with gray
+         * bars.
+         * 
+ * + * GRAY = 1; + */ + GRAY(1), + /** + * + * + *
+         * Fill the gaps between the image and the image container with white
+         * bars.
+         * 
+ * + * WHITE = 2; + */ + WHITE(2), + /** + * + * + *
+         * Image is scaled such that the image width and height match or exceed
+         * the container dimensions. This may crop the top and bottom of the
+         * image if the scaled image height is greater than the container
+         * height, or crop the left and right of the image if the scaled image
+         * width is greater than the container width. This is similar to "Zoom
+         * Mode" on a widescreen TV when playing a 4:3 video.
+         * 
+ * + * CROPPED = 3; + */ + CROPPED(3), + /** + * + * + *
+         * Pad the gaps between image and image frame with a blurred copy of the
+         * same image.
+         * 
+ * + * BLURRED_BACKGROUND = 4; + */ + BLURRED_BACKGROUND(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Fill the gaps between the image and the image container with gray
+         * bars.
+         * 
+ * + * IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0; + */ + public static final int IMAGE_DISPLAY_OPTIONS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * Fill the gaps between the image and the image container with gray
+         * bars.
+         * 
+ * + * GRAY = 1; + */ + public static final int GRAY_VALUE = 1; + /** + * + * + *
+         * Fill the gaps between the image and the image container with white
+         * bars.
+         * 
+ * + * WHITE = 2; + */ + public static final int WHITE_VALUE = 2; + /** + * + * + *
+         * Image is scaled such that the image width and height match or exceed
+         * the container dimensions. This may crop the top and bottom of the
+         * image if the scaled image height is greater than the container
+         * height, or crop the left and right of the image if the scaled image
+         * width is greater than the container width. This is similar to "Zoom
+         * Mode" on a widescreen TV when playing a 4:3 video.
+         * 
+ * + * CROPPED = 3; + */ + public static final int CROPPED_VALUE = 3; + /** + * + * + *
+         * Pad the gaps between image and image frame with a blurred copy of the
+         * same image.
+         * 
+ * + * BLURRED_BACKGROUND = 4; + */ + public static final int BLURRED_BACKGROUND_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ImageDisplayOptions valueOf(int value) { + return forNumber(value); + } + + public static ImageDisplayOptions forNumber(int value) { + switch (value) { + case 0: + return IMAGE_DISPLAY_OPTIONS_UNSPECIFIED; + case 1: + return GRAY; + case 2: + return WHITE; + case 3: + return CROPPED; + case 4: + return BLURRED_BACKGROUND; + 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 ImageDisplayOptions findValueByNumber(int number) { + return ImageDisplayOptions.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImageDisplayOptions[] VALUES = values(); + + public static ImageDisplayOptions 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 ImageDisplayOptions(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions) + } + + public interface BrowseCarouselCardItemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Required. Action to present to the user.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + boolean hasOpenUriAction(); + /** + * + * + *
+         * Required. Action to present to the user.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem + .OpenUrlAction + getOpenUriAction(); + /** + * + * + *
+         * Required. Action to present to the user.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem + .OpenUrlActionOrBuilder + getOpenUriActionOrBuilder(); + + /** + * + * + *
+         * Required. Title of the carousel item. Maximum of two lines of text.
+         * 
+ * + * string title = 2; + */ + java.lang.String getTitle(); + /** + * + * + *
+         * Required. Title of the carousel item. Maximum of two lines of text.
+         * 
+ * + * string title = 2; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+         * Optional. Description of the carousel item. Maximum of four lines of
+         * text.
+         * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+         * Optional. Description of the carousel item. Maximum of four lines of
+         * text.
+         * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+         * Optional. Hero image for the carousel item.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + boolean hasImage(); + /** + * + * + *
+         * Optional. Hero image for the carousel item.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage(); + /** + * + * + *
+         * Optional. Hero image for the carousel item.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder(); + + /** + * + * + *
+         * Optional. Text that appears at the bottom of the Browse Carousel
+         * Card. Maximum of one line of text.
+         * 
+ * + * string footer = 5; + */ + java.lang.String getFooter(); + /** + * + * + *
+         * Optional. Text that appears at the bottom of the Browse Carousel
+         * Card. Maximum of one line of text.
+         * 
+ * + * string footer = 5; + */ + com.google.protobuf.ByteString getFooterBytes(); + } + /** + * + * + *
+       * Browsing carousel tile
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem} + */ + public static final class BrowseCarouselCardItem + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem) + BrowseCarouselCardItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use BrowseCarouselCardItem.newBuilder() to construct. + private BrowseCarouselCardItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BrowseCarouselCardItem() { + title_ = ""; + description_ = ""; + footer_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BrowseCarouselCardItem( + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder + subBuilder = null; + if (openUriAction_ != null) { + subBuilder = openUriAction_.toBuilder(); + } + openUriAction_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(openUriAction_); + openUriAction_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder subBuilder = + null; + if (image_ != null) { + subBuilder = image_.toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(image_); + image_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + footer_ = 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder.class); + } + + public interface OpenUrlActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * Required. URL
+           * 
+ * + * string url = 1; + */ + java.lang.String getUrl(); + /** + * + * + *
+           * Required. URL
+           * 
+ * + * string url = 1; + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+           * Optional. Specifies the type of viewer that is used when opening
+           * the URL. Defaults to opening via web browser.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + int getUrlTypeHintValue(); + /** + * + * + *
+           * Optional. Specifies the type of viewer that is used when opening
+           * the URL. Defaults to opening via web browser.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + getUrlTypeHint(); + } + /** + * + * + *
+         * Actions on Google action to open a given url.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction} + */ + public static final class OpenUrlAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + OpenUrlActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpenUrlAction.newBuilder() to construct. + private OpenUrlAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpenUrlAction() { + url_ = ""; + urlTypeHint_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OpenUrlAction( + 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(); + + url_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + urlTypeHint_ = 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.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder.class); + } + + /** + * + * + *
+           * Type of the URI.
+           * 
+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint} + */ + public enum UrlTypeHint implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+             * Unspecified
+             * 
+ * + * URL_TYPE_HINT_UNSPECIFIED = 0; + */ + URL_TYPE_HINT_UNSPECIFIED(0), + /** + * + * + *
+             * Url would be an amp action
+             * 
+ * + * AMP_ACTION = 1; + */ + AMP_ACTION(1), + /** + * + * + *
+             * URL that points directly to AMP content, or to a canonical URL
+             * which refers to AMP content via <link rel="amphtml">.
+             * 
+ * + * AMP_CONTENT = 2; + */ + AMP_CONTENT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+             * Unspecified
+             * 
+ * + * URL_TYPE_HINT_UNSPECIFIED = 0; + */ + public static final int URL_TYPE_HINT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+             * Url would be an amp action
+             * 
+ * + * AMP_ACTION = 1; + */ + public static final int AMP_ACTION_VALUE = 1; + /** + * + * + *
+             * URL that points directly to AMP content, or to a canonical URL
+             * which refers to AMP content via <link rel="amphtml">.
+             * 
+ * + * AMP_CONTENT = 2; + */ + public static final int AMP_CONTENT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static UrlTypeHint valueOf(int value) { + return forNumber(value); + } + + public static UrlTypeHint forNumber(int value) { + switch (value) { + case 0: + return URL_TYPE_HINT_UNSPECIFIED; + case 1: + return AMP_ACTION; + case 2: + return AMP_CONTENT; + 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 UrlTypeHint findValueByNumber(int number) { + return UrlTypeHint.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UrlTypeHint[] VALUES = values(); + + public static UrlTypeHint 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 UrlTypeHint(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint) + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + * + * + *
+           * Required. URL
+           * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + /** + * + * + *
+           * Required. URL
+           * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_TYPE_HINT_FIELD_NUMBER = 3; + private int urlTypeHint_; + /** + * + * + *
+           * Optional. Specifies the type of viewer that is used when opening
+           * the URL. Defaults to opening via web browser.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public int getUrlTypeHintValue() { + return urlTypeHint_; + } + /** + * + * + *
+           * Optional. Specifies the type of viewer that is used when opening
+           * the URL. Defaults to opening via web browser.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + getUrlTypeHint() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.valueOf(urlTypeHint_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.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 (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (urlTypeHint_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.URL_TYPE_HINT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, urlTypeHint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (urlTypeHint_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.URL_TYPE_HINT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, urlTypeHint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction) + obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (urlTypeHint_ != other.urlTypeHint_) 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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + URL_TYPE_HINT_FIELD_NUMBER; + hash = (53 * hash) + urlTypeHint_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + 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; + } + /** + * + * + *
+           * Actions on Google action to open a given url.
+           * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.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(); + url_ = ""; + + urlTypeHint_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction(this); + result.url_ = url_; + result.urlTypeHint_ = urlTypeHint_; + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (other.urlTypeHint_ != 0) { + setUrlTypeHintValue(other.getUrlTypeHintValue()); + } + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object url_ = ""; + /** + * + * + *
+             * Required. URL
+             * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * Required. URL
+             * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * Required. URL
+             * 
+ * + * string url = 1; + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + url_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * Required. URL
+             * 
+ * + * string url = 1; + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + * + * + *
+             * Required. URL
+             * 
+ * + * string url = 1; + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private int urlTypeHint_ = 0; + /** + * + * + *
+             * Optional. Specifies the type of viewer that is used when opening
+             * the URL. Defaults to opening via web browser.
+             * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public int getUrlTypeHintValue() { + return urlTypeHint_; + } + /** + * + * + *
+             * Optional. Specifies the type of viewer that is used when opening
+             * the URL. Defaults to opening via web browser.
+             * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public Builder setUrlTypeHintValue(int value) { + urlTypeHint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * Optional. Specifies the type of viewer that is used when opening
+             * the URL. Defaults to opening via web browser.
+             * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + getUrlTypeHint() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.valueOf(urlTypeHint_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint.UNRECOGNIZED + : result; + } + /** + * + * + *
+             * Optional. Specifies the type of viewer that is used when opening
+             * the URL. Defaults to opening via web browser.
+             * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public Builder setUrlTypeHint( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint + value) { + if (value == null) { + throw new NullPointerException(); + } + + urlTypeHint_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+             * Optional. Specifies the type of viewer that is used when opening
+             * the URL. Defaults to opening via web browser.
+             * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3; + * + */ + public Builder clearUrlTypeHint() { + + urlTypeHint_ = 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.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenUrlAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OpenUrlAction(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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int OPEN_URI_ACTION_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + openUriAction_; + /** + * + * + *
+         * Required. Action to present to the user.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public boolean hasOpenUriAction() { + return openUriAction_ != null; + } + /** + * + * + *
+         * Required. Action to present to the user.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + getOpenUriAction() { + return openUriAction_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance() + : openUriAction_; + } + /** + * + * + *
+         * Required. Action to present to the user.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlActionOrBuilder + getOpenUriActionOrBuilder() { + return getOpenUriAction(); + } + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + /** + * + * + *
+         * Required. Title of the carousel item. Maximum of two lines of text.
+         * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + /** + * + * + *
+         * Required. Title of the carousel item. Maximum of two lines of text.
+         * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+         * Optional. Description of the carousel item. Maximum of four lines of
+         * text.
+         * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+         * Optional. Description of the carousel item. Maximum of four lines of
+         * text.
+         * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_; + /** + * + * + *
+         * Optional. Hero image for the carousel item.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public boolean hasImage() { + return image_ != null; + } + /** + * + * + *
+         * Optional. Hero image for the carousel item.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + return image_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance() + : image_; + } + /** + * + * + *
+         * Optional. Hero image for the carousel item.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getImageOrBuilder() { + return getImage(); + } + + public static final int FOOTER_FIELD_NUMBER = 5; + private volatile java.lang.Object footer_; + /** + * + * + *
+         * Optional. Text that appears at the bottom of the Browse Carousel
+         * Card. Maximum of one line of text.
+         * 
+ * + * string footer = 5; + */ + public java.lang.String getFooter() { + java.lang.Object ref = footer_; + 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(); + footer_ = s; + return s; + } + } + /** + * + * + *
+         * Optional. Text that appears at the bottom of the Browse Carousel
+         * Card. Maximum of one line of text.
+         * 
+ * + * string footer = 5; + */ + public com.google.protobuf.ByteString getFooterBytes() { + java.lang.Object ref = footer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + footer_ = 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 (openUriAction_ != null) { + output.writeMessage(1, getOpenUriAction()); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (image_ != null) { + output.writeMessage(4, getImage()); + } + if (!getFooterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, footer_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (openUriAction_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpenUriAction()); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (image_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getImage()); + } + if (!getFooterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, footer_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem) + obj; + + if (hasOpenUriAction() != other.hasOpenUriAction()) return false; + if (hasOpenUriAction()) { + if (!getOpenUriAction().equals(other.getOpenUriAction())) return false; + } + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasImage() != other.hasImage()) return false; + if (hasImage()) { + if (!getImage().equals(other.getImage())) return false; + } + if (!getFooter().equals(other.getFooter())) 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 (hasOpenUriAction()) { + hash = (37 * hash) + OPEN_URI_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getOpenUriAction().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasImage()) { + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + } + hash = (37 * hash) + FOOTER_FIELD_NUMBER; + hash = (53 * hash) + getFooter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + 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; + } + /** + * + * + *
+         * Browsing carousel tile
+         * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem) + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.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 (openUriActionBuilder_ == null) { + openUriAction_ = null; + } else { + openUriAction_ = null; + openUriActionBuilder_ = null; + } + title_ = ""; + + description_ = ""; + + if (imageBuilder_ == null) { + image_ = null; + } else { + image_ = null; + imageBuilder_ = null; + } + footer_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem(this); + if (openUriActionBuilder_ == null) { + result.openUriAction_ = openUriAction_; + } else { + result.openUriAction_ = openUriActionBuilder_.build(); + } + result.title_ = title_; + result.description_ = description_; + if (imageBuilder_ == null) { + result.image_ = image_; + } else { + result.image_ = imageBuilder_.build(); + } + result.footer_ = footer_; + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.getDefaultInstance()) return this; + if (other.hasOpenUriAction()) { + mergeOpenUriAction(other.getOpenUriAction()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasImage()) { + mergeImage(other.getImage()); + } + if (!other.getFooter().isEmpty()) { + footer_ = other.footer_; + 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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + openUriAction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlActionOrBuilder> + openUriActionBuilder_; + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public boolean hasOpenUriAction() { + return openUriActionBuilder_ != null || openUriAction_ != null; + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + getOpenUriAction() { + if (openUriActionBuilder_ == null) { + return openUriAction_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance() + : openUriAction_; + } else { + return openUriActionBuilder_.getMessage(); + } + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public Builder setOpenUriAction( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + value) { + if (openUriActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + openUriAction_ = value; + onChanged(); + } else { + openUriActionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public Builder setOpenUriAction( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder + builderForValue) { + if (openUriActionBuilder_ == null) { + openUriAction_ = builderForValue.build(); + onChanged(); + } else { + openUriActionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public Builder mergeOpenUriAction( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction + value) { + if (openUriActionBuilder_ == null) { + if (openUriAction_ != null) { + openUriAction_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.newBuilder(openUriAction_) + .mergeFrom(value) + .buildPartial(); + } else { + openUriAction_ = value; + } + onChanged(); + } else { + openUriActionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public Builder clearOpenUriAction() { + if (openUriActionBuilder_ == null) { + openUriAction_ = null; + onChanged(); + } else { + openUriAction_ = null; + openUriActionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder + getOpenUriActionBuilder() { + + onChanged(); + return getOpenUriActionFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlActionOrBuilder + getOpenUriActionOrBuilder() { + if (openUriActionBuilder_ != null) { + return openUriActionBuilder_.getMessageOrBuilder(); + } else { + return openUriAction_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.getDefaultInstance() + : openUriAction_; + } + } + /** + * + * + *
+           * Required. Action to present to the user.
+           * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction open_uri_action = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlActionOrBuilder> + getOpenUriActionFieldBuilder() { + if (openUriActionBuilder_ == null) { + openUriActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlAction.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.OpenUrlActionOrBuilder>( + getOpenUriAction(), getParentForChildren(), isClean()); + openUriAction_ = null; + } + return openUriActionBuilder_; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+           * Required. Title of the carousel item. Maximum of two lines of text.
+           * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Required. Title of the carousel item. Maximum of two lines of text.
+           * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Required. Title of the carousel item. Maximum of two lines of text.
+           * 
+ * + * string title = 2; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * Required. Title of the carousel item. Maximum of two lines of text.
+           * 
+ * + * string title = 2; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+           * Required. Title of the carousel item. Maximum of two lines of text.
+           * 
+ * + * string title = 2; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+           * Optional. Description of the carousel item. Maximum of four lines of
+           * text.
+           * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Optional. Description of the carousel item. Maximum of four lines of
+           * text.
+           * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Optional. Description of the carousel item. Maximum of four lines of
+           * text.
+           * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * Optional. Description of the carousel item. Maximum of four lines of
+           * text.
+           * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+           * Optional. Description of the carousel item. Maximum of four lines of
+           * text.
+           * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + imageBuilder_; + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public boolean hasImage() { + return imageBuilder_ != null || image_ != null; + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + if (imageBuilder_ == null) { + return image_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance() + : image_; + } else { + return imageBuilder_.getMessage(); + } + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + image_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public Builder setImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) { + if (imageBuilder_ == null) { + image_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public Builder mergeImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (imageBuilder_ == null) { + if (image_ != null) { + image_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(image_) + .mergeFrom(value) + .buildPartial(); + } else { + image_ = value; + } + onChanged(); + } else { + imageBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public Builder clearImage() { + if (imageBuilder_ == null) { + image_ = null; + onChanged(); + } else { + image_ = null; + imageBuilder_ = null; + } + + return this; + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder + getImageBuilder() { + + onChanged(); + return getImageFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getImageOrBuilder() { + if (imageBuilder_ != null) { + return imageBuilder_.getMessageOrBuilder(); + } else { + return image_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance() + : image_; + } + } + /** + * + * + *
+           * Optional. Hero image for the carousel item.
+           * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + getImageFieldBuilder() { + if (imageBuilder_ == null) { + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); + image_ = null; + } + return imageBuilder_; + } + + private java.lang.Object footer_ = ""; + /** + * + * + *
+           * Optional. Text that appears at the bottom of the Browse Carousel
+           * Card. Maximum of one line of text.
+           * 
+ * + * string footer = 5; + */ + public java.lang.String getFooter() { + java.lang.Object ref = footer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + footer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Optional. Text that appears at the bottom of the Browse Carousel
+           * Card. Maximum of one line of text.
+           * 
+ * + * string footer = 5; + */ + public com.google.protobuf.ByteString getFooterBytes() { + java.lang.Object ref = footer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + footer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Optional. Text that appears at the bottom of the Browse Carousel
+           * Card. Maximum of one line of text.
+           * 
+ * + * string footer = 5; + */ + public Builder setFooter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + footer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * Optional. Text that appears at the bottom of the Browse Carousel
+           * Card. Maximum of one line of text.
+           * 
+ * + * string footer = 5; + */ + public Builder clearFooter() { + + footer_ = getDefaultInstance().getFooter(); + onChanged(); + return this; + } + /** + * + * + *
+           * Optional. Text that appears at the bottom of the Browse Carousel
+           * Card. Maximum of one line of text.
+           * 
+ * + * string footer = 5; + */ + public Builder setFooterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + footer_ = 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.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BrowseCarouselCardItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BrowseCarouselCardItem(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.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem> + items_; + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem> + getItemsList() { + return items_; + } + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder> + getItemsOrBuilderList() { + return items_; + } + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public int getItemsCount() { + return items_.size(); + } + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + getItems(int index) { + return items_.get(index); + } + /** + * + * + *
+       * Required. List of items in the Browse Carousel Card. Minimum of two
+       * items, maximum of ten.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder + getItemsOrBuilder(int index) { + return items_.get(index); + } + + public static final int IMAGE_DISPLAY_OPTIONS_FIELD_NUMBER = 2; + private int imageDisplayOptions_; + /** + * + * + *
+       * Optional. Settings for displaying the image. Applies to every image in
+       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public int getImageDisplayOptionsValue() { + return imageDisplayOptions_; + } + /** + * + * + *
+       * Optional. Settings for displaying the image. Applies to every image in
+       * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions + getImageDisplayOptions() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions + result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions.valueOf(imageDisplayOptions_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions.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 { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + if (imageDisplayOptions_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions.IMAGE_DISPLAY_OPTIONS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, imageDisplayOptions_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); + } + if (imageDisplayOptions_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions.IMAGE_DISPLAY_OPTIONS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, imageDisplayOptions_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) obj; + + if (!getItemsList().equals(other.getItemsList())) return false; + if (imageDisplayOptions_ != other.imageDisplayOptions_) 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 (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (37 * hash) + IMAGE_DISPLAY_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + imageDisplayOptions_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard 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.Intent.Message.BrowseCarouselCard 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; + } + /** + * + * + *
+       * Browse Carousel Card for Actions on Google.
+       * https://developers.google.com/actions/assistant/responses#browsing_carousel
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + imageDisplayOptions_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.imageDisplayOptions_ = imageDisplayOptions_; + 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.v2beta1.Intent.Message.BrowseCarouselCard) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance()) return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() + : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (other.imageDisplayOptions_ != 0) { + setImageDisplayOptionsValue(other.getImageDisplayOptionsValue()); + } + 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.Intent.Message.BrowseCarouselCard parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem> + items_ = java.util.Collections.emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem>(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder> + itemsBuilder_; + + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem> + getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder setItems( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder setItems( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder + builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder addItems( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder addItems( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem + value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder addItems( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder + builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder addItems( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder + builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder addAllItems( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem> + values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder + getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder + getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder> + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder + addItemsBuilder() { + return getItemsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.getDefaultInstance()); + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder + addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.getDefaultInstance()); + } + /** + * + * + *
+         * Required. List of items in the Browse Carousel Card. Minimum of two
+         * items, maximum of ten.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder> + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItem.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .BrowseCarouselCardItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private int imageDisplayOptions_ = 0; + /** + * + * + *
+         * Optional. Settings for displaying the image. Applies to every image in
+         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public int getImageDisplayOptionsValue() { + return imageDisplayOptions_; + } + /** + * + * + *
+         * Optional. Settings for displaying the image. Applies to every image in
+         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public Builder setImageDisplayOptionsValue(int value) { + imageDisplayOptions_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Settings for displaying the image. Applies to every image in
+         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions + getImageDisplayOptions() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions + result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions.valueOf(imageDisplayOptions_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions.UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Optional. Settings for displaying the image. Applies to every image in
+         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public Builder setImageDisplayOptions( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .ImageDisplayOptions + value) { + if (value == null) { + throw new NullPointerException(); + } + + imageDisplayOptions_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Settings for displaying the image. Applies to every image in
+         * [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items].
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2; + * + */ + public Builder clearImageDisplayOptions() { + + imageDisplayOptions_ = 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.v2beta1.Intent.Message.BrowseCarouselCard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BrowseCarouselCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BrowseCarouselCard(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.Intent.Message.BrowseCarouselCard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TableCardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Title of the card.
+       * 
+ * + * string title = 1; + */ + java.lang.String getTitle(); + /** + * + * + *
+       * Required. Title of the card.
+       * 
+ * + * string title = 1; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+       * Optional. Subtitle to the title.
+       * 
+ * + * string subtitle = 2; + */ + java.lang.String getSubtitle(); + /** + * + * + *
+       * Optional. Subtitle to the title.
+       * 
+ * + * string subtitle = 2; + */ + com.google.protobuf.ByteString getSubtitleBytes(); + + /** + * + * + *
+       * Optional. Image which should be displayed on the card.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + boolean hasImage(); + /** + * + * + *
+       * Optional. Image which should be displayed on the card.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage(); + /** + * + * + *
+       * Optional. Image which should be displayed on the card.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder(); + + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + java.util.List + getColumnPropertiesList(); + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties getColumnProperties( + int index); + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + int getColumnPropertiesCount(); + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder> + getColumnPropertiesOrBuilderList(); + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder + getColumnPropertiesOrBuilder(int index); + + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + java.util.List getRowsList(); + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow getRows(int index); + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + int getRowsCount(); + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder> + getRowsOrBuilderList(); + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder getRowsOrBuilder( + int index); + + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + java.util.List + getButtonsList(); + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons(int index); + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + int getButtonsCount(); + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder> + getButtonsOrBuilderList(); + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder + getButtonsOrBuilder(int index); + } + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCard} + */ + public static final class TableCard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) + TableCardOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableCard.newBuilder() to construct. + private TableCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableCard() { + title_ = ""; + subtitle_ = ""; + columnProperties_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + buttons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableCard( + 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(); + + title_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + subtitle_ = s; + break; + } + case 26: + { + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder subBuilder = + null; + if (image_ != null) { + subBuilder = image_.toBuilder(); + } + image_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(image_); + image_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + columnProperties_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>(); + mutable_bitField0_ |= 0x00000008; + } + columnProperties_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .parser(), + extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + rows_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>(); + mutable_bitField0_ |= 0x00000010; + } + rows_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.parser(), + extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + buttons_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>(); + mutable_bitField0_ |= 0x00000020; + } + buttons_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button + .parser(), + extensionRegistry)); + 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)) { + columnProperties_ = java.util.Collections.unmodifiableList(columnProperties_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + buttons_ = java.util.Collections.unmodifiableList(buttons_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder.class); + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object title_; + /** + * + * + *
+       * Required. Title of the card.
+       * 
+ * + * string title = 1; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + /** + * + * + *
+       * Required. Title of the card.
+       * 
+ * + * string title = 1; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBTITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object subtitle_; + /** + * + * + *
+       * Optional. Subtitle to the title.
+       * 
+ * + * string subtitle = 2; + */ + public java.lang.String getSubtitle() { + java.lang.Object ref = subtitle_; + 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(); + subtitle_ = s; + return s; + } + } + /** + * + * + *
+       * Optional. Subtitle to the title.
+       * 
+ * + * string subtitle = 2; + */ + public com.google.protobuf.ByteString getSubtitleBytes() { + java.lang.Object ref = subtitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subtitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_; + /** + * + * + *
+       * Optional. Image which should be displayed on the card.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public boolean hasImage() { + return image_ != null; + } + /** + * + * + *
+       * Optional. Image which should be displayed on the card.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + return image_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance() + : image_; + } + /** + * + * + *
+       * Optional. Image which should be displayed on the card.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { + return getImage(); + } + + public static final int COLUMN_PROPERTIES_FIELD_NUMBER = 4; + private java.util.List + columnProperties_; + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public java.util.List + getColumnPropertiesList() { + return columnProperties_; + } + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder> + getColumnPropertiesOrBuilderList() { + return columnProperties_; + } + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public int getColumnPropertiesCount() { + return columnProperties_.size(); + } + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + getColumnProperties(int index) { + return columnProperties_.get(index); + } + /** + * + * + *
+       * Optional. Display properties for the columns in this table.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder + getColumnPropertiesOrBuilder(int index) { + return columnProperties_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 5; + private java.util.List rows_; + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public java.util.List + getRowsList() { + return rows_; + } + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder> + getRowsOrBuilderList() { + return rows_; + } + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public int getRowsCount() { + return rows_.size(); + } + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow getRows(int index) { + return rows_.get(index); + } + /** + * + * + *
+       * Optional. Rows in this table of data.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder + getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int BUTTONS_FIELD_NUMBER = 6; + private java.util.List + buttons_; + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public java.util.List + getButtonsList() { + return buttons_; + } + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder> + getButtonsOrBuilderList() { + return buttons_; + } + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public int getButtonsCount() { + return buttons_.size(); + } + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons( + int index) { + return buttons_.get(index); + } + /** + * + * + *
+       * Optional. List of buttons for the card.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder + getButtonsOrBuilder(int index) { + return buttons_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); + } + if (!getSubtitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subtitle_); + } + if (image_ != null) { + output.writeMessage(3, getImage()); + } + for (int i = 0; i < columnProperties_.size(); i++) { + output.writeMessage(4, columnProperties_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(5, rows_.get(i)); + } + for (int i = 0; i < buttons_.size(); i++) { + output.writeMessage(6, buttons_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); + } + if (!getSubtitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subtitle_); + } + if (image_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImage()); + } + for (int i = 0; i < columnProperties_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, columnProperties_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, rows_.get(i)); + } + for (int i = 0; i < buttons_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, buttons_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getSubtitle().equals(other.getSubtitle())) return false; + if (hasImage() != other.hasImage()) return false; + if (hasImage()) { + if (!getImage().equals(other.getImage())) return false; + } + if (!getColumnPropertiesList().equals(other.getColumnPropertiesList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (!getButtonsList().equals(other.getButtonsList())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + SUBTITLE_FIELD_NUMBER; + hash = (53 * hash) + getSubtitle().hashCode(); + if (hasImage()) { + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + } + if (getColumnPropertiesCount() > 0) { + hash = (37 * hash) + COLUMN_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getColumnPropertiesList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + if (getButtonsCount() > 0) { + hash = (37 * hash) + BUTTONS_FIELD_NUMBER; + hash = (53 * hash) + getButtonsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard 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.Intent.Message.TableCard 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; + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getColumnPropertiesFieldBuilder(); + getRowsFieldBuilder(); + getButtonsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + title_ = ""; + + subtitle_ = ""; + + if (imageBuilder_ == null) { + image_ = null; + } else { + image_ = null; + imageBuilder_ = null; + } + if (columnPropertiesBuilder_ == null) { + columnProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + columnPropertiesBuilder_.clear(); + } + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + rowsBuilder_.clear(); + } + if (buttonsBuilder_ == null) { + buttons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + buttonsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.title_ = title_; + result.subtitle_ = subtitle_; + if (imageBuilder_ == null) { + result.image_ = image_; + } else { + result.image_ = imageBuilder_.build(); + } + if (columnPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + columnProperties_ = java.util.Collections.unmodifiableList(columnProperties_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.columnProperties_ = columnProperties_; + } else { + result.columnProperties_ = columnPropertiesBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + if (buttonsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + buttons_ = java.util.Collections.unmodifiableList(buttons_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.buttons_ = buttons_; + } else { + result.buttons_ = buttonsBuilder_.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.v2beta1.Intent.Message.TableCard) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getSubtitle().isEmpty()) { + subtitle_ = other.subtitle_; + onChanged(); + } + if (other.hasImage()) { + mergeImage(other.getImage()); + } + if (columnPropertiesBuilder_ == null) { + if (!other.columnProperties_.isEmpty()) { + if (columnProperties_.isEmpty()) { + columnProperties_ = other.columnProperties_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureColumnPropertiesIsMutable(); + columnProperties_.addAll(other.columnProperties_); + } + onChanged(); + } + } else { + if (!other.columnProperties_.isEmpty()) { + if (columnPropertiesBuilder_.isEmpty()) { + columnPropertiesBuilder_.dispose(); + columnPropertiesBuilder_ = null; + columnProperties_ = other.columnProperties_; + bitField0_ = (bitField0_ & ~0x00000008); + columnPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnPropertiesFieldBuilder() + : null; + } else { + columnPropertiesBuilder_.addAllMessages(other.columnProperties_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000010); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (buttonsBuilder_ == null) { + if (!other.buttons_.isEmpty()) { + if (buttons_.isEmpty()) { + buttons_ = other.buttons_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureButtonsIsMutable(); + buttons_.addAll(other.buttons_); + } + onChanged(); + } + } else { + if (!other.buttons_.isEmpty()) { + if (buttonsBuilder_.isEmpty()) { + buttonsBuilder_.dispose(); + buttonsBuilder_ = null; + buttons_ = other.buttons_; + bitField0_ = (bitField0_ & ~0x00000020); + buttonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getButtonsFieldBuilder() + : null; + } else { + buttonsBuilder_.addAllMessages(other.buttons_); + } + } + } + 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.Intent.Message.TableCard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object title_ = ""; + /** + * + * + *
+         * Required. Title of the card.
+         * 
+ * + * string title = 1; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. Title of the card.
+         * 
+ * + * string title = 1; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. Title of the card.
+         * 
+ * + * string title = 1; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Title of the card.
+         * 
+ * + * string title = 1; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Title of the card.
+         * 
+ * + * string title = 1; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object subtitle_ = ""; + /** + * + * + *
+         * Optional. Subtitle to the title.
+         * 
+ * + * string subtitle = 2; + */ + public java.lang.String getSubtitle() { + java.lang.Object ref = subtitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subtitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Optional. Subtitle to the title.
+         * 
+ * + * string subtitle = 2; + */ + public com.google.protobuf.ByteString getSubtitleBytes() { + java.lang.Object ref = subtitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subtitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Optional. Subtitle to the title.
+         * 
+ * + * string subtitle = 2; + */ + public Builder setSubtitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subtitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Subtitle to the title.
+         * 
+ * + * string subtitle = 2; + */ + public Builder clearSubtitle() { + + subtitle_ = getDefaultInstance().getSubtitle(); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Subtitle to the title.
+         * 
+ * + * string subtitle = 2; + */ + public Builder setSubtitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subtitle_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.Intent.Message.Image image_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + imageBuilder_; + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public boolean hasImage() { + return imageBuilder_ != null || image_ != null; + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + if (imageBuilder_ == null) { + return image_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance() + : image_; + } else { + return imageBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public Builder setImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + image_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public Builder setImage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder builderForValue) { + if (imageBuilder_ == null) { + image_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public Builder mergeImage(com.google.cloud.dialogflow.v2beta1.Intent.Message.Image value) { + if (imageBuilder_ == null) { + if (image_ != null) { + image_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.newBuilder(image_) + .mergeFrom(value) + .buildPartial(); + } else { + image_ = value; + } + onChanged(); + } else { + imageBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public Builder clearImage() { + if (imageBuilder_ == null) { + image_ = null; + onChanged(); + } else { + image_ = null; + imageBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder getImageBuilder() { + + onChanged(); + return getImageFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder + getImageOrBuilder() { + if (imageBuilder_ != null) { + return imageBuilder_.getMessageOrBuilder(); + } else { + return image_ == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance() + : image_; + } + } + /** + * + * + *
+         * Optional. Image which should be displayed on the card.
+         * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder> + getImageFieldBuilder() { + if (imageBuilder_ == null) { + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image, + com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); + image_ = null; + } + return imageBuilder_; + } + + private java.util.List + columnProperties_ = java.util.Collections.emptyList(); + + private void ensureColumnPropertiesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + columnProperties_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties>( + columnProperties_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder> + columnPropertiesBuilder_; + + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public java.util.List + getColumnPropertiesList() { + if (columnPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(columnProperties_); + } else { + return columnPropertiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public int getColumnPropertiesCount() { + if (columnPropertiesBuilder_ == null) { + return columnProperties_.size(); + } else { + return columnPropertiesBuilder_.getCount(); + } + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + getColumnProperties(int index) { + if (columnPropertiesBuilder_ == null) { + return columnProperties_.get(index); + } else { + return columnPropertiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder setColumnProperties( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties value) { + if (columnPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnPropertiesIsMutable(); + columnProperties_.set(index, value); + onChanged(); + } else { + columnPropertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder setColumnProperties( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + builderForValue) { + if (columnPropertiesBuilder_ == null) { + ensureColumnPropertiesIsMutable(); + columnProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + columnPropertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder addColumnProperties( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties value) { + if (columnPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnPropertiesIsMutable(); + columnProperties_.add(value); + onChanged(); + } else { + columnPropertiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder addColumnProperties( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties value) { + if (columnPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnPropertiesIsMutable(); + columnProperties_.add(index, value); + onChanged(); + } else { + columnPropertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder addColumnProperties( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + builderForValue) { + if (columnPropertiesBuilder_ == null) { + ensureColumnPropertiesIsMutable(); + columnProperties_.add(builderForValue.build()); + onChanged(); + } else { + columnPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder addColumnProperties( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + builderForValue) { + if (columnPropertiesBuilder_ == null) { + ensureColumnPropertiesIsMutable(); + columnProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + columnPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder addAllColumnProperties( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties> + values) { + if (columnPropertiesBuilder_ == null) { + ensureColumnPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnProperties_); + onChanged(); + } else { + columnPropertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder clearColumnProperties() { + if (columnPropertiesBuilder_ == null) { + columnProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + columnPropertiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public Builder removeColumnProperties(int index) { + if (columnPropertiesBuilder_ == null) { + ensureColumnPropertiesIsMutable(); + columnProperties_.remove(index); + onChanged(); + } else { + columnPropertiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + getColumnPropertiesBuilder(int index) { + return getColumnPropertiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder + getColumnPropertiesOrBuilder(int index) { + if (columnPropertiesBuilder_ == null) { + return columnProperties_.get(index); + } else { + return columnPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder> + getColumnPropertiesOrBuilderList() { + if (columnPropertiesBuilder_ != null) { + return columnPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columnProperties_); + } + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + addColumnPropertiesBuilder() { + return getColumnPropertiesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + addColumnPropertiesBuilder(int index) { + return getColumnPropertiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. Display properties for the columns in this table.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties column_properties = 4; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder> + getColumnPropertiesBuilderList() { + return getColumnPropertiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder> + getColumnPropertiesFieldBuilder() { + if (columnPropertiesBuilder_ == null) { + columnPropertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder>( + columnProperties_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + columnProperties_ = null; + } + return columnPropertiesBuilder_; + } + + private java.util.List + rows_ = java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + rows_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow>(rows_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public java.util.List + getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder setRows( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder setRows( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder + builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder addRows( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder addRows( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder addRows( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder + builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder addRows( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder + builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder addAllRows( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow> + values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder + getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder + getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder> + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder + addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder + addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. Rows in this table of data.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow rows = 5; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder> + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder>( + rows_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private java.util.List + buttons_ = java.util.Collections.emptyList(); + + private void ensureButtonsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + buttons_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>(buttons_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder> + buttonsBuilder_; + + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public java.util.List + getButtonsList() { + if (buttonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(buttons_); + } else { + return buttonsBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public int getButtonsCount() { + if (buttonsBuilder_ == null) { + return buttons_.size(); + } else { + return buttonsBuilder_.getCount(); + } + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button getButtons( + int index) { + if (buttonsBuilder_ == null) { + return buttons_.get(index); + } else { + return buttonsBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder setButtons( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) { + if (buttonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureButtonsIsMutable(); + buttons_.set(index, value); + onChanged(); + } else { + buttonsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder setButtons( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder + builderForValue) { + if (buttonsBuilder_ == null) { + ensureButtonsIsMutable(); + buttons_.set(index, builderForValue.build()); + onChanged(); + } else { + buttonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder addButtons( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) { + if (buttonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureButtonsIsMutable(); + buttons_.add(value); + onChanged(); + } else { + buttonsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder addButtons( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button value) { + if (buttonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureButtonsIsMutable(); + buttons_.add(index, value); + onChanged(); + } else { + buttonsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder addButtons( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder + builderForValue) { + if (buttonsBuilder_ == null) { + ensureButtonsIsMutable(); + buttons_.add(builderForValue.build()); + onChanged(); + } else { + buttonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder addButtons( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder + builderForValue) { + if (buttonsBuilder_ == null) { + ensureButtonsIsMutable(); + buttons_.add(index, builderForValue.build()); + onChanged(); + } else { + buttonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder addAllButtons( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button> + values) { + if (buttonsBuilder_ == null) { + ensureButtonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buttons_); + onChanged(); + } else { + buttonsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder clearButtons() { + if (buttonsBuilder_ == null) { + buttons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + buttonsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public Builder removeButtons(int index) { + if (buttonsBuilder_ == null) { + ensureButtonsIsMutable(); + buttons_.remove(index); + onChanged(); + } else { + buttonsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder + getButtonsBuilder(int index) { + return getButtonsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder + getButtonsOrBuilder(int index) { + if (buttonsBuilder_ == null) { + return buttons_.get(index); + } else { + return buttonsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder> + getButtonsOrBuilderList() { + if (buttonsBuilder_ != null) { + return buttonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(buttons_); + } + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder + addButtonsBuilder() { + return getButtonsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder + addButtonsBuilder(int index) { + return getButtonsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. List of buttons for the card.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder> + getButtonsBuilderList() { + return getButtonsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder> + getButtonsFieldBuilder() { + if (buttonsBuilder_ == null) { + buttonsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>( + buttons_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + buttons_ = null; + } + return buttonsBuilder_; + } + + @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.Intent.Message.TableCard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableCard(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.Intent.Message.TableCard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ColumnPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Column heading.
+       * 
+ * + * string header = 1; + */ + java.lang.String getHeader(); + /** + * + * + *
+       * Required. Column heading.
+       * 
+ * + * string header = 1; + */ + com.google.protobuf.ByteString getHeaderBytes(); + + /** + * + * + *
+       * Optional. Defines text alignment for all cells in this column.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + int getHorizontalAlignmentValue(); + /** + * + * + *
+       * Optional. Defines text alignment for all cells in this column.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment + getHorizontalAlignment(); + } + /** + * + * + *
+     * Column properties for [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties} + */ + public static final class ColumnProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) + ColumnPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnProperties.newBuilder() to construct. + private ColumnProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColumnProperties() { + header_ = ""; + horizontalAlignment_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ColumnProperties( + 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(); + + header_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + horizontalAlignment_ = 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.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder.class); + } + + /** + * + * + *
+       * Text alignments within a cell.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment} + */ + public enum HorizontalAlignment implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Text is aligned to the leading edge of the column.
+         * 
+ * + * HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + */ + HORIZONTAL_ALIGNMENT_UNSPECIFIED(0), + /** + * + * + *
+         * Text is aligned to the leading edge of the column.
+         * 
+ * + * LEADING = 1; + */ + LEADING(1), + /** + * + * + *
+         * Text is centered in the column.
+         * 
+ * + * CENTER = 2; + */ + CENTER(2), + /** + * + * + *
+         * Text is aligned to the trailing edge of the column.
+         * 
+ * + * TRAILING = 3; + */ + TRAILING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Text is aligned to the leading edge of the column.
+         * 
+ * + * HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + */ + public static final int HORIZONTAL_ALIGNMENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * Text is aligned to the leading edge of the column.
+         * 
+ * + * LEADING = 1; + */ + public static final int LEADING_VALUE = 1; + /** + * + * + *
+         * Text is centered in the column.
+         * 
+ * + * CENTER = 2; + */ + public static final int CENTER_VALUE = 2; + /** + * + * + *
+         * Text is aligned to the trailing edge of the column.
+         * 
+ * + * TRAILING = 3; + */ + public static final int TRAILING_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 HorizontalAlignment valueOf(int value) { + return forNumber(value); + } + + public static HorizontalAlignment forNumber(int value) { + switch (value) { + case 0: + return HORIZONTAL_ALIGNMENT_UNSPECIFIED; + case 1: + return LEADING; + case 2: + return CENTER; + case 3: + return TRAILING; + 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 HorizontalAlignment findValueByNumber(int number) { + return HorizontalAlignment.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HorizontalAlignment[] VALUES = values(); + + public static HorizontalAlignment 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 HorizontalAlignment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment) + } + + public static final int HEADER_FIELD_NUMBER = 1; + private volatile java.lang.Object header_; + /** + * + * + *
+       * Required. Column heading.
+       * 
+ * + * string header = 1; + */ + public java.lang.String getHeader() { + java.lang.Object ref = header_; + 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(); + header_ = s; + return s; + } + } + /** + * + * + *
+       * Required. Column heading.
+       * 
+ * + * string header = 1; + */ + public com.google.protobuf.ByteString getHeaderBytes() { + java.lang.Object ref = header_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + header_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER = 2; + private int horizontalAlignment_; + /** + * + * + *
+       * Optional. Defines text alignment for all cells in this column.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public int getHorizontalAlignmentValue() { + return horizontalAlignment_; + } + /** + * + * + *
+       * Optional. Defines text alignment for all cells in this column.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment + getHorizontalAlignment() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment + result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment.valueOf(horizontalAlignment_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment.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 (!getHeaderBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, header_); + } + if (horizontalAlignment_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, horizontalAlignment_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHeaderBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, header_); + } + if (horizontalAlignment_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment.HORIZONTAL_ALIGNMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, horizontalAlignment_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) obj; + + if (!getHeader().equals(other.getHeader())) return false; + if (horizontalAlignment_ != other.horizontalAlignment_) 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) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + hash = (37 * hash) + HORIZONTAL_ALIGNMENT_FIELD_NUMBER; + hash = (53 * hash) + horizontalAlignment_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties 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.Intent.Message.ColumnProperties 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; + } + /** + * + * + *
+       * Column properties for [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.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(); + header_ = ""; + + horizontalAlignment_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties(this); + result.header_ = header_; + result.horizontalAlignment_ = horizontalAlignment_; + 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.Intent.Message.ColumnProperties) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .getDefaultInstance()) return this; + if (!other.getHeader().isEmpty()) { + header_ = other.header_; + onChanged(); + } + if (other.horizontalAlignment_ != 0) { + setHorizontalAlignmentValue(other.getHorizontalAlignmentValue()); + } + 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.Intent.Message.ColumnProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object header_ = ""; + /** + * + * + *
+         * Required. Column heading.
+         * 
+ * + * string header = 1; + */ + public java.lang.String getHeader() { + java.lang.Object ref = header_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + header_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. Column heading.
+         * 
+ * + * string header = 1; + */ + public com.google.protobuf.ByteString getHeaderBytes() { + java.lang.Object ref = header_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + header_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. Column heading.
+         * 
+ * + * string header = 1; + */ + public Builder setHeader(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + header_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Column heading.
+         * 
+ * + * string header = 1; + */ + public Builder clearHeader() { + + header_ = getDefaultInstance().getHeader(); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Column heading.
+         * 
+ * + * string header = 1; + */ + public Builder setHeaderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + header_ = value; + onChanged(); + return this; + } + + private int horizontalAlignment_ = 0; + /** + * + * + *
+         * Optional. Defines text alignment for all cells in this column.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public int getHorizontalAlignmentValue() { + return horizontalAlignment_; + } + /** + * + * + *
+         * Optional. Defines text alignment for all cells in this column.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public Builder setHorizontalAlignmentValue(int value) { + horizontalAlignment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Defines text alignment for all cells in this column.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment + getHorizontalAlignment() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment + result = + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment.valueOf(horizontalAlignment_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + .HorizontalAlignment.UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Optional. Defines text alignment for all cells in this column.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public Builder setHorizontalAlignment( + com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment + value) { + if (value == null) { + throw new NullPointerException(); + } + + horizontalAlignment_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Defines text alignment for all cells in this column.
+         * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties.HorizontalAlignment horizontal_alignment = 2; + * + */ + public Builder clearHorizontalAlignment() { + + horizontalAlignment_ = 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.v2beta1.Intent.Message.ColumnProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.ColumnProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnProperties(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.Intent.Message.ColumnProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TableCardRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + java.util.List + getCellsList(); + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell getCells(int index); + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + int getCellsCount(); + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder> + getCellsOrBuilderList(); + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder getCellsOrBuilder( + int index); + + /** + * + * + *
+       * Optional. Whether to add a visual divider after this row.
+       * 
+ * + * bool divider_after = 2; + */ + boolean getDividerAfter(); + } + /** + * + * + *
+     * Row of [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow} + */ + public static final class TableCardRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) + TableCardRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableCardRow.newBuilder() to construct. + private TableCardRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableCardRow() { + cells_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableCardRow( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cells_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>(); + mutable_bitField0_ |= 0x00000001; + } + cells_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.parser(), + extensionRegistry)); + break; + } + case 16: + { + dividerAfter_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cells_ = java.util.Collections.unmodifiableList(cells_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder.class); + } + + private int bitField0_; + public static final int CELLS_FIELD_NUMBER = 1; + private java.util.List + cells_; + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public java.util.List + getCellsList() { + return cells_; + } + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder> + getCellsOrBuilderList() { + return cells_; + } + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public int getCellsCount() { + return cells_.size(); + } + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell getCells(int index) { + return cells_.get(index); + } + /** + * + * + *
+       * Optional. List of cells that make up this row.
+       * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder + getCellsOrBuilder(int index) { + return cells_.get(index); + } + + public static final int DIVIDER_AFTER_FIELD_NUMBER = 2; + private boolean dividerAfter_; + /** + * + * + *
+       * Optional. Whether to add a visual divider after this row.
+       * 
+ * + * bool divider_after = 2; + */ + public boolean getDividerAfter() { + return dividerAfter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < cells_.size(); i++) { + output.writeMessage(1, cells_.get(i)); + } + if (dividerAfter_ != false) { + output.writeBool(2, dividerAfter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cells_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cells_.get(i)); + } + if (dividerAfter_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, dividerAfter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) obj; + + if (!getCellsList().equals(other.getCellsList())) return false; + if (getDividerAfter() != other.getDividerAfter()) 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 (getCellsCount() > 0) { + hash = (37 * hash) + CELLS_FIELD_NUMBER; + hash = (53 * hash) + getCellsList().hashCode(); + } + hash = (37 * hash) + DIVIDER_AFTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDividerAfter()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow 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.Intent.Message.TableCardRow 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; + } + /** + * + * + *
+       * Row of [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard].
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCellsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (cellsBuilder_ == null) { + cells_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + cellsBuilder_.clear(); + } + dividerAfter_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (cellsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cells_ = java.util.Collections.unmodifiableList(cells_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cells_ = cells_; + } else { + result.cells_ = cellsBuilder_.build(); + } + result.dividerAfter_ = dividerAfter_; + 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.v2beta1.Intent.Message.TableCardRow) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + .getDefaultInstance()) return this; + if (cellsBuilder_ == null) { + if (!other.cells_.isEmpty()) { + if (cells_.isEmpty()) { + cells_ = other.cells_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCellsIsMutable(); + cells_.addAll(other.cells_); + } + onChanged(); + } + } else { + if (!other.cells_.isEmpty()) { + if (cellsBuilder_.isEmpty()) { + cellsBuilder_.dispose(); + cellsBuilder_ = null; + cells_ = other.cells_; + bitField0_ = (bitField0_ & ~0x00000001); + cellsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCellsFieldBuilder() + : null; + } else { + cellsBuilder_.addAllMessages(other.cells_); + } + } + } + if (other.getDividerAfter() != false) { + setDividerAfter(other.getDividerAfter()); + } + 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.Intent.Message.TableCardRow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + cells_ = java.util.Collections.emptyList(); + + private void ensureCellsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cells_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell>(cells_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder> + cellsBuilder_; + + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public java.util.List + getCellsList() { + if (cellsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cells_); + } else { + return cellsBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public int getCellsCount() { + if (cellsBuilder_ == null) { + return cells_.size(); + } else { + return cellsBuilder_.getCount(); + } + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell getCells( + int index) { + if (cellsBuilder_ == null) { + return cells_.get(index); + } else { + return cellsBuilder_.getMessage(index); + } + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder setCells( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell value) { + if (cellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellsIsMutable(); + cells_.set(index, value); + onChanged(); + } else { + cellsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder setCells( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder + builderForValue) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.set(index, builderForValue.build()); + onChanged(); + } else { + cellsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder addCells( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell value) { + if (cellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellsIsMutable(); + cells_.add(value); + onChanged(); + } else { + cellsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder addCells( + int index, com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell value) { + if (cellsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellsIsMutable(); + cells_.add(index, value); + onChanged(); + } else { + cellsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder addCells( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder + builderForValue) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.add(builderForValue.build()); + onChanged(); + } else { + cellsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder addCells( + int index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder + builderForValue) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.add(index, builderForValue.build()); + onChanged(); + } else { + cellsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder addAllCells( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell> + values) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cells_); + onChanged(); + } else { + cellsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder clearCells() { + if (cellsBuilder_ == null) { + cells_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cellsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public Builder removeCells(int index) { + if (cellsBuilder_ == null) { + ensureCellsIsMutable(); + cells_.remove(index); + onChanged(); + } else { + cellsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder + getCellsBuilder(int index) { + return getCellsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder + getCellsOrBuilder(int index) { + if (cellsBuilder_ == null) { + return cells_.get(index); + } else { + return cellsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder> + getCellsOrBuilderList() { + if (cellsBuilder_ != null) { + return cellsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cells_); + } + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder + addCellsBuilder() { + return getCellsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder + addCellsBuilder(int index) { + return getCellsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + .getDefaultInstance()); + } + /** + * + * + *
+         * Optional. List of cells that make up this row.
+         * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell cells = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder> + getCellsBuilderList() { + return getCellsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder> + getCellsFieldBuilder() { + if (cellsBuilder_ == null) { + cellsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder>( + cells_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cells_ = null; + } + return cellsBuilder_; + } + + private boolean dividerAfter_; + /** + * + * + *
+         * Optional. Whether to add a visual divider after this row.
+         * 
+ * + * bool divider_after = 2; + */ + public boolean getDividerAfter() { + return dividerAfter_; + } + /** + * + * + *
+         * Optional. Whether to add a visual divider after this row.
+         * 
+ * + * bool divider_after = 2; + */ + public Builder setDividerAfter(boolean value) { + + dividerAfter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. Whether to add a visual divider after this row.
+         * 
+ * + * bool divider_after = 2; + */ + public Builder clearDividerAfter() { + + dividerAfter_ = 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.v2beta1.Intent.Message.TableCardRow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableCardRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableCardRow(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.Intent.Message.TableCardRow + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TableCardCellOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Text in this cell.
+       * 
+ * + * string text = 1; + */ + java.lang.String getText(); + /** + * + * + *
+       * Required. Text in this cell.
+       * 
+ * + * string text = 1; + */ + com.google.protobuf.ByteString getTextBytes(); + } + /** + * + * + *
+     * Cell of [TableCardRow][google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow].
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell} + */ + public static final class TableCardCell extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) + TableCardCellOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableCardCell.newBuilder() to construct. + private TableCardCell(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableCardCell() { + text_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableCardCell( + 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(); + + text_ = 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.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + private volatile java.lang.Object text_; + /** + * + * + *
+       * Required. Text in this cell.
+       * 
+ * + * string text = 1; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + 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(); + text_ = s; + return s; + } + } + /** + * + * + *
+       * Required. Text in this cell.
+       * 
+ * + * string text = 1; + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = 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 (!getTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell other = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) obj; + + if (!getText().equals(other.getText())) 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) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell 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.Intent.Message.TableCardCell 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; + } + /** + * + * + *
+       * Cell of [TableCardRow][google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow].
+       * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCellOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.class, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell.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(); + text_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.IntentProto + .internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell build() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell buildPartial() { + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell result = + new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell(this); + result.text_ = text_; + 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.Intent.Message.TableCardCell) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + .getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + 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.Intent.Message.TableCardCell parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
+         * Required. Text in this cell.
+         * 
+ * + * string text = 1; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. Text in this cell.
+         * 
+ * + * string text = 1; + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. Text in this cell.
+         * 
+ * + * string text = 1; + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + text_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Text in this cell.
+         * 
+ * + * string text = 1; + */ + public Builder clearText() { + + text_ = getDefaultInstance().getText(); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Text in this cell.
+         * 
+ * + * string text = 1; + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + text_ = 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.Intent.Message.TableCardCell) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell) + private static final com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell(); + } + + public static com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardCell + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableCardCell parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableCardCell(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.Intent.Message.TableCardCell + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int messageCase_ = 0; + private java.lang.Object message_; + + public enum MessageCase implements com.google.protobuf.Internal.EnumLite { + TEXT(1), + IMAGE(2), + QUICK_REPLIES(3), + CARD(4), + PAYLOAD(5), + SIMPLE_RESPONSES(7), + BASIC_CARD(8), + SUGGESTIONS(9), + LINK_OUT_SUGGESTION(10), + LIST_SELECT(11), + CAROUSEL_SELECT(12), + TELEPHONY_PLAY_AUDIO(13), + TELEPHONY_SYNTHESIZE_SPEECH(14), + TELEPHONY_TRANSFER_CALL(15), + RBM_TEXT(18), + RBM_STANDALONE_RICH_CARD(19), + RBM_CAROUSEL_RICH_CARD(20), + BROWSE_CAROUSEL_CARD(22), + TABLE_CARD(23), + MEDIA_CONTENT(24), + MESSAGE_NOT_SET(0); + private final int value; + + private MessageCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return IMAGE; + case 3: + return QUICK_REPLIES; + case 4: + return CARD; + case 5: + return PAYLOAD; + case 7: + return SIMPLE_RESPONSES; + case 8: + return BASIC_CARD; + case 9: + return SUGGESTIONS; + case 10: + return LINK_OUT_SUGGESTION; + case 11: + return LIST_SELECT; + case 12: + return CAROUSEL_SELECT; + case 13: + return TELEPHONY_PLAY_AUDIO; + case 14: + return TELEPHONY_SYNTHESIZE_SPEECH; + case 15: + return TELEPHONY_TRANSFER_CALL; + case 18: + return RBM_TEXT; + case 19: + return RBM_STANDALONE_RICH_CARD; + case 20: + return RBM_CAROUSEL_RICH_CARD; + case 22: + return BROWSE_CAROUSEL_CARD; + case 23: + return TABLE_CARD; + case 24: + return MEDIA_CONTENT; + case 0: + return MESSAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageCase getMessageCase() { + return MessageCase.forNumber(messageCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1; + */ + public boolean hasText() { + return messageCase_ == 1; + } + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Text getText() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + } + /** + * + * + *
+     * Returns a text response.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TextOrBuilder getTextOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Text) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Text.getDefaultInstance(); + } + + public static final int IMAGE_FIELD_NUMBER = 2; + /** + * + * + *
+     * Displays an image.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2; + */ + public boolean hasImage() { + return messageCase_ == 2; + } + /** + * + * + *
+     * Displays an image.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Image getImage() { + if (messageCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + /** + * + * + *
+     * Displays an image.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.ImageOrBuilder getImageOrBuilder() { + if (messageCase_ == 2) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Image) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Image.getDefaultInstance(); + } + + public static final int QUICK_REPLIES_FIELD_NUMBER = 3; + /** + * + * + *
+     * Displays quick replies.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3; + */ + public boolean hasQuickReplies() { + return messageCase_ == 3; + } + /** + * + * + *
+     * Displays quick replies.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies getQuickReplies() { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } + /** + * + * + *
+     * Displays quick replies.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickRepliesOrBuilder + getQuickRepliesOrBuilder() { + if (messageCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies.getDefaultInstance(); + } + + public static final int CARD_FIELD_NUMBER = 4; + /** + * + * + *
+     * Displays a card.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4; + */ + public boolean hasCard() { + return messageCase_ == 4; + } + /** + * + * + *
+     * Displays a card.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.Card getCard() { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + } + /** + * + * + *
+     * Displays a card.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.CardOrBuilder getCardOrBuilder() { + if (messageCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.Card) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.Card.getDefaultInstance(); + } + + public static final int PAYLOAD_FIELD_NUMBER = 5; + /** + * + * + *
+     * Returns a response containing a custom, platform-specific payload.
+     * See the Intent.Message.Platform type for a description of the
+     * structure that may be required for your platform.
+     * 
+ * + * .google.protobuf.Struct payload = 5; + */ public boolean hasPayload() { return messageCase_ == 5; } @@ -43422,6 +57060,150 @@ public boolean hasRbmCarouselRichCard() { .getDefaultInstance(); } + public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER = 22; + /** + * + * + *
+     * Browse carousel card for Actions on Google.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public boolean hasBrowseCarouselCard() { + return messageCase_ == 22; + } + /** + * + * + *
+     * Browse carousel card for Actions on Google.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + getBrowseCarouselCard() { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } + /** + * + * + *
+     * Browse carousel card for Actions on Google.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder + getBrowseCarouselCardOrBuilder() { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } + + public static final int TABLE_CARD_FIELD_NUMBER = 23; + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public boolean hasTableCard() { + return messageCase_ == 23; + } + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard getTableCard() { + if (messageCase_ == 23) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } + /** + * + * + *
+     * Table card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder + getTableCardOrBuilder() { + if (messageCase_ == 23) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } + + public static final int MEDIA_CONTENT_FIELD_NUMBER = 24; + /** + * + * + *
+     * The media content card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + */ + public boolean hasMediaContent() { + return messageCase_ == 24; + } + /** + * + * + *
+     * The media content card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent getMediaContent() { + if (messageCase_ == 24) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.getDefaultInstance(); + } + /** + * + * + *
+     * The media content card for Actions on Google.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder + getMediaContentOrBuilder() { + if (messageCase_ == 24) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.getDefaultInstance(); + } + public static final int PLATFORM_FIELD_NUMBER = 6; private int platform_; /** @@ -43540,6 +57322,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 20, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_); } + if (messageCase_ == 22) { + output.writeMessage( + 22, (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_); + } + if (messageCase_ == 23) { + output.writeMessage( + 23, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_); + } + if (messageCase_ == 24) { + output.writeMessage( + 24, (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_); + } unknownFields.writeTo(output); } @@ -43646,6 +57440,22 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 20, (com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard) message_); } + if (messageCase_ == 22) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_); + } + if (messageCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_); + } + if (messageCase_ == 24) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -43717,6 +57527,15 @@ public boolean equals(final java.lang.Object obj) { case 20: if (!getRbmCarouselRichCard().equals(other.getRbmCarouselRichCard())) return false; break; + case 22: + if (!getBrowseCarouselCard().equals(other.getBrowseCarouselCard())) return false; + break; + case 23: + if (!getTableCard().equals(other.getTableCard())) return false; + break; + case 24: + if (!getMediaContent().equals(other.getMediaContent())) return false; + break; case 0: default: } @@ -43802,6 +57621,18 @@ public int hashCode() { hash = (37 * hash) + RBM_CAROUSEL_RICH_CARD_FIELD_NUMBER; hash = (53 * hash) + getRbmCarouselRichCard().hashCode(); break; + case 22: + hash = (37 * hash) + BROWSE_CAROUSEL_CARD_FIELD_NUMBER; + hash = (53 * hash) + getBrowseCarouselCard().hashCode(); + break; + case 23: + hash = (37 * hash) + TABLE_CARD_FIELD_NUMBER; + hash = (53 * hash) + getTableCard().hashCode(); + break; + case 24: + hash = (37 * hash) + MEDIA_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getMediaContent().hashCode(); + break; case 0: default: } @@ -44102,6 +57933,27 @@ public com.google.cloud.dialogflow.v2beta1.Intent.Message buildPartial() { result.message_ = rbmCarouselRichCardBuilder_.build(); } } + if (messageCase_ == 22) { + if (browseCarouselCardBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = browseCarouselCardBuilder_.build(); + } + } + if (messageCase_ == 23) { + if (tableCardBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = tableCardBuilder_.build(); + } + } + if (messageCase_ == 24) { + if (mediaContentBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = mediaContentBuilder_.build(); + } + } result.platform_ = platform_; result.messageCase_ = messageCase_; onBuilt(); @@ -44245,6 +58097,21 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Intent.Message othe mergeRbmCarouselRichCard(other.getRbmCarouselRichCard()); break; } + case BROWSE_CAROUSEL_CARD: + { + mergeBrowseCarouselCard(other.getBrowseCarouselCard()); + break; + } + case TABLE_CARD: + { + mergeTableCard(other.getTableCard()); + break; + } + case MEDIA_CONTENT: + { + mergeMediaContent(other.getMediaContent()); + break; + } case MESSAGE_NOT_SET: { break; @@ -48062,6 +61929,671 @@ public Builder clearRbmCarouselRichCard() { return rbmCarouselRichCardBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder> + browseCarouselCardBuilder_; + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public boolean hasBrowseCarouselCard() { + return messageCase_ == 22; + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + getBrowseCarouselCard() { + if (browseCarouselCardBuilder_ == null) { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } else { + if (messageCase_ == 22) { + return browseCarouselCardBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public Builder setBrowseCarouselCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard value) { + if (browseCarouselCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + browseCarouselCardBuilder_.setMessage(value); + } + messageCase_ = 22; + return this; + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public Builder setBrowseCarouselCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder + builderForValue) { + if (browseCarouselCardBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + browseCarouselCardBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 22; + return this; + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public Builder mergeBrowseCarouselCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard value) { + if (browseCarouselCardBuilder_ == null) { + if (messageCase_ == 22 + && message_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) + message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 22) { + browseCarouselCardBuilder_.mergeFrom(value); + } + browseCarouselCardBuilder_.setMessage(value); + } + messageCase_ = 22; + return this; + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public Builder clearBrowseCarouselCard() { + if (browseCarouselCardBuilder_ == null) { + if (messageCase_ == 22) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 22) { + messageCase_ = 0; + message_ = null; + } + browseCarouselCardBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder + getBrowseCarouselCardBuilder() { + return getBrowseCarouselCardFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder + getBrowseCarouselCardOrBuilder() { + if ((messageCase_ == 22) && (browseCarouselCardBuilder_ != null)) { + return browseCarouselCardBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Browse carousel card for Actions on Google.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder> + getBrowseCarouselCardFieldBuilder() { + if (browseCarouselCardBuilder_ == null) { + if (!(messageCase_ == 22)) { + message_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard + .getDefaultInstance(); + } + browseCarouselCardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCardOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 22; + onChanged(); + ; + return browseCarouselCardBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder> + tableCardBuilder_; + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public boolean hasTableCard() { + return messageCase_ == 23; + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard getTableCard() { + if (tableCardBuilder_ == null) { + if (messageCase_ == 23) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } else { + if (messageCase_ == 23) { + return tableCardBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public Builder setTableCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard value) { + if (tableCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + tableCardBuilder_.setMessage(value); + } + messageCase_ = 23; + return this; + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public Builder setTableCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder builderForValue) { + if (tableCardBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + tableCardBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 23; + return this; + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public Builder mergeTableCard( + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard value) { + if (tableCardBuilder_ == null) { + if (messageCase_ == 23 + && message_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 23) { + tableCardBuilder_.mergeFrom(value); + } + tableCardBuilder_.setMessage(value); + } + messageCase_ = 23; + return this; + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public Builder clearTableCard() { + if (tableCardBuilder_ == null) { + if (messageCase_ == 23) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 23) { + messageCase_ = 0; + message_ = null; + } + tableCardBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder + getTableCardBuilder() { + return getTableCardFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder + getTableCardOrBuilder() { + if ((messageCase_ == 23) && (tableCardBuilder_ != null)) { + return tableCardBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 23) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } + } + /** + * + * + *
+       * Table card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.TableCard table_card = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder> + getTableCardFieldBuilder() { + if (tableCardBuilder_ == null) { + if (!(messageCase_ == 23)) { + message_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.getDefaultInstance(); + } + tableCardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCardOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.TableCard) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 23; + onChanged(); + ; + return tableCardBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder> + mediaContentBuilder_; + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public boolean hasMediaContent() { + return messageCase_ == 24; + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent getMediaContent() { + if (mediaContentBuilder_ == null) { + if (messageCase_ == 24) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance(); + } else { + if (messageCase_ == 24) { + return mediaContentBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance(); + } + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public Builder setMediaContent( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent value) { + if (mediaContentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + mediaContentBuilder_.setMessage(value); + } + messageCase_ = 24; + return this; + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public Builder setMediaContent( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder builderForValue) { + if (mediaContentBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + mediaContentBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 24; + return this; + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public Builder mergeMediaContent( + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent value) { + if (mediaContentBuilder_ == null) { + if (messageCase_ == 24 + && message_ + != com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.newBuilder( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 24) { + mediaContentBuilder_.mergeFrom(value); + } + mediaContentBuilder_.setMessage(value); + } + messageCase_ = 24; + return this; + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public Builder clearMediaContent() { + if (mediaContentBuilder_ == null) { + if (messageCase_ == 24) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 24) { + messageCase_ = 0; + message_ = null; + } + mediaContentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder + getMediaContentBuilder() { + return getMediaContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + public com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder + getMediaContentOrBuilder() { + if ((messageCase_ == 24) && (mediaContentBuilder_ != null)) { + return mediaContentBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 24) { + return (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_; + } + return com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance(); + } + } + /** + * + * + *
+       * The media content card for Actions on Google.
+       * 
+ * + * .google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent media_content = 24; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder> + getMediaContentFieldBuilder() { + if (mediaContentBuilder_ == null) { + if (!(messageCase_ == 24)) { + message_ = + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent + .getDefaultInstance(); + } + mediaContentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.Builder, + com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContentOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 24; + onChanged(); + ; + return mediaContentBuilder_; + } + private int platform_ = 0; /** * diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatch.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatch.java index 46f4f7f91..4a2823266 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatch.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatch.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatchOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatchOrBuilder.java index 1a15e751c..9f0b73260 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatchOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatchOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java index 662b3c8cc..919a7185d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java index b490aeba6..3130e7929 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java index b746c9484..2cbcdb0c8 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto @@ -160,6 +175,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -215,285 +266,351 @@ 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\0322google/cl" - + "oud/dialogflow/v2beta1/audio_config.prot" - + "o\032-google/cloud/dialogflow/v2beta1/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\032\027google/api/client.proto\"\2779\n\006" - + "Intent\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" - + "(\t\022K\n\rwebhook_state\030\006 \001(\01624.google.cloud" - + ".dialogflow.v2beta1.Intent.WebhookState\022" - + "\020\n\010priority\030\003 \001(\005\022\023\n\013is_fallback\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_co" - + "ntext_names\030\007 \003(\t\022\016\n\006events\030\010 \003(\t\022P\n\020tra" - + "ining_phrases\030\t \003(\01326.google.cloud.dialo" - + "gflow.v2beta1.Intent.TrainingPhrase\022\016\n\006a" - + "ction\030\n \001(\t\022A\n\017output_contexts\030\013 \003(\0132(.g" - + "oogle.cloud.dialogflow.v2beta1.Context\022\026" - + "\n\016reset_contexts\030\014 \001(\010\022E\n\nparameters\030\r \003" - + "(\01321.google.cloud.dialogflow.v2beta1.Int" - + "ent.Parameter\022A\n\010messages\030\016 \003(\0132/.google" + + "\034google/api/annotations.proto\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\0322google/cloud/dialogflow/v2bet" + + "a1/audio_config.proto\032-google/cloud/dial" + + "ogflow/v2beta1/context.proto\032#google/lon" + + "grunning/operations.proto\032\036google/protob" + + "uf/duration.proto\032\033google/protobuf/empty" + + ".proto\032 google/protobuf/field_mask.proto" + + "\032\034google/protobuf/struct.proto\032\027google/a" + + "pi/client.proto\"\365M\n\006Intent\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014display_name\030\002 \001(\t\022K\n\rwebhook_state\030" + + "\006 \001(\01624.google.cloud.dialogflow.v2beta1." + + "Intent.WebhookState\022\020\n\010priority\030\003 \001(\005\022\023\n" + + "\013is_fallback\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_interacti" + + "on\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(\0132" + + "6.google.cloud.dialogflow.v2beta1.Intent" + + ".TrainingPhrase\022\016\n\006action\030\n \001(\t\022A\n\017outpu" + + "t_contexts\030\013 \003(\0132(.google.cloud.dialogfl" + + "ow.v2beta1.Context\022\026\n\016reset_contexts\030\014 \001" + + "(\010\022E\n\nparameters\030\r \003(\01321.google.cloud.di" + + "alogflow.v2beta1.Intent.Parameter\022A\n\010mes" + + "sages\030\016 \003(\0132/.google.cloud.dialogflow.v2" + + "beta1.Intent.Message\022\\\n\032default_response" + + "_platforms\030\017 \003(\01628.google.cloud.dialogfl" + + "ow.v2beta1.Intent.Message.Platform\022!\n\031ro" + + "ot_followup_intent_name\030\020 \001(\t\022#\n\033parent_" + + "followup_intent_name\030\021 \001(\t\022X\n\024followup_i" + + "ntent_info\030\022 \003(\0132:.google.cloud.dialogfl" + + "ow.v2beta1.Intent.FollowupIntentInfo\032\335\002\n" + + "\016TrainingPhrase\022\014\n\004name\030\001 \001(\t\022I\n\004type\030\002 " + + "\001(\0162;.google.cloud.dialogflow.v2beta1.In" + + "tent.TrainingPhrase.Type\022J\n\005parts\030\003 \003(\0132" + + ";.google.cloud.dialogflow.v2beta1.Intent" + + ".TrainingPhrase.Part\022\031\n\021times_added_coun" + + "t\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_define" + + "d\030\004 \001(\010\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007EXAMPLE\020\001\022\020\n\010TEMPLATE\020\002\032\002\010\001\032\254\001\n\tParamet" + + "er\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\030" + + "entity_type_display_name\030\005 \001(\t\022\021\n\tmandat" + + "ory\030\006 \001(\010\022\017\n\007prompts\030\007 \003(\t\022\017\n\007is_list\030\010 " + + "\001(\010\032\246@\n\007Message\022D\n\004text\030\001 \001(\01324.google.c" + + "loud.dialogflow.v2beta1.Intent.Message.T" + + "extH\000\022F\n\005image\030\002 \001(\01325.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.ImageH\000\022U\n" + + "\rquick_replies\030\003 \001(\0132<.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.QuickRepli" + + "esH\000\022D\n\004card\030\004 \001(\01324.google.cloud.dialog" + + "flow.v2beta1.Intent.Message.CardH\000\022*\n\007pa" + + "yload\030\005 \001(\0132\027.google.protobuf.StructH\000\022[" + + "\n\020simple_responses\030\007 \001(\0132?.google.cloud." + + "dialogflow.v2beta1.Intent.Message.Simple" + + "ResponsesH\000\022O\n\nbasic_card\030\010 \001(\01329.google" + ".cloud.dialogflow.v2beta1.Intent.Message" - + "\022\\\n\032default_response_platforms\030\017 \003(\01628.g" - + "oogle.cloud.dialogflow.v2beta1.Intent.Me" - + "ssage.Platform\022!\n\031root_followup_intent_n" - + "ame\030\020 \001(\t\022#\n\033parent_followup_intent_name" - + "\030\021 \001(\t\022X\n\024followup_intent_info\030\022 \003(\0132:.g" - + "oogle.cloud.dialogflow.v2beta1.Intent.Fo" - + "llowupIntentInfo\032\335\002\n\016TrainingPhrase\022\014\n\004n" - + "ame\030\001 \001(\t\022I\n\004type\030\002 \001(\0162;.google.cloud.d" - + "ialogflow.v2beta1.Intent.TrainingPhrase." - + "Type\022J\n\005parts\030\003 \003(\0132;.google.cloud.dialo" - + "gflow.v2beta1.Intent.TrainingPhrase.Part" - + "\022\031\n\021times_added_count\030\004 \001(\005\032N\n\004Part\022\014\n\004t" - + "ext\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\020T" - + "YPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020\001\022\020\n\010TEMPLA" - + "TE\020\002\032\002\010\001\032\254\001\n\tParameter\022\014\n\004name\030\001 \001(\t\022\024\n\014" - + "display_name\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\025\n\rdef" - + "ault_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\007is_list\030\010 \001(\010\032\204-\n\007Message\022D\n\004t" - + "ext\030\001 \001(\01324.google.cloud.dialogflow.v2be" - + "ta1.Intent.Message.TextH\000\022F\n\005image\030\002 \001(\013" - + "25.google.cloud.dialogflow.v2beta1.Inten" - + "t.Message.ImageH\000\022U\n\rquick_replies\030\003 \001(\013" - + "2<.google.cloud.dialogflow.v2beta1.Inten" - + "t.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_responses\030\007" - + " \001(\0132?.google.cloud.dialogflow.v2beta1.I" - + "ntent.Message.SimpleResponsesH\000\022O\n\nbasic" - + "_card\030\010 \001(\01329.google.cloud.dialogflow.v2" - + "beta1.Intent.Message.BasicCardH\000\022R\n\013sugg" - + "estions\030\t \001(\0132;.google.cloud.dialogflow." - + "v2beta1.Intent.Message.SuggestionsH\000\022`\n\023" - + "link_out_suggestion\030\n \001(\0132A.google.cloud" - + ".dialogflow.v2beta1.Intent.Message.LinkO" - + "utSuggestionH\000\022Q\n\013list_select\030\013 \001(\0132:.go" - + "ogle.cloud.dialogflow.v2beta1.Intent.Mes" - + "sage.ListSelectH\000\022Y\n\017carousel_select\030\014 \001" - + "(\0132>.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message.CarouselSelectH\000\022b\n\024telephon" - + "y_play_audio\030\r \001(\0132B.google.cloud.dialog" - + "flow.v2beta1.Intent.Message.TelephonyPla" - + "yAudioH\000\022p\n\033telephony_synthesize_speech\030" - + "\016 \001(\0132I.google.cloud.dialogflow.v2beta1." - + "Intent.Message.TelephonySynthesizeSpeech" - + "H\000\022h\n\027telephony_transfer_call\030\017 \001(\0132E.go" - + "ogle.cloud.dialogflow.v2beta1.Intent.Mes" - + "sage.TelephonyTransferCallH\000\022K\n\010rbm_text" - + "\030\022 \001(\01327.google.cloud.dialogflow.v2beta1" - + ".Intent.Message.RbmTextH\000\022e\n\030rbm_standal" - + "one_rich_card\030\023 \001(\0132A.google.cloud.dialo" - + "gflow.v2beta1.Intent.Message.RbmStandalo" - + "neCardH\000\022a\n\026rbm_carousel_rich_card\030\024 \001(\013" - + "2?.google.cloud.dialogflow.v2beta1.Inten" - + "t.Message.RbmCarouselCardH\000\022J\n\010platform\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\022acc" - + "essibility_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\004" - + "Card\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;.goog" + + ".BasicCardH\000\022R\n\013suggestions\030\t \001(\0132;.goog" + "le.cloud.dialogflow.v2beta1.Intent.Messa" - + "ge.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\016te" - + "xt_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014disp" - + "lay_text\030\003 \001(\t\032k\n\017SimpleResponses\022X\n\020sim" - + "ple_responses\030\001 \003(\0132>.google.cloud.dialo" - + "gflow.v2beta1.Intent.Message.SimpleRespo" - + "nse\032\376\002\n\tBasicCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subt" - + "itle\030\002 \001(\t\022\026\n\016formatted_text\030\003 \001(\t\022D\n\005im" - + "age\030\004 \001(\01325.google.cloud.dialogflow.v2be" - + "ta1.Intent.Message.Image\022Q\n\007buttons\030\005 \003(" - + "\0132@.google.cloud.dialogflow.v2beta1.Inte" - + "nt.Message.BasicCard.Button\032\236\001\n\006Button\022\r" - + "\n\005title\030\001 \001(\t\022g\n\017open_uri_action\030\002 \001(\0132N" + + "ge.SuggestionsH\000\022`\n\023link_out_suggestion\030" + + "\n \001(\0132A.google.cloud.dialogflow.v2beta1." + + "Intent.Message.LinkOutSuggestionH\000\022Q\n\013li" + + "st_select\030\013 \001(\0132:.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.ListSelectH\000\022Y\n" + + "\017carousel_select\030\014 \001(\0132>.google.cloud.di" + + "alogflow.v2beta1.Intent.Message.Carousel" + + "SelectH\000\022b\n\024telephony_play_audio\030\r \001(\0132B" + ".google.cloud.dialogflow.v2beta1.Intent." - + "Message.BasicCard.Button.OpenUriAction\032\034" - + "\n\rOpenUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\nSuggesti" - + "on\022\r\n\005title\030\001 \001(\t\032^\n\013Suggestions\022O\n\013sugg" - + "estions\030\001 \003(\0132:.google.cloud.dialogflow." - + "v2beta1.Intent.Message.Suggestion\032:\n\021Lin" - + "kOutSuggestion\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\005items\030\002 \003(\0132?.google.cloud.dialog" - + "flow.v2beta1.Intent.Message.ListSelect.I" - + "tem\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132>.google.clou" - + "d.dialogflow.v2beta1.Intent.Message.Sele" - + "ctItemInfo\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.dia" - + "logflow.v2beta1.Intent.Message.Image\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\004info\030\001 \001" - + "(\0132>.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message.SelectItemInfo\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.v2beta1.Intent.M" - + "essage.Image\032/\n\016SelectItemInfo\022\013\n\003key\030\001 " - + "\001(\t\022\020\n\010synonyms\030\002 \003(\t\032\'\n\022TelephonyPlayAu" - + "dio\022\021\n\taudio_uri\030\001 \001(\t\032E\n\031TelephonySynth" - + "esizeSpeech\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(" - + "\tH\000B\010\n\006source\032-\n\025TelephonyTransferCall\022\024" - + "\n\014phone_number\030\001 \001(\t\032n\n\007RbmText\022\014\n\004text\030" - + "\001 \001(\t\022U\n\016rbm_suggestion\030\002 \003(\0132=.google.c" - + "loud.dialogflow.v2beta1.Intent.Message.R" - + "bmSuggestion\032\207\002\n\017RbmCarouselCard\022]\n\ncard" - + "_width\030\001 \001(\0162I.google.cloud.dialogflow.v" - + "2beta1.Intent.Message.RbmCarouselCard.Ca" - + "rdWidth\022U\n\rcard_contents\030\002 \003(\0132>.google." - + "cloud.dialogflow.v2beta1.Intent.Message." - + "RbmCardContent\">\n\tCardWidth\022\032\n\026CARD_WIDT" - + "H_UNSPECIFIED\020\000\022\t\n\005SMALL\020\001\022\n\n\006MEDIUM\020\002\032\202" - + "\004\n\021RbmStandaloneCard\022k\n\020card_orientation" - + "\030\001 \001(\0162Q.google.cloud.dialogflow.v2beta1" - + ".Intent.Message.RbmStandaloneCard.CardOr" - + "ientation\022|\n\031thumbnail_image_alignment\030\002" - + " \001(\0162Y.google.cloud.dialogflow.v2beta1.I" - + "ntent.Message.RbmStandaloneCard.Thumbnai" - + "lImageAlignment\022T\n\014card_content\030\003 \001(\0132>." + + "Message.TelephonyPlayAudioH\000\022p\n\033telephon" + + "y_synthesize_speech\030\016 \001(\0132I.google.cloud" + + ".dialogflow.v2beta1.Intent.Message.Telep" + + "honySynthesizeSpeechH\000\022h\n\027telephony_tran" + + "sfer_call\030\017 \001(\0132E.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.TelephonyTransf" + + "erCallH\000\022K\n\010rbm_text\030\022 \001(\01327.google.clou" + + "d.dialogflow.v2beta1.Intent.Message.RbmT" + + "extH\000\022e\n\030rbm_standalone_rich_card\030\023 \001(\0132" + + "A.google.cloud.dialogflow.v2beta1.Intent" + + ".Message.RbmStandaloneCardH\000\022a\n\026rbm_caro" + + "usel_rich_card\030\024 \001(\0132?.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.RbmCarouse" + + "lCardH\000\022b\n\024browse_carousel_card\030\026 \001(\0132B." + "google.cloud.dialogflow.v2beta1.Intent.M" - + "essage.RbmCardContent\"Q\n\017CardOrientation" - + "\022 \n\034CARD_ORIENTATION_UNSPECIFIED\020\000\022\016\n\nHO" - + "RIZONTAL\020\001\022\014\n\010VERTICAL\020\002\"Y\n\027ThumbnailIma" - + "geAlignment\022)\n%THUMBNAIL_IMAGE_ALIGNMENT" - + "_UNSPECIFIED\020\000\022\010\n\004LEFT\020\001\022\t\n\005RIGHT\020\002\032\271\003\n\016" - + "RbmCardContent\022\r\n\005title\030\001 \001(\t\022\023\n\013descrip" - + "tion\030\002 \001(\t\022V\n\005media\030\003 \001(\0132G.google.cloud" - + ".dialogflow.v2beta1.Intent.Message.RbmCa" - + "rdContent.RbmMedia\022R\n\013suggestions\030\004 \003(\0132" - + "=.google.cloud.dialogflow.v2beta1.Intent" - + ".Message.RbmSuggestion\032\326\001\n\010RbmMedia\022\020\n\010f" - + "ile_uri\030\001 \001(\t\022\025\n\rthumbnail_uri\030\002 \001(\t\022^\n\006" - + "height\030\003 \001(\0162N.google.cloud.dialogflow.v" - + "2beta1.Intent.Message.RbmCardContent.Rbm" - + "Media.Height\"A\n\006Height\022\026\n\022HEIGHT_UNSPECI" - + "FIED\020\000\022\t\n\005SHORT\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004TALL\020\003\032" - + "\307\001\n\rRbmSuggestion\022R\n\005reply\030\001 \001(\0132A.googl" - + "e.cloud.dialogflow.v2beta1.Intent.Messag" - + "e.RbmSuggestedReplyH\000\022T\n\006action\030\002 \001(\0132B." + + "essage.BrowseCarouselCardH\000\022O\n\ntable_car" + + "d\030\027 \001(\01329.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.TableCardH\000\022U\n\rmedia_co" + + "ntent\030\030 \001(\0132<.google.cloud.dialogflow.v2" + + "beta1.Intent.Message.MediaContentH\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\032n\n\007RbmText\022" + + "\014\n\004text\030\001 \001(\t\022U\n\016rbm_suggestion\030\002 \003(\0132=." + "google.cloud.dialogflow.v2beta1.Intent.M" - + "essage.RbmSuggestedActionH\000B\014\n\nsuggestio" - + "n\0328\n\021RbmSuggestedReply\022\014\n\004text\030\001 \001(\t\022\025\n\r" - + "postback_data\030\002 \001(\t\032\233\004\n\022RbmSuggestedActi" - + "on\022\014\n\004text\030\001 \001(\t\022\025\n\rpostback_data\030\002 \001(\t\022" - + "i\n\004dial\030\003 \001(\0132Y.google.cloud.dialogflow." - + "v2beta1.Intent.Message.RbmSuggestedActio" - + "n.RbmSuggestedActionDialH\000\022p\n\010open_url\030\004" - + " \001(\0132\\.google.cloud.dialogflow.v2beta1.I" - + "ntent.Message.RbmSuggestedAction.RbmSugg" - + "estedActionOpenUriH\000\022|\n\016share_location\030\005" - + " \001(\0132b.google.cloud.dialogflow.v2beta1.I" - + "ntent.Message.RbmSuggestedAction.RbmSugg" - + "estedActionShareLocationH\000\032.\n\026RbmSuggest" - + "edActionDial\022\024\n\014phone_number\030\001 \001(\t\032(\n\031Rb" - + "mSuggestedActionOpenUri\022\013\n\003uri\030\001 \001(\t\032!\n\037" - + "RbmSuggestedActionShareLocationB\010\n\006actio" - + "n\"\257\001\n\010Platform\022\030\n\024PLATFORM_UNSPECIFIED\020\000" - + "\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRAM\020\003\022" - + "\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIBER\020\007" - + "\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\r\n\tTELEPHONY\020\n\022\023" - + "\n\017GOOGLE_HANGOUTS\020\013B\t\n\007message\032W\n\022Follow" - + "upIntentInfo\022\034\n\024followup_intent_name\030\001 \001" - + "(\t\022#\n\033parent_followup_intent_name\030\002 \001(\t\"" - + "t\n\014WebhookState\022\035\n\031WEBHOOK_STATE_UNSPECI" - + "FIED\020\000\022\031\n\025WEBHOOK_STATE_ENABLED\020\001\022*\n&WEB" - + "HOOK_STATE_ENABLED_FOR_SLOT_FILLING\020\002\"\244\001" - + "\n\022ListIntentsRequest\022\016\n\006parent\030\001 \001(\t\022\025\n\r" - + "language_code\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\016" - + "2+.google.cloud.dialogflow.v2beta1.Inten" - + "tView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005" - + " \001(\t\"h\n\023ListIntentsResponse\0228\n\007intents\030\001" + + "essage.RbmSuggestion\032\207\002\n\017RbmCarouselCard" + + "\022]\n\ncard_width\030\001 \001(\0162I.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.RbmCarouse" + + "lCard.CardWidth\022U\n\rcard_contents\030\002 \003(\0132>" + + ".google.cloud.dialogflow.v2beta1.Intent." + + "Message.RbmCardContent\">\n\tCardWidth\022\032\n\026C" + + "ARD_WIDTH_UNSPECIFIED\020\000\022\t\n\005SMALL\020\001\022\n\n\006ME" + + "DIUM\020\002\032\202\004\n\021RbmStandaloneCard\022k\n\020card_ori" + + "entation\030\001 \001(\0162Q.google.cloud.dialogflow" + + ".v2beta1.Intent.Message.RbmStandaloneCar" + + "d.CardOrientation\022|\n\031thumbnail_image_ali" + + "gnment\030\002 \001(\0162Y.google.cloud.dialogflow.v" + + "2beta1.Intent.Message.RbmStandaloneCard." + + "ThumbnailImageAlignment\022T\n\014card_content\030" + + "\003 \001(\0132>.google.cloud.dialogflow.v2beta1." + + "Intent.Message.RbmCardContent\"Q\n\017CardOri" + + "entation\022 \n\034CARD_ORIENTATION_UNSPECIFIED" + + "\020\000\022\016\n\nHORIZONTAL\020\001\022\014\n\010VERTICAL\020\002\"Y\n\027Thum" + + "bnailImageAlignment\022)\n%THUMBNAIL_IMAGE_A" + + "LIGNMENT_UNSPECIFIED\020\000\022\010\n\004LEFT\020\001\022\t\n\005RIGH" + + "T\020\002\032\271\003\n\016RbmCardContent\022\r\n\005title\030\001 \001(\t\022\023\n" + + "\013description\030\002 \001(\t\022V\n\005media\030\003 \001(\0132G.goog" + + "le.cloud.dialogflow.v2beta1.Intent.Messa" + + "ge.RbmCardContent.RbmMedia\022R\n\013suggestion" + + "s\030\004 \003(\0132=.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.RbmSuggestion\032\326\001\n\010RbmMe" + + "dia\022\020\n\010file_uri\030\001 \001(\t\022\025\n\rthumbnail_uri\030\002" + + " \001(\t\022^\n\006height\030\003 \001(\0162N.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.RbmCardCon" + + "tent.RbmMedia.Height\"A\n\006Height\022\026\n\022HEIGHT" + + "_UNSPECIFIED\020\000\022\t\n\005SHORT\020\001\022\n\n\006MEDIUM\020\002\022\010\n" + + "\004TALL\020\003\032\307\001\n\rRbmSuggestion\022R\n\005reply\030\001 \001(\013" + + "2A.google.cloud.dialogflow.v2beta1.Inten" + + "t.Message.RbmSuggestedReplyH\000\022T\n\006action\030" + + "\002 \001(\0132B.google.cloud.dialogflow.v2beta1." + + "Intent.Message.RbmSuggestedActionH\000B\014\n\ns" + + "uggestion\0328\n\021RbmSuggestedReply\022\014\n\004text\030\001" + + " \001(\t\022\025\n\rpostback_data\030\002 \001(\t\032\233\004\n\022RbmSugge" + + "stedAction\022\014\n\004text\030\001 \001(\t\022\025\n\rpostback_dat" + + "a\030\002 \001(\t\022i\n\004dial\030\003 \001(\0132Y.google.cloud.dia" + + "logflow.v2beta1.Intent.Message.RbmSugges" + + "tedAction.RbmSuggestedActionDialH\000\022p\n\010op" + + "en_url\030\004 \001(\0132\\.google.cloud.dialogflow.v" + + "2beta1.Intent.Message.RbmSuggestedAction" + + ".RbmSuggestedActionOpenUriH\000\022|\n\016share_lo" + + "cation\030\005 \001(\0132b.google.cloud.dialogflow.v" + + "2beta1.Intent.Message.RbmSuggestedAction" + + ".RbmSuggestedActionShareLocationH\000\032.\n\026Rb" + + "mSuggestedActionDial\022\024\n\014phone_number\030\001 \001" + + "(\t\032(\n\031RbmSuggestedActionOpenUri\022\013\n\003uri\030\001" + + " \001(\t\032!\n\037RbmSuggestedActionShareLocationB" + + "\010\n\006action\032\216\004\n\014MediaContent\022b\n\nmedia_type" + + "\030\001 \001(\0162N.google.cloud.dialogflow.v2beta1" + + ".Intent.Message.MediaContent.ResponseMed" + + "iaType\022g\n\rmedia_objects\030\002 \003(\0132P.google.c" + + "loud.dialogflow.v2beta1.Intent.Message.M" + + "ediaContent.ResponseMediaObject\032\353\001\n\023Resp" + + "onseMediaObject\022\014\n\004name\030\001 \001(\t\022\023\n\013descrip" + + "tion\030\002 \001(\t\022L\n\013large_image\030\003 \001(\01325.google" + + ".cloud.dialogflow.v2beta1.Intent.Message" + + ".ImageH\000\022E\n\004icon\030\004 \001(\01325.google.cloud.di" + + "alogflow.v2beta1.Intent.Message.ImageH\000\022" + + "\023\n\013content_url\030\005 \001(\tB\007\n\005image\"C\n\021Respons" + + "eMediaType\022#\n\037RESPONSE_MEDIA_TYPE_UNSPEC" + + "IFIED\020\000\022\t\n\005AUDIO\020\001\032\200\007\n\022BrowseCarouselCar" + + "d\022h\n\005items\030\001 \003(\0132Y.google.cloud.dialogfl" + + "ow.v2beta1.Intent.Message.BrowseCarousel" + + "Card.BrowseCarouselCardItem\022u\n\025image_dis" + + "play_options\030\002 \001(\0162V.google.cloud.dialog" + + "flow.v2beta1.Intent.Message.BrowseCarous" + + "elCard.ImageDisplayOptions\032\220\004\n\026BrowseCar" + + "ouselCardItem\022\200\001\n\017open_uri_action\030\001 \001(\0132" + + "g.google.cloud.dialogflow.v2beta1.Intent" + + ".Message.BrowseCarouselCard.BrowseCarous" + + "elCardItem.OpenUrlAction\022\r\n\005title\030\002 \001(\t\022" + + "\023\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.go" + + "ogle.cloud.dialogflow.v2beta1.Intent.Mes" + + "sage.Image\022\016\n\006footer\030\005 \001(\t\032\370\001\n\rOpenUrlAc" + + "tion\022\013\n\003url\030\001 \001(\t\022\212\001\n\rurl_type_hint\030\003 \001(" + + "\0162s.google.cloud.dialogflow.v2beta1.Inte" + + "nt.Message.BrowseCarouselCard.BrowseCaro" + + "uselCardItem.OpenUrlAction.UrlTypeHint\"M" + + "\n\013UrlTypeHint\022\035\n\031URL_TYPE_HINT_UNSPECIFI" + + "ED\020\000\022\016\n\nAMP_ACTION\020\001\022\017\n\013AMP_CONTENT\020\002\"v\n" + + "\023ImageDisplayOptions\022%\n!IMAGE_DISPLAY_OP" + + "TIONS_UNSPECIFIED\020\000\022\010\n\004GRAY\020\001\022\t\n\005WHITE\020\002" + + "\022\013\n\007CROPPED\020\003\022\026\n\022BLURRED_BACKGROUND\020\004\032\356\002" + + "\n\tTableCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030\002" + + " \001(\t\022D\n\005image\030\003 \001(\01325.google.cloud.dialo" + + "gflow.v2beta1.Intent.Message.Image\022[\n\021co" + + "lumn_properties\030\004 \003(\0132@.google.cloud.dia" + + "logflow.v2beta1.Intent.Message.ColumnPro" + + "perties\022J\n\004rows\030\005 \003(\0132<.google.cloud.dia" + + "logflow.v2beta1.Intent.Message.TableCard" + + "Row\022Q\n\007buttons\030\006 \003(\0132@.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.BasicCard." + + "Button\032\372\001\n\020ColumnProperties\022\016\n\006header\030\001 " + + "\001(\t\022r\n\024horizontal_alignment\030\002 \001(\0162T.goog" + + "le.cloud.dialogflow.v2beta1.Intent.Messa" + + "ge.ColumnProperties.HorizontalAlignment\"" + + "b\n\023HorizontalAlignment\022$\n HORIZONTAL_ALI" + + "GNMENT_UNSPECIFIED\020\000\022\013\n\007LEADING\020\001\022\n\n\006CEN" + + "TER\020\002\022\014\n\010TRAILING\020\003\032s\n\014TableCardRow\022L\n\005c" + + "ells\030\001 \003(\0132=.google.cloud.dialogflow.v2b" + + "eta1.Intent.Message.TableCardCell\022\025\n\rdiv" + + "ider_after\030\002 \001(\010\032\035\n\rTableCardCell\022\014\n\004tex" + + "t\030\001 \001(\t\"\257\001\n\010Platform\022\030\n\024PLATFORM_UNSPECI" + + "FIED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEG" + + "RAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005V" + + "IBER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\r\n\tTELEPHO" + + "NY\020\n\022\023\n\017GOOGLE_HANGOUTS\020\013B\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:\221\001\352A\215\001\n dialogflow.googleapis.com/In" + + "tent\022)projects/{project}/agent/intents/{" + + "intent}\022>projects/{project}/locations/{l" + + "ocation}/agent/intents/{intent}\"\244\001\n\022List" + + "IntentsRequest\022\016\n\006parent\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\022" + + "\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"h" + + "\n\023ListIntentsResponse\0228\n\007intents\030\001 \003(\0132\'" + + ".google.cloud.dialogflow.v2beta1.Intent\022" + + "\027\n\017next_page_token\030\002 \001(\t\"y\n\020GetIntentReq" + + "uest\022\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(" + + "\t\022@\n\013intent_view\030\003 \001(\0162+.google.cloud.di" + + "alogflow.v2beta1.IntentView\"\267\001\n\023CreateIn" + + "tentRequest\022\016\n\006parent\030\001 \001(\t\0227\n\006intent\030\002 " + + "\001(\0132\'.google.cloud.dialogflow.v2beta1.In" + + "tent\022\025\n\rlanguage_code\030\003 \001(\t\022@\n\013intent_vi" + + "ew\030\004 \001(\0162+.google.cloud.dialogflow.v2bet" + + "a1.IntentView\"\330\001\n\023UpdateIntentRequest\0227\n" + + "\006intent\030\001 \001(\0132\'.google.cloud.dialogflow." + + "v2beta1.Intent\022\025\n\rlanguage_code\030\002 \001(\t\022/\n" + + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie" + + "ldMask\022@\n\013intent_view\030\004 \001(\0162+.google.clo" + + "ud.dialogflow.v2beta1.IntentView\"#\n\023Dele" + + "teIntentRequest\022\014\n\004name\030\001 \001(\t\"\256\002\n\031BatchU" + + "pdateIntentsRequest\022\016\n\006parent\030\001 \001(\t\022\032\n\020i" + + "ntent_batch_uri\030\002 \001(\tH\000\022K\n\023intent_batch_" + + "inline\030\003 \001(\0132,.google.cloud.dialogflow.v" + + "2beta1.IntentBatchH\000\022\025\n\rlanguage_code\030\004 " + + "\001(\t\022/\n\013update_mask\030\005 \001(\0132\032.google.protob" + + "uf.FieldMask\022@\n\013intent_view\030\006 \001(\0162+.goog" + + "le.cloud.dialogflow.v2beta1.IntentViewB\016" + + "\n\014intent_batch\"V\n\032BatchUpdateIntentsResp" + + "onse\0228\n\007intents\030\001 \003(\0132\'.google.cloud.dia" + + "logflow.v2beta1.Intent\"e\n\031BatchDeleteInt" + + "entsRequest\022\016\n\006parent\030\001 \001(\t\0228\n\007intents\030\002" + " \003(\0132\'.google.cloud.dialogflow.v2beta1.I" - + "ntent\022\027\n\017next_page_token\030\002 \001(\t\"y\n\020GetInt" - + "entRequest\022\014\n\004name\030\001 \001(\t\022\025\n\rlanguage_cod" - + "e\030\002 \001(\t\022@\n\013intent_view\030\003 \001(\0162+.google.cl" - + "oud.dialogflow.v2beta1.IntentView\"\267\001\n\023Cr" - + "eateIntentRequest\022\016\n\006parent\030\001 \001(\t\0227\n\006int" - + "ent\030\002 \001(\0132\'.google.cloud.dialogflow.v2be" - + "ta1.Intent\022\025\n\rlanguage_code\030\003 \001(\t\022@\n\013int" - + "ent_view\030\004 \001(\0162+.google.cloud.dialogflow" - + ".v2beta1.IntentView\"\330\001\n\023UpdateIntentRequ" - + "est\0227\n\006intent\030\001 \001(\0132\'.google.cloud.dialo" - + "gflow.v2beta1.Intent\022\025\n\rlanguage_code\030\002 " - + "\001(\t\022/\n\013update_mask\030\003 \001(\0132\032.google.protob" - + "uf.FieldMask\022@\n\013intent_view\030\004 \001(\0162+.goog" - + "le.cloud.dialogflow.v2beta1.IntentView\"#" - + "\n\023DeleteIntentRequest\022\014\n\004name\030\001 \001(\t\"\256\002\n\031" - + "BatchUpdateIntentsRequest\022\016\n\006parent\030\001 \001(" - + "\t\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023intent_" - + "batch_inline\030\003 \001(\0132,.google.cloud.dialog" - + "flow.v2beta1.IntentBatchH\000\022\025\n\rlanguage_c" - + "ode\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.v2beta1.Intent" - + "ViewB\016\n\014intent_batch\"V\n\032BatchUpdateInten" - + "tsResponse\0228\n\007intents\030\001 \003(\0132\'.google.clo" - + "ud.dialogflow.v2beta1.Intent\"e\n\031BatchDel" - + "eteIntentsRequest\022\016\n\006parent\030\001 \001(\t\0228\n\007int" - + "ents\030\002 \003(\0132\'.google.cloud.dialogflow.v2b" - + "eta1.Intent\"G\n\013IntentBatch\0228\n\007intents\030\001 " - + "\003(\0132\'.google.cloud.dialogflow.v2beta1.In" - + "tent*?\n\nIntentView\022\033\n\027INTENT_VIEW_UNSPEC" - + "IFIED\020\000\022\024\n\020INTENT_VIEW_FULL\020\0012\375\r\n\007Intent" - + "s\022\346\001\n\013ListIntents\0223.google.cloud.dialogf" - + "low.v2beta1.ListIntentsRequest\0324.google." - + "cloud.dialogflow.v2beta1.ListIntentsResp" - + "onse\"l\202\323\344\223\002f\022*/v2beta1/{parent=projects/" - + "*/agent}/intentsZ8\0226/v2beta1/{parent=pro" - + "jects/*/locations/*/agent}/intents\022\325\001\n\tG" - + "etIntent\0221.google.cloud.dialogflow.v2bet" - + "a1.GetIntentRequest\032\'.google.cloud.dialo" - + "gflow.v2beta1.Intent\"l\202\323\344\223\002f\022*/v2beta1/{" - + "name=projects/*/agent/intents/*}Z8\0226/v2b" - + "eta1/{name=projects/*/locations/*/agent/" - + "intents/*}\022\353\001\n\014CreateIntent\0224.google.clo" - + "ud.dialogflow.v2beta1.CreateIntentReques" - + "t\032\'.google.cloud.dialogflow.v2beta1.Inte" - + "nt\"|\202\323\344\223\002v\"*/v2beta1/{parent=projects/*/" - + "agent}/intents:\006intentZ@\"6/v2beta1/{pare" - + "nt=projects/*/locations/*/agent}/intents" - + ":\006intent\022\373\001\n\014UpdateIntent\0224.google.cloud" - + ".dialogflow.v2beta1.UpdateIntentRequest\032" - + "\'.google.cloud.dialogflow.v2beta1.Intent" - + "\"\213\001\202\323\344\223\002\204\00121/v2beta1/{intent.name=projec" - + "ts/*/agent/intents/*}:\006intentZG2=/v2beta" - + "1/{intent.name=projects/*/locations/*/ag" - + "ent/intents/*}:\006intent\022\312\001\n\014DeleteIntent\022" - + "4.google.cloud.dialogflow.v2beta1.Delete" - + "IntentRequest\032\026.google.protobuf.Empty\"l\202" - + "\323\344\223\002f**/v2beta1/{name=projects/*/agent/i" - + "ntents/*}Z8*6/v2beta1/{name=projects/*/l" - + "ocations/*/agent/intents/*}\022\375\001\n\022BatchUpd" - + "ateIntents\022:.google.cloud.dialogflow.v2b" - + "eta1.BatchUpdateIntentsRequest\032\035.google." - + "longrunning.Operation\"\213\001\202\323\344\223\002\204\001\"6/v2beta" - + "1/{parent=projects/*/agent}/intents:batc" - + "hUpdate:\001*ZG\"B/v2beta1/{parent=projects/" - + "*/locations/*/agent}/intents:batchUpdate" - + ":\001*\022\375\001\n\022BatchDeleteIntents\022:.google.clou" - + "d.dialogflow.v2beta1.BatchDeleteIntentsR" - + "equest\032\035.google.longrunning.Operation\"\213\001" - + "\202\323\344\223\002\204\001\"6/v2beta1/{parent=projects/*/age" - + "nt}/intents:batchDelete:\001*ZG\"B/v2beta1/{" - + "parent=projects/*/locations/*/agent}/int" - + "ents:batchDelete:\001*\032x\312A\031dialogflow.googl" - + "eapis.com\322AYhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/dialogflowB\251\001\n#com.google.clo" - + "ud.dialogflow.v2beta1B\013IntentProtoP\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" + + "ntent\"G\n\013IntentBatch\0228\n\007intents\030\001 \003(\0132\'." + + "google.cloud.dialogflow.v2beta1.Intent*?" + + "\n\nIntentView\022\033\n\027INTENT_VIEW_UNSPECIFIED\020" + + "\000\022\024\n\020INTENT_VIEW_FULL\020\0012\375\r\n\007Intents\022\346\001\n\013" + + "ListIntents\0223.google.cloud.dialogflow.v2" + + "beta1.ListIntentsRequest\0324.google.cloud." + + "dialogflow.v2beta1.ListIntentsResponse\"l" + + "\202\323\344\223\002f\022*/v2beta1/{parent=projects/*/agen" + + "t}/intentsZ8\0226/v2beta1/{parent=projects/" + + "*/locations/*/agent}/intents\022\325\001\n\tGetInte" + + "nt\0221.google.cloud.dialogflow.v2beta1.Get" + + "IntentRequest\032\'.google.cloud.dialogflow." + + "v2beta1.Intent\"l\202\323\344\223\002f\022*/v2beta1/{name=p" + + "rojects/*/agent/intents/*}Z8\0226/v2beta1/{" + + "name=projects/*/locations/*/agent/intent" + + "s/*}\022\353\001\n\014CreateIntent\0224.google.cloud.dia" + + "logflow.v2beta1.CreateIntentRequest\032\'.go" + + "ogle.cloud.dialogflow.v2beta1.Intent\"|\202\323" + + "\344\223\002v\"*/v2beta1/{parent=projects/*/agent}" + + "/intents:\006intentZ@\"6/v2beta1/{parent=pro" + + "jects/*/locations/*/agent}/intents:\006inte" + + "nt\022\373\001\n\014UpdateIntent\0224.google.cloud.dialo" + + "gflow.v2beta1.UpdateIntentRequest\032\'.goog" + + "le.cloud.dialogflow.v2beta1.Intent\"\213\001\202\323\344" + + "\223\002\204\00121/v2beta1/{intent.name=projects/*/a" + + "gent/intents/*}:\006intentZG2=/v2beta1/{int" + + "ent.name=projects/*/locations/*/agent/in" + + "tents/*}:\006intent\022\312\001\n\014DeleteIntent\0224.goog" + + "le.cloud.dialogflow.v2beta1.DeleteIntent" + + "Request\032\026.google.protobuf.Empty\"l\202\323\344\223\002f*" + + "*/v2beta1/{name=projects/*/agent/intents" + + "/*}Z8*6/v2beta1/{name=projects/*/locatio" + + "ns/*/agent/intents/*}\022\375\001\n\022BatchUpdateInt" + + "ents\022:.google.cloud.dialogflow.v2beta1.B" + + "atchUpdateIntentsRequest\032\035.google.longru" + + "nning.Operation\"\213\001\202\323\344\223\002\204\001\"6/v2beta1/{par" + + "ent=projects/*/agent}/intents:batchUpdat" + + "e:\001*ZG\"B/v2beta1/{parent=projects/*/loca" + + "tions/*/agent}/intents:batchUpdate:\001*\022\375\001" + + "\n\022BatchDeleteIntents\022:.google.cloud.dial" + + "ogflow.v2beta1.BatchDeleteIntentsRequest" + + "\032\035.google.longrunning.Operation\"\213\001\202\323\344\223\002\204" + + "\001\"6/v2beta1/{parent=projects/*/agent}/in" + + "tents:batchDelete:\001*ZG\"B/v2beta1/{parent" + + "=projects/*/locations/*/agent}/intents:b" + + "atchDelete:\001*\032x\312A\031dialogflow.googleapis." + + "com\322AYhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/dialogflowB\251\001\n#com.google.cloud.dia" + + "logflow.v2beta1B\013IntentProtoP\001ZIgoogle.g" + + "olang.org/genproto/googleapis/cloud/dial" + + "ogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Goog" + + "le.Cloud.Dialogflow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -507,6 +624,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -600,6 +719,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "RbmText", "RbmStandaloneRichCard", "RbmCarouselRichCard", + "BrowseCarouselCard", + "TableCard", + "MediaContent", "Platform", "Message", }); @@ -921,6 +1043,96 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_RbmSuggestedAction_RbmSuggestedActionShareLocation_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor + .getNestedTypes() + .get(23); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor, + new java.lang.String[] { + "MediaType", "MediaObjects", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_MediaContent_ResponseMediaObject_descriptor, + new java.lang.String[] { + "Name", "Description", "LargeImage", "Icon", "ContentUrl", "Image", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor + .getNestedTypes() + .get(24); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor, + new java.lang.String[] { + "Items", "ImageDisplayOptions", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor, + new java.lang.String[] { + "OpenUriAction", "Title", "Description", "Image", "Footer", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_descriptor, + new java.lang.String[] { + "Url", "UrlTypeHint", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor + .getNestedTypes() + .get(25); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCard_descriptor, + new java.lang.String[] { + "Title", "Subtitle", "Image", "ColumnProperties", "Rows", "Buttons", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor + .getNestedTypes() + .get(26); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_ColumnProperties_descriptor, + new java.lang.String[] { + "Header", "HorizontalAlignment", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor + .getNestedTypes() + .get(27); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardRow_descriptor, + new java.lang.String[] { + "Cells", "DividerAfter", + }); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_descriptor + .getNestedTypes() + .get(28); + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Intent_Message_TableCardCell_descriptor, + new java.lang.String[] { + "Text", + }); internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Intent_descriptor.getNestedTypes().get(3); internal_static_google_cloud_dialogflow_v2beta1_Intent_FollowupIntentInfo_fieldAccessorTable = @@ -1020,9 +1232,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentView.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentView.java index 7577275e3..fffa5715a 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentView.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentView.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java index a44822d7d..009a9452f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto @@ -115,7 +130,7 @@ public interface AnswerOrBuilder * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ java.lang.String getSource(); /** @@ -127,7 +142,7 @@ public interface AnswerOrBuilder * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ com.google.protobuf.ByteString getSourceBytes(); @@ -534,7 +549,7 @@ private MatchConfidenceLevel(int value) { * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -556,7 +571,7 @@ public java.lang.String getSource() { * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; @@ -1137,7 +1152,7 @@ public Builder mergeFrom( * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -1159,7 +1174,7 @@ public java.lang.String getSource() { * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; @@ -1181,7 +1196,7 @@ public com.google.protobuf.ByteString getSourceBytes() { * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public Builder setSource(java.lang.String value) { if (value == null) { @@ -1201,7 +1216,7 @@ public Builder setSource(java.lang.String value) { * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public Builder clearSource() { @@ -1218,7 +1233,7 @@ public Builder clearSource() { * ID>/documents/<Document ID>`. * * - * string source = 1; + * string source = 1 [(.google.api.resource_reference) = { ... } */ public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java index 79a1ce451..fe2c50239 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java index 9e94a911b..bb2669704 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -27,6 +42,7 @@ private KnowledgeBase(com.google.protobuf.GeneratedMessageV3.Builder builder) private KnowledgeBase() { name_ = ""; displayName_ = ""; + languageCode_ = ""; } @java.lang.Override @@ -67,6 +83,13 @@ private KnowledgeBase( displayName_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -193,6 +216,53 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Language which represents the KnowledgeBase. When the KnowledgeBase is
+   * created/updated, this is populated for all non en-us languages. If not
+   * populated, the default language en-us applies.
+   * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Language which represents the KnowledgeBase. When the KnowledgeBase is
+   * created/updated, this is populated for all non en-us languages. If not
+   * populated, the default language en-us applies.
+   * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -213,6 +283,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } unknownFields.writeTo(output); } @@ -228,6 +301,9 @@ public int getSerializedSize() { if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -246,6 +322,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,6 +338,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -412,6 +491,8 @@ public Builder clear() { displayName_ = ""; + languageCode_ = ""; + return this; } @@ -441,6 +522,7 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeBase buildPartial() { new com.google.cloud.dialogflow.v2beta1.KnowledgeBase(this); result.name_ = name_; result.displayName_ = displayName_; + result.languageCode_ = languageCode_; onBuilt(); return result; } @@ -499,6 +581,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeBase other displayName_ = other.displayName_; onChanged(); } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -732,6 +818,110 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Language which represents the KnowledgeBase. When the KnowledgeBase is
+     * created/updated, this is populated for all non en-us languages. If not
+     * populated, the default language en-us applies.
+     * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Language which represents the KnowledgeBase. When the KnowledgeBase is
+     * created/updated, this is populated for all non en-us languages. If not
+     * populated, the default language en-us applies.
+     * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Language which represents the KnowledgeBase. When the KnowledgeBase is
+     * created/updated, this is populated for all non en-us languages. If not
+     * populated, the default language en-us applies.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Language which represents the KnowledgeBase. When the KnowledgeBase is
+     * created/updated, this is populated for all non en-us languages. If not
+     * populated, the default language en-us applies.
+     * 
+ * + * string language_code = 3; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Language which represents the KnowledgeBase. When the KnowledgeBase is
+     * created/updated, this is populated for all non en-us languages. If not
+     * populated, the default language en-us applies.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java index 47b67c109..73b84b7d8 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java index 75410df46..fe0263307 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -55,4 +70,29 @@ public interface KnowledgeBaseOrBuilder * string display_name = 2; */ com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Language which represents the KnowledgeBase. When the KnowledgeBase is
+   * created/updated, this is populated for all non en-us languages. If not
+   * populated, the default language en-us applies.
+   * 
+ * + * string language_code = 3; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Language which represents the KnowledgeBase. When the KnowledgeBase is
+   * created/updated, this is populated for all non en-us languages. If not
+   * populated, the default language en-us applies.
+   * 
+ * + * string language_code = 3; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java index 22fbe1349..a3f7b7159 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -54,63 +69,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v2beta1\032\034google/api/annotations.proto\032\033g" + "oogle/protobuf/empty.proto\032 google/proto" + "buf/field_mask.proto\032\027google/api/client." - + "proto\"3\n\rKnowledgeBase\022\014\n\004name\030\001 \001(\t\022\024\n\014" - + "display_name\030\002 \001(\t\"R\n\031ListKnowledgeBases" - + "Request\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\032ListKnowledgeB" - + "asesResponse\022G\n\017knowledge_bases\030\001 \003(\0132.." - + "google.cloud.dialogflow.v2beta1.Knowledg" - + "eBase\022\027\n\017next_page_token\030\002 \001(\t\"\'\n\027GetKno" - + "wledgeBaseRequest\022\014\n\004name\030\001 \001(\t\"t\n\032Creat" - + "eKnowledgeBaseRequest\022\016\n\006parent\030\001 \001(\t\022F\n" - + "\016knowledge_base\030\002 \001(\0132..google.cloud.dia" - + "logflow.v2beta1.KnowledgeBase\"9\n\032DeleteK" - + "nowledgeBaseRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005for" - + "ce\030\002 \001(\010\"\225\001\n\032UpdateKnowledgeBaseRequest\022" - + "F\n\016knowledge_base\030\001 \001(\0132..google.cloud.d" - + "ialogflow.v2beta1.KnowledgeBase\022/\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "2\204\013\n\016KnowledgeBases\022\367\001\n\022ListKnowledgeBas" - + "es\022:.google.cloud.dialogflow.v2beta1.Lis" - + "tKnowledgeBasesRequest\032;.google.cloud.di" - + "alogflow.v2beta1.ListKnowledgeBasesRespo" - + "nse\"h\202\323\344\223\002b\022+/v2beta1/{parent=projects/*" - + "}/knowledgeBasesZ3\0221/v2beta1/{parent=pro" - + "jects/*/agent}/knowledgeBases\022\346\001\n\020GetKno" - + "wledgeBase\0228.google.cloud.dialogflow.v2b" - + "eta1.GetKnowledgeBaseRequest\032..google.cl" - + "oud.dialogflow.v2beta1.KnowledgeBase\"h\202\323" - + "\344\223\002b\022+/v2beta1/{name=projects/*/knowledg" - + "eBases/*}Z3\0221/v2beta1/{name=projects/*/a" - + "gent/knowledgeBases/*}\022\216\002\n\023CreateKnowled" - + "geBase\022;.google.cloud.dialogflow.v2beta1" - + ".CreateKnowledgeBaseRequest\032..google.clo" - + "ud.dialogflow.v2beta1.KnowledgeBase\"\211\001\202\323" - + "\344\223\002\202\001\"+/v2beta1/{parent=projects/*}/know" - + "ledgeBases:\016knowledge_baseZC\"1/v2beta1/{" - + "parent=projects/*/agent}/knowledgeBases:" - + "\016knowledge_base\022\324\001\n\023DeleteKnowledgeBase\022" - + ";.google.cloud.dialogflow.v2beta1.Delete" - + "KnowledgeBaseRequest\032\026.google.protobuf.E" - + "mpty\"h\202\323\344\223\002b*+/v2beta1/{name=projects/*/" - + "knowledgeBases/*}Z3*1/v2beta1/{name=proj" - + "ects/*/agent/knowledgeBases/*}\022\254\002\n\023Updat" - + "eKnowledgeBase\022;.google.cloud.dialogflow" - + ".v2beta1.UpdateKnowledgeBaseRequest\032..go" - + "ogle.cloud.dialogflow.v2beta1.KnowledgeB" - + "ase\"\247\001\202\323\344\223\002\240\0012:/v2beta1/{knowledge_base." - + "name=projects/*/knowledgeBases/*}:\016knowl" - + "edge_baseZR2@/v2beta1/{knowledge_base.na" - + "me=projects/*/agent/knowledgeBases/*}:\016k" - + "nowledge_base\032x\312A\031dialogflow.googleapis." - + "com\322AYhttps://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/dialogflowB\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" + + "proto\"J\n\rKnowledgeBase\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "display_name\030\002 \001(\t\022\025\n\rlanguage_code\030\003 \001(" + + "\t\"R\n\031ListKnowledgeBasesRequest\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\017k" + + "nowledge_bases\030\001 \003(\0132..google.cloud.dial" + + "ogflow.v2beta1.KnowledgeBase\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\'\n\027GetKnowledgeBaseRequest" + + "\022\014\n\004name\030\001 \001(\t\"t\n\032CreateKnowledgeBaseReq" + + "uest\022\016\n\006parent\030\001 \001(\t\022F\n\016knowledge_base\030\002" + + " \001(\0132..google.cloud.dialogflow.v2beta1.K" + + "nowledgeBase\"9\n\032DeleteKnowledgeBaseReque" + + "st\022\014\n\004name\030\001 \001(\t\022\r\n\005force\030\002 \001(\010\"\225\001\n\032Upda" + + "teKnowledgeBaseRequest\022F\n\016knowledge_base" + + "\030\001 \001(\0132..google.cloud.dialogflow.v2beta1" + + ".KnowledgeBase\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask2\204\013\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/*}\022\254\002\n\023UpdateKnowledgeBase\022;." + + "google.cloud.dialogflow.v2beta1.UpdateKn" + + "owledgeBaseRequest\032..google.cloud.dialog" + + "flow.v2beta1.KnowledgeBase\"\247\001\202\323\344\223\002\240\0012:/v" + + "2beta1/{knowledge_base.name=projects/*/k" + + "nowledgeBases/*}:\016knowledge_baseZR2@/v2b" + + "eta1/{knowledge_base.name=projects/*/age" + + "nt/knowledgeBases/*}:\016knowledge_base\032x\312A" + + "\031dialogflow.googleapis.com\322AYhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/dialogflowB\260" + + "\001\n#com.google.cloud.dialogflow.v2beta1B\022" + + "KnowledgeBaseProtoP\001ZIgoogle.golang.org/" + + "genproto/googleapis/cloud/dialogflow/v2b" + + "eta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.D" + + "ialogflow.V2beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -135,7 +150,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeBase_descriptor, new java.lang.String[] { - "Name", "DisplayName", + "Name", "DisplayName", "LanguageCode", }); internal_static_google_cloud_dialogflow_v2beta1_ListKnowledgeBasesRequest_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java index 7faeacef5..b0a643196 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java index 7249008db..4233e166f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java index ec4d3ca3c..0650cd819 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java index b0d350364..16d5a6b2b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java index 7bc11488e..2d0946785 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponseOrBuilder.java index 8c80520df..1c8bb724d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java index 393932012..23f226503 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequestOrBuilder.java index e51fab112..545b4973b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java index 84f57df3d..bc6a19454 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponseOrBuilder.java index 157f506fe..78441c63d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java index ddc65fbef..528e076cb 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java index d0e82c965..74bb08c7f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java index cab2db9d7..b10b19fc6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponseOrBuilder.java index ace069505..0a7c3012b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java index 9bf5d3270..2652d4d5e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java index 71eca555a..8cf20edbb 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java index 531786b51..df628df19 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponseOrBuilder.java index 4f2ee8b4c..29b07eb91 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java index bae7e5bca..8b2e8148e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java index 39eab11ca..3dd706f5d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java index 9f0344529..94722ffd1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponseOrBuilder.java index a6823188b..0ba915b95 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java index d47507853..d0ffd3489 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java index 292cb1b8d..82be5b4f0 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java index 5bc1437ac..875599029 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponseOrBuilder.java index db63b9129..892cb73a5 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java index 8ff9ad534..e0124941e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java index 76eea888f..90af2864e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java index a2d8592d5..177c0a49f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfigOrBuilder.java index 2c33e9946..fb7c84a69 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java index 1de522c1c..abcfc1d49 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java index 2b1b14534..52da30db0 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java index 470349dd7..784d3cdbe 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInput.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInput.java index 9b9b4462a..9a3107059 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInput.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInput.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInputOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInputOrBuilder.java index 0c6eb6a46..337cb541d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInputOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInputOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java index 7b4fcd6b8..819e484fb 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java index 2aad03d31..d0a91d971 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java index 66c521aa2..c3630cc31 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java index a95878cd0..41e1daaa3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java index 360c8fe03..87553c22c 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto @@ -57,6 +72,22 @@ private ReloadDocumentRequest( name_ = s; break; } + case 26: + { + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = ((com.google.cloud.dialogflow.v2beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -91,6 +122,43 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.Builder.class); } + private int sourceCase_ = 0; + private java.lang.Object source_; + + public enum SourceCase implements com.google.protobuf.Internal.EnumLite { + GCS_SOURCE(3), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 3: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -138,6 +206,50 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
+   * The path of gcs source file for reloading document content.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
+   * The path of gcs source file for reloading document content.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public com.google.cloud.dialogflow.v2beta1.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GcsSource) source_; + } + return com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } + /** + * + * + *
+   * The path of gcs source file for reloading document content.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GcsSource) source_; + } + return com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -155,6 +267,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.dialogflow.v2beta1.GcsSource) source_); + } unknownFields.writeTo(output); } @@ -167,6 +282,11 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dialogflow.v2beta1.GcsSource) source_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -184,6 +304,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest) obj; if (!getName().equals(other.getName())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 3: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -197,6 +325,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + switch (sourceCase_) { + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -345,6 +481,8 @@ public Builder clear() { super.clear(); name_ = ""; + sourceCase_ = 0; + source_ = null; return this; } @@ -373,6 +511,14 @@ 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_; + if (sourceCase_ == 3) { + if (gcsSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = gcsSourceBuilder_.build(); + } + } + result.sourceCase_ = sourceCase_; onBuilt(); return result; } @@ -427,6 +573,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ReloadDocumentReque name_ = other.name_; onChanged(); } + switch (other.getSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -457,6 +614,20 @@ public Builder mergeFrom( return this; } + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + private java.lang.Object name_ = ""; /** * @@ -561,6 +732,208 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GcsSource, + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder, + com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public com.google.cloud.dialogflow.v2beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GcsSource) source_; + } + return com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.dialogflow.v2beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2beta1.GcsSource.newBuilder( + (com.google.cloud.dialogflow.v2beta1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public com.google.cloud.dialogflow.v2beta1.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + public com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.GcsSource) source_; + } + return com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The path of gcs source file for reloading document content.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GcsSource, + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder, + com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.dialogflow.v2beta1.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.GcsSource, + com.google.cloud.dialogflow.v2beta1.GcsSource.Builder, + com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + ; + return gcsSourceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java index 51b70c55b..ce8b72552 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto @@ -32,4 +47,37 @@ public interface ReloadDocumentRequestOrBuilder * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The path of gcs source file for reloading document content.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + boolean hasGcsSource(); + /** + * + * + *
+   * The path of gcs source file for reloading document content.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + com.google.cloud.dialogflow.v2beta1.GcsSource getGcsSource(); + /** + * + * + *
+   * The path of gcs source file for reloading document content.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3; + */ + com.google.cloud.dialogflow.v2beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + public com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java index 04204b3f6..d62fc7515 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -248,19 +263,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * The agent to restore.
-   * Example for how to restore an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:restore\
-   *    -X POST \
-   *    -H 'Authorization: Bearer '$(gcloud auth application-default
-   *    print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --compressed \
-   *    --data-binary "{
-   *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; @@ -882,19 +885,7 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { * * *
-     * The agent to restore.
-     * Example for how to restore an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:restore\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -909,19 +900,7 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * The agent to restore.
-     * Example for how to restore an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:restore\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; @@ -939,19 +918,7 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) { * * *
-     * The agent to restore.
-     * Example for how to restore an agent via the command line:
-     * <pre>curl \
-     *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:restore\
-     *    -X POST \
-     *    -H 'Authorization: Bearer '$(gcloud auth application-default
-     *    print-access-token) \
-     *    -H 'Accept: application/json' \
-     *    -H 'Content-Type: application/json' \
-     *    --compressed \
-     *    --data-binary "{
-     *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-     *    }"</pre>
+     * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java index e6e2ac8a6..7564eed4a 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto @@ -58,19 +73,7 @@ public interface RestoreAgentRequestOrBuilder * * *
-   * The agent to restore.
-   * Example for how to restore an agent via the command line:
-   * <pre>curl \
-   *   'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/agent:restore\
-   *    -X POST \
-   *    -H 'Authorization: Bearer '$(gcloud auth application-default
-   *    print-access-token) \
-   *    -H 'Accept: application/json' \
-   *    -H 'Content-Type: application/json' \
-   *    --compressed \
-   *    --data-binary "{
-   *        'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
-   *    }"</pre>
+   * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java index 9badde320..28b53cb64 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequestOrBuilder.java index 118070f9c..7ccce5df2 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java index 215213d73..18f092f03 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponseOrBuilder.java index fc17a1b2d..cf61c5825 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java index f390476d3..43f5a12dc 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfig.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfig.java index 69f75bb7b..49d4dc275 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfig.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfigOrBuilder.java index ee144197e..07d2b698c 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java index a07d81bc9..d87783613 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResultOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResultOrBuilder.java index f4ee625eb..befc694e1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResultOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java index 4589d7d83..6ac0df427 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java index adc346c99..5bc16512f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java index 4b2a51369..e37bde623 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java index 5ac6f8cb3..9835f3d3b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java index d146a71de..e88e7e54d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java index b0ae38c52..f0e28fe51 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java @@ -1,15 +1,17 @@ /* - * 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. You may obtain a copy of the License at + * 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 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.cloud.dialogflow.v2beta1; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java index c12fb83bf..0cacba3d2 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto @@ -84,139 +99,142 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n-google/cloud/dialogflow/v2beta1/sessio" + "n.proto\022\037google.cloud.dialogflow.v2beta1" + "\032\034google/api/annotations.proto\032\037google/a" - + "pi/field_behavior.proto\032+google/cloud/di" - + "alogflow/v2beta1/agent.proto\0322google/clo" - + "ud/dialogflow/v2beta1/audio_config.proto" - + "\032-google/cloud/dialogflow/v2beta1/contex" - + "t.proto\032,google/cloud/dialogflow/v2beta1" - + "/intent.proto\0329google/cloud/dialogflow/v" - + "2beta1/session_entity_type.proto\032\036google" - + "/protobuf/duration.proto\032\034google/protobu" - + "f/struct.proto\032\027google/rpc/status.proto\032" - + "\030google/type/latlng.proto\032\027google/api/cl" - + "ient.proto\"\226\002\n\023DetectIntentRequest\022\017\n\007se" - + "ssion\030\001 \001(\t\022F\n\014query_params\030\002 \001(\01320.goog" - + "le.cloud.dialogflow.v2beta1.QueryParamet" - + "ers\022@\n\013query_input\030\003 \001(\0132+.google.cloud." - + "dialogflow.v2beta1.QueryInput\022O\n\023output_" - + "audio_config\030\004 \001(\01322.google.cloud.dialog" - + "flow.v2beta1.OutputAudioConfig\022\023\n\013input_" - + "audio\030\005 \001(\014\"\323\002\n\024DetectIntentResponse\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\022*\n\016webhook_status\030\003 \001(\0132\022.google." - + "rpc.Status\022\024\n\014output_audio\030\004 \001(\014\022O\n\023outp" - + "ut_audio_config\030\006 \001(\01322.google.cloud.dia" - + "logflow.v2beta1.OutputAudioConfig\"\251\003\n\017Qu" - + "eryParameters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_" - + "location\030\002 \001(\0132\023.google.type.LatLng\022:\n\010c" - + "ontexts\030\003 \003(\0132(.google.cloud.dialogflow." - + "v2beta1.Context\022\026\n\016reset_contexts\030\004 \001(\010\022" - + "P\n\024session_entity_types\030\005 \003(\01322.google.c" - + "loud.dialogflow.v2beta1.SessionEntityTyp" - + "e\022(\n\007payload\030\006 \001(\0132\027.google.protobuf.Str" - + "uct\022\034\n\024knowledge_base_names\030\014 \003(\t\022j\n!sen" - + "timent_analysis_request_config\030\n \001(\0132?.g" - + "oogle.cloud.dialogflow.v2beta1.Sentiment" - + "AnalysisRequestConfig\"\332\001\n\nQueryInput\022I\n\014" - + "audio_config\030\001 \001(\01321.google.cloud.dialog" - + "flow.v2beta1.InputAudioConfigH\000\022:\n\004text\030" - + "\002 \001(\0132*.google.cloud.dialogflow.v2beta1." - + "TextInputH\000\022<\n\005event\030\003 \001(\0132+.google.clou" - + "d.dialogflow.v2beta1.EventInputH\000B\007\n\005inp" - + "ut\"\362\005\n\013QueryResult\022\022\n\nquery_text\030\001 \001(\t\022\025" - + "\n\rlanguage_code\030\017 \001(\t\022%\n\035speech_recognit" - + "ion_confidence\030\002 \001(\002\022\016\n\006action\030\003 \001(\t\022+\n\n" - + "parameters\030\004 \001(\0132\027.google.protobuf.Struc" - + "t\022#\n\033all_required_params_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_sourc" - + "e\030\010 \001(\t\0220\n\017webhook_payload\030\t \001(\0132\027.googl" - + "e.protobuf.Struct\022A\n\017output_contexts\030\n \003" - + "(\0132(.google.cloud.dialogflow.v2beta1.Con" - + "text\0227\n\006intent\030\013 \001(\0132\'.google.cloud.dial" - + "ogflow.v2beta1.Intent\022#\n\033intent_detectio" - + "n_confidence\030\014 \001(\002\0220\n\017diagnostic_info\030\016 " - + "\001(\0132\027.google.protobuf.Struct\022[\n\031sentimen" - + "t_analysis_result\030\021 \001(\01328.google.cloud.d" - + "ialogflow.v2beta1.SentimentAnalysisResul" - + "t\022L\n\021knowledge_answers\030\022 \001(\01321.google.cl" - + "oud.dialogflow.v2beta1.KnowledgeAnswers\"" - + "\206\003\n\020KnowledgeAnswers\022I\n\007answers\030\001 \003(\01328." - + "google.cloud.dialogflow.v2beta1.Knowledg" - + "eAnswers.Answer\032\246\002\n\006Answer\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_level\030\004 \001(\0162M.googl" - + "e.cloud.dialogflow.v2beta1.KnowledgeAnsw" - + "ers.Answer.MatchConfidenceLevel\022\030\n\020match" - + "_confidence\030\005 \001(\002\"]\n\024MatchConfidenceLeve" - + "l\022&\n\"MATCH_CONFIDENCE_LEVEL_UNSPECIFIED\020" - + "\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003\"\271\002\n\034Str" - + "eamingDetectIntentRequest\022\017\n\007session\030\001 \001" - + "(\t\022F\n\014query_params\030\002 \001(\01320.google.cloud." - + "dialogflow.v2beta1.QueryParameters\022@\n\013qu" - + "ery_input\030\003 \001(\0132+.google.cloud.dialogflo" - + "w.v2beta1.QueryInput\022\030\n\020single_utterance" - + "\030\004 \001(\010\022O\n\023output_audio_config\030\005 \001(\01322.go" - + "ogle.cloud.dialogflow.v2beta1.OutputAudi" - + "oConfig\022\023\n\013input_audio\030\006 \001(\014\"\265\003\n\035Streami" - + "ngDetectIntentResponse\022\023\n\013response_id\030\001 " - + "\001(\t\022W\n\022recognition_result\030\002 \001(\0132;.google" - + ".cloud.dialogflow.v2beta1.StreamingRecog" - + "nitionResult\022B\n\014query_result\030\003 \001(\0132,.goo" - + "gle.cloud.dialogflow.v2beta1.QueryResult" - + "\022O\n\031alternative_query_results\030\007 \003(\0132,.go" - + "ogle.cloud.dialogflow.v2beta1.QueryResul" - + "t\022*\n\016webhook_status\030\004 \001(\0132\022.google.rpc.S" - + "tatus\022\024\n\014output_audio\030\005 \001(\014\022O\n\023output_au" - + "dio_config\030\006 \001(\01322.google.cloud.dialogfl" - + "ow.v2beta1.OutputAudioConfig\"\243\003\n\032Streami" - + "ngRecognitionResult\022]\n\014message_type\030\001 \001(" - + "\0162G.google.cloud.dialogflow.v2beta1.Stre" - + "amingRecognitionResult.MessageType\022\022\n\ntr" - + "anscript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconf" - + "idence\030\004 \001(\002\022\021\n\tstability\030\006 \001(\002\022I\n\020speec" - + "h_word_info\030\007 \003(\0132/.google.cloud.dialogf" - + "low.v2beta1.SpeechWordInfo\0224\n\021speech_end" - + "_offset\030\010 \001(\0132\031.google.protobuf.Duration" - + "\"X\n\013MessageType\022\034\n\030MESSAGE_TYPE_UNSPECIF" - + "IED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SINGLE_U" - + "TTERANCE\020\002\"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\004na" - + "me\030\001 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.pr" - + "otobuf.Struct\022\025\n\rlanguage_code\030\003 \001(\t\"F\n\036" - + "SentimentAnalysisRequestConfig\022$\n\034analyz" - + "e_query_text_sentiment\030\001 \001(\010\"c\n\027Sentimen" - + "tAnalysisResult\022H\n\024query_text_sentiment\030" - + "\001 \001(\0132*.google.cloud.dialogflow.v2beta1." - + "Sentiment\"-\n\tSentiment\022\r\n\005score\030\001 \001(\002\022\021\n" - + "\tmagnitude\030\002 \001(\0022\367\005\n\010Sessions\022\321\003\n\014Detect" - + "Intent\0224.google.cloud.dialogflow.v2beta1" - + ".DetectIntentRequest\0325.google.cloud.dial" - + "ogflow.v2beta1.DetectIntentResponse\"\323\002\202\323" - + "\344\223\002\314\002\";/v2beta1/{session=projects/*/agen" - + "t/sessions/*}:detectIntent:\001*ZW\"R/v2beta" - + "1/{session=projects/*/agent/environments" - + "/*/users/*/sessions/*}:detectIntent:\001*ZL" - + "\"G/v2beta1/{session=projects/*/locations" - + "/*/agent/sessions/*}:detectIntent:\001*Zc\"^" - + "/v2beta1/{session=projects/*/locations/*" - + "/agent/environments/*/users/*/sessions/*" - + "}:detectIntent:\001*\022\234\001\n\025StreamingDetectInt" - + "ent\022=.google.cloud.dialogflow.v2beta1.St" - + "reamingDetectIntentRequest\032>.google.clou" - + "d.dialogflow.v2beta1.StreamingDetectInte" - + "ntResponse\"\000(\0010\001\032x\312A\031dialogflow.googleap" - + "is.com\322AYhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/dialogflowB\252\001\n#com.google.cloud." - + "dialogflow.v2beta1B\014SessionProtoP\001ZIgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037" - + "Google.Cloud.Dialogflow.V2beta1b\006proto3" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032+google/cloud/dialogflow/v2be" + + "ta1/agent.proto\0322google/cloud/dialogflow" + + "/v2beta1/audio_config.proto\032-google/clou" + + "d/dialogflow/v2beta1/context.proto\032,goog" + + "le/cloud/dialogflow/v2beta1/intent.proto" + + "\0329google/cloud/dialogflow/v2beta1/sessio" + + "n_entity_type.proto\032\036google/protobuf/dur" + + "ation.proto\032\034google/protobuf/struct.prot" + + "o\032\027google/rpc/status.proto\032\030google/type/" + + "latlng.proto\032\027google/api/client.proto\"\276\002" + + "\n\023DetectIntentRequest\0227\n\007session\030\001 \001(\tB&" + + "\372A#\n!dialogflow.googleapis.com/Session\022F" + + "\n\014query_params\030\002 \001(\01320.google.cloud.dial" + + "ogflow.v2beta1.QueryParameters\022@\n\013query_" + + "input\030\003 \001(\0132+.google.cloud.dialogflow.v2" + + "beta1.QueryInput\022O\n\023output_audio_config\030" + + "\004 \001(\01322.google.cloud.dialogflow.v2beta1." + + "OutputAudioConfig\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.clou" + + "d.dialogflow.v2beta1.QueryResult\022O\n\031alte" + + "rnative_query_results\030\005 \003(\0132,.google.clo" + + "ud.dialogflow.v2beta1.QueryResult\022*\n\016web" + + "hook_status\030\003 \001(\0132\022.google.rpc.Status\022\024\n" + + "\014output_audio\030\004 \001(\014\022O\n\023output_audio_conf" + + "ig\030\006 \001(\01322.google.cloud.dialogflow.v2bet" + + "a1.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(\013" + + "2(.google.cloud.dialogflow.v2beta1.Conte" + + "xt\022\026\n\016reset_contexts\030\004 \001(\010\022P\n\024session_en" + + "tity_types\030\005 \003(\01322.google.cloud.dialogfl" + + "ow.v2beta1.SessionEntityType\022(\n\007payload\030" + + "\006 \001(\0132\027.google.protobuf.Struct\022\034\n\024knowle" + + "dge_base_names\030\014 \003(\t\022j\n!sentiment_analys" + + "is_request_config\030\n \001(\0132?.google.cloud.d" + + "ialogflow.v2beta1.SentimentAnalysisReque" + + "stConfig\"\332\001\n\nQueryInput\022I\n\014audio_config\030" + + "\001 \001(\01321.google.cloud.dialogflow.v2beta1." + + "InputAudioConfigH\000\022:\n\004text\030\002 \001(\0132*.googl" + + "e.cloud.dialogflow.v2beta1.TextInputH\000\022<" + + "\n\005event\030\003 \001(\0132+.google.cloud.dialogflow." + + "v2beta1.EventInputH\000B\007\n\005input\"\362\005\n\013QueryR" + + "esult\022\022\n\nquery_text\030\001 \001(\t\022\025\n\rlanguage_co" + + "de\030\017 \001(\t\022%\n\035speech_recognition_confidenc" + + "e\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_requ" + + "ired_params_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.Inte" + + "nt.Message\022\026\n\016webhook_source\030\010 \001(\t\0220\n\017we" + + "bhook_payload\030\t \001(\0132\027.google.protobuf.St" + + "ruct\022A\n\017output_contexts\030\n \003(\0132(.google.c" + + "loud.dialogflow.v2beta1.Context\0227\n\006inten" + + "t\030\013 \001(\0132\'.google.cloud.dialogflow.v2beta" + + "1.Intent\022#\n\033intent_detection_confidence\030" + + "\014 \001(\002\0220\n\017diagnostic_info\030\016 \001(\0132\027.google." + + "protobuf.Struct\022[\n\031sentiment_analysis_re" + + "sult\030\021 \001(\01328.google.cloud.dialogflow.v2b" + + "eta1.SentimentAnalysisResult\022L\n\021knowledg" + + "e_answers\030\022 \001(\01321.google.cloud.dialogflo" + + "w.v2beta1.KnowledgeAnswers\"\257\003\n\020Knowledge" + + "Answers\022I\n\007answers\030\001 \003(\01328.google.cloud." + + "dialogflow.v2beta1.KnowledgeAnswers.Answ" + + "er\032\317\002\n\006Answer\0227\n\006source\030\001 \001(\tB\'\372A$\n\"dial" + + "ogflow.googleapis.com/Document\022\024\n\014faq_qu" + + "estion\030\002 \001(\t\022\016\n\006answer\030\003 \001(\t\022m\n\026match_co" + + "nfidence_level\030\004 \001(\0162M.google.cloud.dial" + + "ogflow.v2beta1.KnowledgeAnswers.Answer.M" + + "atchConfidenceLevel\022\030\n\020match_confidence\030" + + "\005 \001(\002\"]\n\024MatchConfidenceLevel\022&\n\"MATCH_C" + + "ONFIDENCE_LEVEL_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n" + + "\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003\"\271\002\n\034StreamingDetect" + + "IntentRequest\022\017\n\007session\030\001 \001(\t\022F\n\014query_" + + "params\030\002 \001(\01320.google.cloud.dialogflow.v" + + "2beta1.QueryParameters\022@\n\013query_input\030\003 " + + "\001(\0132+.google.cloud.dialogflow.v2beta1.Qu" + + "eryInput\022\030\n\020single_utterance\030\004 \001(\010\022O\n\023ou" + + "tput_audio_config\030\005 \001(\01322.google.cloud.d" + + "ialogflow.v2beta1.OutputAudioConfig\022\023\n\013i" + + "nput_audio\030\006 \001(\014\"\265\003\n\035StreamingDetectInte" + + "ntResponse\022\023\n\013response_id\030\001 \001(\t\022W\n\022recog" + + "nition_result\030\002 \001(\0132;.google.cloud.dialo" + + "gflow.v2beta1.StreamingRecognitionResult" + + "\022B\n\014query_result\030\003 \001(\0132,.google.cloud.di" + + "alogflow.v2beta1.QueryResult\022O\n\031alternat" + + "ive_query_results\030\007 \003(\0132,.google.cloud.d" + + "ialogflow.v2beta1.QueryResult\022*\n\016webhook" + + "_status\030\004 \001(\0132\022.google.rpc.Status\022\024\n\014out" + + "put_audio\030\005 \001(\014\022O\n\023output_audio_config\030\006" + + " \001(\01322.google.cloud.dialogflow.v2beta1.O" + + "utputAudioConfig\"\243\003\n\032StreamingRecognitio" + + "nResult\022]\n\014message_type\030\001 \001(\0162G.google.c" + + "loud.dialogflow.v2beta1.StreamingRecogni" + + "tionResult.MessageType\022\022\n\ntranscript\030\002 \001" + + "(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002" + + "\022\021\n\tstability\030\006 \001(\002\022I\n\020speech_word_info\030" + + "\007 \003(\0132/.google.cloud.dialogflow.v2beta1." + + "SpeechWordInfo\0224\n\021speech_end_offset\030\010 \001(" + + "\0132\031.google.protobuf.Duration\"X\n\013MessageT" + + "ype\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRA" + + "NSCRIPT\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_co" + + "de\030\002 \001(\t\"^\n\nEventInput\022\014\n\004name\030\001 \001(\t\022+\n\n" + + "parameters\030\002 \001(\0132\027.google.protobuf.Struc" + + "t\022\025\n\rlanguage_code\030\003 \001(\t\"F\n\036SentimentAna" + + "lysisRequestConfig\022$\n\034analyze_query_text" + + "_sentiment\030\001 \001(\010\"c\n\027SentimentAnalysisRes" + + "ult\022H\n\024query_text_sentiment\030\001 \001(\0132*.goog" + + "le.cloud.dialogflow.v2beta1.Sentiment\"-\n" + + "\tSentiment\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002" + + " \001(\0022\367\005\n\010Sessions\022\321\003\n\014DetectIntent\0224.goo" + + "gle.cloud.dialogflow.v2beta1.DetectInten" + + "tRequest\0325.google.cloud.dialogflow.v2bet" + + "a1.DetectIntentResponse\"\323\002\202\323\344\223\002\314\002\";/v2be" + + "ta1/{session=projects/*/agent/sessions/*" + + "}:detectIntent:\001*ZW\"R/v2beta1/{session=p" + + "rojects/*/agent/environments/*/users/*/s" + + "essions/*}:detectIntent:\001*ZL\"G/v2beta1/{" + + "session=projects/*/locations/*/agent/ses" + + "sions/*}:detectIntent:\001*Zc\"^/v2beta1/{se" + + "ssion=projects/*/locations/*/agent/envir" + + "onments/*/users/*/sessions/*}:detectInte" + + "nt:\001*\022\234\001\n\025StreamingDetectIntent\022=.google" + + ".cloud.dialogflow.v2beta1.StreamingDetec" + + "tIntentRequest\032>.google.cloud.dialogflow" + + ".v2beta1.StreamingDetectIntentResponse\"\000" + + "(\0010\001\032x\312A\031dialogflow.googleapis.com\322AYhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/dial" + + "ogflowB\252\001\n#com.google.cloud.dialogflow.v" + + "2beta1B\014SessionProtoP\001ZIgoogle.golang.or" + + "g/genproto/googleapis/cloud/dialogflow/v" + + "2beta1;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 +249,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.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(), @@ -414,10 +433,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.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(); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequest.java index 56aa97412..73ab64828 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequestOrBuilder.java index b7e33c638..c0540937d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java index 125505d12..e0c540c09 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java index 5378ed741..5aec0d5aa 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java index ebca9d3d9..f636f8bdf 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfo.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfo.java index 0fa470ea6..00bbc074e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfo.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfo.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfoOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfoOrBuilder.java index f14df391f..19437af3d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfoOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfoOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java index 3e4335d48..feac30bca 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java index d0fdf6c9f..0632afdc3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java index a8bd8eb86..4678abee8 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java index e545c068f..9b28799e6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java index bf3bb378f..767743822 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java index 7bb684d8f..75ead382a 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java index 4d42c22bf..ab08eb70b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java index 5db72bbb8..6eb14f402 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java index e0b7ad4cb..69f4cdd1b 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java index e1769e1dc..3fefc5b6c 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java index 51025cb04..eaa452a9e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java index 342ffb16f..8ae1e1e55 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequestOrBuilder.java index 2d9ba5f3a..6ae6990b1 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/agent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java index 943195a34..a57cb91a6 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequestOrBuilder.java index 23f3bd44a..3229a6e8e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/context.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java index f76b6a9ba..b2ea9bab9 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java index 43722a4a9..b2982a3b2 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/document.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java index 8f40c9283..bbe1f2231 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java index 6ec6c5ea9..e76b3bcd9 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java index 45f003018..3168a9968 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java index 7c7c52318..fea8c84ac 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/intent.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java index 1ae98a03b..32b542b35 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java index c6be17871..6603726da 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/knowledge_base.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java index 538a3e49f..a28dd792e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java index 09ac835b2..4d457b52d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/session_entity_type.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationError.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationError.java new file mode 100644 index 000000000..45fa2dff1 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationError.java @@ -0,0 +1,1344 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/validation_result.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Represents a single validation error.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ValidationError} + */ +public final class ValidationError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ValidationError) + ValidationErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidationError.newBuilder() to construct. + private ValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidationError() { + severity_ = 0; + entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + errorMessage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ValidationError( + 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(); + + severity_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + entries_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + entries_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + errorMessage_ = 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_ & 0x00000002) != 0)) { + entries_ = entries_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ValidationError.class, + com.google.cloud.dialogflow.v2beta1.ValidationError.Builder.class); + } + + /** + * + * + *
+   * Represents a level of severity.
+   * 
+ * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.ValidationError.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified. This value should never be used.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+     * The agent doesn't follow Dialogflow best practicies.
+     * 
+ * + * INFO = 1; + */ + INFO(1), + /** + * + * + *
+     * The agent may not behave as expected.
+     * 
+ * + * WARNING = 2; + */ + WARNING(2), + /** + * + * + *
+     * The agent may experience partial failures.
+     * 
+ * + * ERROR = 3; + */ + ERROR(3), + /** + * + * + *
+     * The agent may completely fail.
+     * 
+ * + * CRITICAL = 4; + */ + CRITICAL(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified. This value should never be used.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The agent doesn't follow Dialogflow best practicies.
+     * 
+ * + * INFO = 1; + */ + public static final int INFO_VALUE = 1; + /** + * + * + *
+     * The agent may not behave as expected.
+     * 
+ * + * WARNING = 2; + */ + public static final int WARNING_VALUE = 2; + /** + * + * + *
+     * The agent may experience partial failures.
+     * 
+ * + * ERROR = 3; + */ + public static final int ERROR_VALUE = 3; + /** + * + * + *
+     * The agent may completely fail.
+     * 
+ * + * CRITICAL = 4; + */ + public static final int CRITICAL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return INFO; + case 2: + return WARNING; + case 3: + return ERROR; + case 4: + return CRITICAL; + 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 Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ValidationError.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity 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 Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.ValidationError.Severity) + } + + private int bitField0_; + public static final int SEVERITY_FIELD_NUMBER = 1; + private int severity_; + /** + * + * + *
+   * The severity of the error.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+   * The severity of the error.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.ValidationError.Severity result = + com.google.cloud.dialogflow.v2beta1.ValidationError.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.ValidationError.Severity.UNRECOGNIZED + : result; + } + + public static final int ENTRIES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList entries_; + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + public com.google.protobuf.ProtocolStringList getEntriesList() { + return entries_; + } + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + public int getEntriesCount() { + return entries_.size(); + } + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + public java.lang.String getEntries(int index) { + return entries_.get(index); + } + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + public com.google.protobuf.ByteString getEntriesBytes(int index) { + return entries_.getByteString(index); + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object errorMessage_; + /** + * + * + *
+   * The detailed error messsage.
+   * 
+ * + * string error_message = 4; + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
+   * The detailed error messsage.
+   * 
+ * + * string error_message = 4; + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = 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 (severity_ + != com.google.cloud.dialogflow.v2beta1.ValidationError.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, severity_); + } + for (int i = 0; i < entries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entries_.getRaw(i)); + } + if (!getErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, errorMessage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (severity_ + != com.google.cloud.dialogflow.v2beta1.ValidationError.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + } + { + int dataSize = 0; + for (int i = 0; i < entries_.size(); i++) { + dataSize += computeStringSizeNoTag(entries_.getRaw(i)); + } + size += dataSize; + size += 1 * getEntriesList().size(); + } + if (!getErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorMessage_); + } + 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.ValidationError)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ValidationError other = + (com.google.cloud.dialogflow.v2beta1.ValidationError) obj; + + if (severity_ != other.severity_) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError 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.ValidationError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError 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.ValidationError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError 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.ValidationError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError 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.ValidationError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError 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.ValidationError 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.ValidationError 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.ValidationError 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; + } + /** + * + * + *
+   * Represents a single validation error.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ValidationError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ValidationError) + com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ValidationError.class, + com.google.cloud.dialogflow.v2beta1.ValidationError.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ValidationError.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(); + severity_ = 0; + + entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + errorMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationError_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ValidationError getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ValidationError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ValidationError build() { + com.google.cloud.dialogflow.v2beta1.ValidationError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ValidationError buildPartial() { + com.google.cloud.dialogflow.v2beta1.ValidationError result = + new com.google.cloud.dialogflow.v2beta1.ValidationError(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.severity_ = severity_; + if (((bitField0_ & 0x00000002) != 0)) { + entries_ = entries_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.entries_ = entries_; + result.errorMessage_ = errorMessage_; + 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.v2beta1.ValidationError) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ValidationError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ValidationError other) { + if (other == com.google.cloud.dialogflow.v2beta1.ValidationError.getDefaultInstance()) + return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + 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.ValidationError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.ValidationError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int severity_ = 0; + /** + * + * + *
+     * The severity of the error.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+     * The severity of the error.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public Builder setSeverityValue(int value) { + severity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of the error.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.v2beta1.ValidationError.Severity result = + com.google.cloud.dialogflow.v2beta1.ValidationError.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.ValidationError.Severity.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The severity of the error.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public Builder setSeverity(com.google.cloud.dialogflow.v2beta1.ValidationError.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of the error.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + public Builder clearSeverity() { + + severity_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList entries_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + entries_ = new com.google.protobuf.LazyStringArrayList(entries_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public com.google.protobuf.ProtocolStringList getEntriesList() { + return entries_.getUnmodifiableView(); + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public int getEntriesCount() { + return entries_.size(); + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public java.lang.String getEntries(int index) { + return entries_.get(index); + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public com.google.protobuf.ByteString getEntriesBytes(int index) { + return entries_.getByteString(index); + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public Builder setEntries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public Builder addEntries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public Builder addAllEntries(java.lang.Iterable values) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + return this; + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public Builder clearEntries() { + entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The names of the entries that the error is associated with.
+     * Format:
+     * - "projects/<Project ID>/agent", if the error is associated with the entire
+     * agent.
+     * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+     * associated with certain intents.
+     * - "projects/<Project
+     * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+     * error is associated with certain intent training phrases.
+     * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+     * ID>", if the error is associated with certain intent parameters.
+     * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+     * associated with certain entities.
+     * 
+ * + * repeated string entries = 3; + */ + public Builder addEntriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
+     * The detailed error messsage.
+     * 
+ * + * string error_message = 4; + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The detailed error messsage.
+     * 
+ * + * string error_message = 4; + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The detailed error messsage.
+     * 
+ * + * string error_message = 4; + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The detailed error messsage.
+     * 
+ * + * string error_message = 4; + */ + public Builder clearErrorMessage() { + + errorMessage_ = getDefaultInstance().getErrorMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * The detailed error messsage.
+     * 
+ * + * string error_message = 4; + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorMessage_ = 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.ValidationError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ValidationError) + private static final com.google.cloud.dialogflow.v2beta1.ValidationError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ValidationError(); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidationError(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.ValidationError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationErrorOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationErrorOrBuilder.java new file mode 100644 index 000000000..9cf6ccace --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationErrorOrBuilder.java @@ -0,0 +1,156 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/validation_result.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface ValidationErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ValidationError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The severity of the error.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + int getSeverityValue(); + /** + * + * + *
+   * The severity of the error.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ValidationError.Severity severity = 1; + */ + com.google.cloud.dialogflow.v2beta1.ValidationError.Severity getSeverity(); + + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + java.util.List getEntriesList(); + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + int getEntriesCount(); + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + java.lang.String getEntries(int index); + /** + * + * + *
+   * The names of the entries that the error is associated with.
+   * Format:
+   * - "projects/<Project ID>/agent", if the error is associated with the entire
+   * agent.
+   * - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
+   * associated with certain intents.
+   * - "projects/<Project
+   * ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
+   * error is associated with certain intent training phrases.
+   * - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
+   * ID>", if the error is associated with certain intent parameters.
+   * - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
+   * associated with certain entities.
+   * 
+ * + * repeated string entries = 3; + */ + com.google.protobuf.ByteString getEntriesBytes(int index); + + /** + * + * + *
+   * The detailed error messsage.
+   * 
+ * + * string error_message = 4; + */ + java.lang.String getErrorMessage(); + /** + * + * + *
+   * The detailed error messsage.
+   * 
+ * + * string error_message = 4; + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResult.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResult.java new file mode 100644 index 000000000..d332a59cd --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResult.java @@ -0,0 +1,956 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/validation_result.proto + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Represents the output of agent validation.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ValidationResult} + */ +public final class ValidationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ValidationResult) + ValidationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidationResult.newBuilder() to construct. + private ValidationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidationResult() { + validationErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ValidationResult( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validationErrors_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validationErrors_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.ValidationError.parser(), + extensionRegistry)); + 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_ & 0x00000001) != 0)) { + validationErrors_ = java.util.Collections.unmodifiableList(validationErrors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ValidationResult.class, + com.google.cloud.dialogflow.v2beta1.ValidationResult.Builder.class); + } + + public static final int VALIDATION_ERRORS_FIELD_NUMBER = 1; + private java.util.List validationErrors_; + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public java.util.List + getValidationErrorsList() { + return validationErrors_; + } + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public java.util.List + getValidationErrorsOrBuilderList() { + return validationErrors_; + } + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public int getValidationErrorsCount() { + return validationErrors_.size(); + } + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError getValidationErrors(int index) { + return validationErrors_.get(index); + } + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index) { + return validationErrors_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < validationErrors_.size(); i++) { + output.writeMessage(1, validationErrors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < validationErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, validationErrors_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ValidationResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ValidationResult other = + (com.google.cloud.dialogflow.v2beta1.ValidationResult) obj; + + if (!getValidationErrorsList().equals(other.getValidationErrorsList())) 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 (getValidationErrorsCount() > 0) { + hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getValidationErrorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult 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.ValidationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult 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.ValidationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult 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.ValidationResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult 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.ValidationResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult 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.ValidationResult 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.ValidationResult 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.ValidationResult 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; + } + /** + * + * + *
+   * Represents the output of agent validation.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ValidationResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ValidationResult) + com.google.cloud.dialogflow.v2beta1.ValidationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ValidationResult.class, + com.google.cloud.dialogflow.v2beta1.ValidationResult.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ValidationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getValidationErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (validationErrorsBuilder_ == null) { + validationErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + validationErrorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ValidationResultProto + .internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ValidationResult getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ValidationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ValidationResult build() { + com.google.cloud.dialogflow.v2beta1.ValidationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ValidationResult buildPartial() { + com.google.cloud.dialogflow.v2beta1.ValidationResult result = + new com.google.cloud.dialogflow.v2beta1.ValidationResult(this); + int from_bitField0_ = bitField0_; + if (validationErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + validationErrors_ = java.util.Collections.unmodifiableList(validationErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validationErrors_ = validationErrors_; + } else { + result.validationErrors_ = validationErrorsBuilder_.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.ValidationResult) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ValidationResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ValidationResult other) { + if (other == com.google.cloud.dialogflow.v2beta1.ValidationResult.getDefaultInstance()) + return this; + if (validationErrorsBuilder_ == null) { + if (!other.validationErrors_.isEmpty()) { + if (validationErrors_.isEmpty()) { + validationErrors_ = other.validationErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidationErrorsIsMutable(); + validationErrors_.addAll(other.validationErrors_); + } + onChanged(); + } + } else { + if (!other.validationErrors_.isEmpty()) { + if (validationErrorsBuilder_.isEmpty()) { + validationErrorsBuilder_.dispose(); + validationErrorsBuilder_ = null; + validationErrors_ = other.validationErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + validationErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValidationErrorsFieldBuilder() + : null; + } else { + validationErrorsBuilder_.addAllMessages(other.validationErrors_); + } + } + } + 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.ValidationResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.v2beta1.ValidationResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List validationErrors_ = + java.util.Collections.emptyList(); + + private void ensureValidationErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validationErrors_ = + new java.util.ArrayList( + validationErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ValidationError, + com.google.cloud.dialogflow.v2beta1.ValidationError.Builder, + com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder> + validationErrorsBuilder_; + + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public java.util.List + getValidationErrorsList() { + if (validationErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(validationErrors_); + } else { + return validationErrorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public int getValidationErrorsCount() { + if (validationErrorsBuilder_ == null) { + return validationErrors_.size(); + } else { + return validationErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError getValidationErrors(int index) { + if (validationErrorsBuilder_ == null) { + return validationErrors_.get(index); + } else { + return validationErrorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder setValidationErrors( + int index, com.google.cloud.dialogflow.v2beta1.ValidationError value) { + if (validationErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.set(index, value); + onChanged(); + } else { + validationErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder setValidationErrors( + int index, com.google.cloud.dialogflow.v2beta1.ValidationError.Builder builderForValue) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + validationErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder addValidationErrors(com.google.cloud.dialogflow.v2beta1.ValidationError value) { + if (validationErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.add(value); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder addValidationErrors( + int index, com.google.cloud.dialogflow.v2beta1.ValidationError value) { + if (validationErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.add(index, value); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder addValidationErrors( + com.google.cloud.dialogflow.v2beta1.ValidationError.Builder builderForValue) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.add(builderForValue.build()); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder addValidationErrors( + int index, com.google.cloud.dialogflow.v2beta1.ValidationError.Builder builderForValue) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder addAllValidationErrors( + java.lang.Iterable values) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); + onChanged(); + } else { + validationErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder clearValidationErrors() { + if (validationErrorsBuilder_ == null) { + validationErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + validationErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public Builder removeValidationErrors(int index) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.remove(index); + onChanged(); + } else { + validationErrorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError.Builder getValidationErrorsBuilder( + int index) { + return getValidationErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder + getValidationErrorsOrBuilder(int index) { + if (validationErrorsBuilder_ == null) { + return validationErrors_.get(index); + } else { + return validationErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public java.util.List + getValidationErrorsOrBuilderList() { + if (validationErrorsBuilder_ != null) { + return validationErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validationErrors_); + } + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError.Builder + addValidationErrorsBuilder() { + return getValidationErrorsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.ValidationError.getDefaultInstance()); + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public com.google.cloud.dialogflow.v2beta1.ValidationError.Builder addValidationErrorsBuilder( + int index) { + return getValidationErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.v2beta1.ValidationError.getDefaultInstance()); + } + /** + * + * + *
+     * Contains all validation errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + public java.util.List + getValidationErrorsBuilderList() { + return getValidationErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ValidationError, + com.google.cloud.dialogflow.v2beta1.ValidationError.Builder, + com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder> + getValidationErrorsFieldBuilder() { + if (validationErrorsBuilder_ == null) { + validationErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.ValidationError, + com.google.cloud.dialogflow.v2beta1.ValidationError.Builder, + com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder>( + validationErrors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + validationErrors_ = null; + } + return validationErrorsBuilder_; + } + + @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.ValidationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ValidationResult) + private static final com.google.cloud.dialogflow.v2beta1.ValidationResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ValidationResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.ValidationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidationResult(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.ValidationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultOrBuilder.java new file mode 100644 index 000000000..62c60fcc8 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultOrBuilder.java @@ -0,0 +1,78 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/validation_result.proto + +package com.google.cloud.dialogflow.v2beta1; + +public interface ValidationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ValidationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + java.util.List getValidationErrorsList(); + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + com.google.cloud.dialogflow.v2beta1.ValidationError getValidationErrors(int index); + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + int getValidationErrorsCount(); + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + java.util.List + getValidationErrorsOrBuilderList(); + /** + * + * + *
+   * Contains all validation errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.ValidationError validation_errors = 1; + */ + com.google.cloud.dialogflow.v2beta1.ValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index); +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultProto.java new file mode 100644 index 000000000..fbf9b8f2d --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultProto.java @@ -0,0 +1,98 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2beta1/validation_result.proto + +package com.google.cloud.dialogflow.v2beta1; + +public final class ValidationResultProto { + private ValidationResultProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ValidationError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ValidationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/dialogflow/v2beta1/valida" + + "tion_result.proto\022\037google.cloud.dialogfl" + + "ow.v2beta1\032\034google/api/annotations.proto" + + "\"\334\001\n\017ValidationError\022K\n\010severity\030\001 \001(\01629" + + ".google.cloud.dialogflow.v2beta1.Validat" + + "ionError.Severity\022\017\n\007entries\030\003 \003(\t\022\025\n\rer" + + "ror_message\030\004 \001(\t\"T\n\010Severity\022\030\n\024SEVERIT" + + "Y_UNSPECIFIED\020\000\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t" + + "\n\005ERROR\020\003\022\014\n\010CRITICAL\020\004\"_\n\020ValidationRes" + + "ult\022K\n\021validation_errors\030\001 \003(\01320.google." + + "cloud.dialogflow.v2beta1.ValidationError" + + "B\263\001\n#com.google.cloud.dialogflow.v2beta1" + + "B\025ValidationResultProtoP\001ZIgoogle.golang" + + ".org/genproto/googleapis/cloud/dialogflo" + + "w/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cl" + + "oud.Dialogflow.V2beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_dialogflow_v2beta1_ValidationError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2beta1_ValidationError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ValidationError_descriptor, + new java.lang.String[] { + "Severity", "Entries", "ErrorMessage", + }); + internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ValidationResult_descriptor, + new java.lang.String[] { + "ValidationErrors", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java index fd0bec463..616ff3fa7 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java index 5e6002ef0..ecb782d92 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/audio_config.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java index d6c4b76f1..ffc93290f 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto @@ -49,7 +64,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "Request\"\255\003\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" @@ -57,15 +72,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_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" + + "1.EventInput\022\027\n\017end_interaction\030\010 \001(\010\022P\n" + + "\024session_entity_types\030\n \003(\01322.google.clo" + + "ud.dialogflow.v2beta1.SessionEntityType\"" + + "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(\013" + + "2\027.google.protobuf.StructB\252\001\n#com.google" + + ".cloud.dialogflow.v2beta1B\014WebhookProtoP" + + "\001ZIgoogle.golang.org/genproto/googleapis" + + "/cloud/dialogflow/v2beta1;dialogflow\370\001\001\242" + + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1b\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -111,6 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "OutputContexts", "FollowupEventInput", "EndInteraction", + "SessionEntityTypes", }); internal_static_google_cloud_dialogflow_v2beta1_OriginalDetectIntentRequest_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java index 97df2dd23..20e0e240e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java index ff6e78474..b7179e556 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java index 835a279e2..74d92b15a 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto @@ -27,6 +42,7 @@ private WebhookResponse() { fulfillmentMessages_ = java.util.Collections.emptyList(); source_ = ""; outputContexts_ = java.util.Collections.emptyList(); + sessionEntityTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -127,6 +143,20 @@ private WebhookResponse( endInteraction_ = input.readBool(); break; } + case 82: + { + if (!((mutable_bitField0_ & 0x00000080) != 0)) { + sessionEntityTypes_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SessionEntityType>(); + mutable_bitField0_ |= 0x00000080; + } + sessionEntityTypes_.add( + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SessionEntityType.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -147,6 +177,9 @@ private WebhookResponse( if (((mutable_bitField0_ & 0x00000010) != 0)) { outputContexts_ = java.util.Collections.unmodifiableList(outputContexts_); } + if (((mutable_bitField0_ & 0x00000080) != 0)) { + sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -566,6 +599,97 @@ public boolean getEndInteraction() { return endInteraction_; } + public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 10; + private java.util.List sessionEntityTypes_; + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesList() { + return sessionEntityTypes_; + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesOrBuilderList() { + return sessionEntityTypes_; + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public int getSessionEntityTypesCount() { + return sessionEntityTypes_.size(); + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTypes(int index) { + return sessionEntityTypes_.get(index); + } + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder + getSessionEntityTypesOrBuilder(int index) { + return sessionEntityTypes_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -601,6 +725,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endInteraction_ != false) { output.writeBool(8, endInteraction_); } + for (int i = 0; i < sessionEntityTypes_.size(); i++) { + output.writeMessage(10, sessionEntityTypes_.get(i)); + } unknownFields.writeTo(output); } @@ -632,6 +759,10 @@ public int getSerializedSize() { if (endInteraction_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, endInteraction_); } + for (int i = 0; i < sessionEntityTypes_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, sessionEntityTypes_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -661,6 +792,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFollowupEventInput().equals(other.getFollowupEventInput())) return false; } if (getEndInteraction() != other.getEndInteraction()) return false; + if (!getSessionEntityTypesList().equals(other.getSessionEntityTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -694,6 +826,10 @@ public int hashCode() { } hash = (37 * hash) + END_INTERACTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndInteraction()); + if (getSessionEntityTypesCount() > 0) { + hash = (37 * hash) + SESSION_ENTITY_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getSessionEntityTypesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -836,6 +972,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFulfillmentMessagesFieldBuilder(); getOutputContextsFieldBuilder(); + getSessionEntityTypesFieldBuilder(); } } @@ -872,6 +1009,12 @@ public Builder clear() { } endInteraction_ = false; + if (sessionEntityTypesBuilder_ == null) { + sessionEntityTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + sessionEntityTypesBuilder_.clear(); + } return this; } @@ -932,6 +1075,15 @@ public com.google.cloud.dialogflow.v2beta1.WebhookResponse buildPartial() { result.followupEventInput_ = followupEventInputBuilder_.build(); } result.endInteraction_ = endInteraction_; + if (sessionEntityTypesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.sessionEntityTypes_ = sessionEntityTypes_; + } else { + result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1054,6 +1206,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.WebhookResponse oth if (other.getEndInteraction() != false) { setEndInteraction(other.getEndInteraction()); } + if (sessionEntityTypesBuilder_ == null) { + if (!other.sessionEntityTypes_.isEmpty()) { + if (sessionEntityTypes_.isEmpty()) { + sessionEntityTypes_ = other.sessionEntityTypes_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.addAll(other.sessionEntityTypes_); + } + onChanged(); + } + } else { + if (!other.sessionEntityTypes_.isEmpty()) { + if (sessionEntityTypesBuilder_.isEmpty()) { + sessionEntityTypesBuilder_.dispose(); + sessionEntityTypesBuilder_ = null; + sessionEntityTypes_ = other.sessionEntityTypes_; + bitField0_ = (bitField0_ & ~0x00000080); + sessionEntityTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSessionEntityTypesFieldBuilder() + : null; + } else { + sessionEntityTypesBuilder_.addAllMessages(other.sessionEntityTypes_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2676,6 +2855,461 @@ public Builder clearEndInteraction() { return this; } + private java.util.List + sessionEntityTypes_ = java.util.Collections.emptyList(); + + private void ensureSessionEntityTypesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + sessionEntityTypes_ = + new java.util.ArrayList( + sessionEntityTypes_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SessionEntityType, + com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder, + com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder> + sessionEntityTypesBuilder_; + + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesList() { + if (sessionEntityTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sessionEntityTypes_); + } else { + return sessionEntityTypesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public int getSessionEntityTypesCount() { + if (sessionEntityTypesBuilder_ == null) { + return sessionEntityTypes_.size(); + } else { + return sessionEntityTypesBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTypes(int index) { + if (sessionEntityTypesBuilder_ == null) { + return sessionEntityTypes_.get(index); + } else { + return sessionEntityTypesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder setSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2beta1.SessionEntityType value) { + if (sessionEntityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.set(index, value); + onChanged(); + } else { + sessionEntityTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder setSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder builderForValue) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + sessionEntityTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + com.google.cloud.dialogflow.v2beta1.SessionEntityType value) { + if (sessionEntityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(value); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2beta1.SessionEntityType value) { + if (sessionEntityTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(index, value); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder builderForValue) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(builderForValue.build()); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder addSessionEntityTypes( + int index, com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder builderForValue) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + sessionEntityTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder addAllSessionEntityTypes( + java.lang.Iterable + values) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sessionEntityTypes_); + onChanged(); + } else { + sessionEntityTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder clearSessionEntityTypes() { + if (sessionEntityTypesBuilder_ == null) { + sessionEntityTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + sessionEntityTypesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public Builder removeSessionEntityTypes(int index) { + if (sessionEntityTypesBuilder_ == null) { + ensureSessionEntityTypesIsMutable(); + sessionEntityTypes_.remove(index); + onChanged(); + } else { + sessionEntityTypesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder + getSessionEntityTypesBuilder(int index) { + return getSessionEntityTypesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder + getSessionEntityTypesOrBuilder(int index) { + if (sessionEntityTypesBuilder_ == null) { + return sessionEntityTypes_.get(index); + } else { + return sessionEntityTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesOrBuilderList() { + if (sessionEntityTypesBuilder_ != null) { + return sessionEntityTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sessionEntityTypes_); + } + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder + addSessionEntityTypesBuilder() { + return getSessionEntityTypesFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.SessionEntityType.getDefaultInstance()); + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder + addSessionEntityTypesBuilder(int index) { + return getSessionEntityTypesFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.v2beta1.SessionEntityType.getDefaultInstance()); + } + /** + * + * + *
+     * 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. Setting the session entity types inside
+     * webhook overwrites the session entity types that have been set through
+     * `DetectIntentRequest.query_params.session_entity_types`.
+     * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + public java.util.List + getSessionEntityTypesBuilderList() { + return getSessionEntityTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SessionEntityType, + com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder, + com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder> + getSessionEntityTypesFieldBuilder() { + if (sessionEntityTypesBuilder_ == null) { + sessionEntityTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2beta1.SessionEntityType, + com.google.cloud.dialogflow.v2beta1.SessionEntityType.Builder, + com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder>( + sessionEntityTypes_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + sessionEntityTypes_ = null; + } + return sessionEntityTypesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java index b08030fe8..cf6f1b82d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/dialogflow/v2beta1/webhook.proto @@ -313,4 +328,82 @@ com.google.cloud.dialogflow.v2beta1.Intent.MessageOrBuilder getFulfillmentMessag * bool end_interaction = 8; */ boolean getEndInteraction(); + + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + java.util.List getSessionEntityTypesList(); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityTypes(int index); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + int getSessionEntityTypesCount(); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + java.util.List + getSessionEntityTypesOrBuilderList(); + /** + * + * + *
+   * 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. Setting the session entity types inside
+   * webhook overwrites the session entity types that have been set through
+   * `DetectIntentRequest.query_params.session_entity_types`.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10; + * + */ + com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder( + int index); } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto index c9aeb5b92..ec0a9abea 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto @@ -18,6 +18,9 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/validation_result.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -176,10 +179,24 @@ service Agents { } }; } + + // Gets agent validation result. Agent validation is performed during + // training time and is updated automatically when training is completed. + rpc GetValidationResult(GetValidationResultRequest) returns (ValidationResult) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*}/agent/validationResult" + }; + } } // Represents a conversational agent. message Agent { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Agent" + pattern: "projects/{project}/agent" + pattern: "projects/{project}/locations/{location}/agent" + }; + // Match mode determines how intents are detected from user queries. enum MatchMode { // Not specified. @@ -354,26 +371,13 @@ message ExportAgentRequest { // The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent]. message ExportAgentResponse { - // Required. The exported agent. + // The exported agent. oneof agent { // The URI to a file containing the exported agent. This field is populated // only if `agent_uri` is specified in `ExportAgentRequest`. string agent_uri = 1; - // The exported agent. - // - // Example for how to export an agent to a zip file via a command line: - //
curl \
-    //   'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\
-    //   -X POST \
-    //   -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>
+ // Zip compressed raw byte content for agent. bytes agent_content = 2; } } @@ -390,20 +394,7 @@ message ImportAgentRequest { // Note: The URI must start with "gs://". string agent_uri = 2; - // The agent to import. - // - // Example for how to import an agent via the command line: - //
curl \
-    //   'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:import\
-    //    -X POST \
-    //    -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)'
-    //    }"
+ // Zip compressed raw byte content for agent. bytes agent_content = 3; } } @@ -420,20 +411,21 @@ message RestoreAgentRequest { // Note: The URI must start with "gs://". string agent_uri = 2; - // The agent to restore. - // - // Example for how to restore an agent via the command line: - //
curl \
-    //   'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\
-    //    -X POST \
-    //    -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)'
-    //    }"
+ // Zip compressed raw byte content for agent. bytes agent_content = 3; } } + +// The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2beta1.Agents.GetValidationResult]. +message GetValidationResultRequest { + // Required. The project that the agent is associated with. + // Format: `projects/`. + string parent = 1; + + // Optional. The language for which you want a validation result. If not + // specified, the agent's default language is used. [Many + // languages](https://cloud.google.com/dialogflow/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/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index 8b62caa02..df33c8d89 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; +import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto index 5daf85593..672a642e3 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; import "google/api/annotations.proto"; +import "google/cloud/dialogflow/v2beta1/gcs.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -293,4 +294,12 @@ message ReloadDocumentRequest { // Format: `projects//knowledgeBases//documents/` string name = 1; + + // The source for document reloading. + // Optional. If provided, the service will load the contents from the source + // and update document in the knowledge base. + oneof source { + // The path of gcs source file for reloading document content. + GcsSource gcs_source = 3; + } } diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto index 27aba843b..5bee03e34 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -18,10 +18,11 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -import "google/protobuf/struct.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; @@ -236,6 +237,10 @@ message EntityType { // values. However, list entity types can contain references to other entity // types (with or without aliases). KIND_LIST = 2; + + // Regexp entity types allow to specify regular expressions in entries + // values. + KIND_REGEXP = 3; } // Represents different entity type expansion modes. Automated expansion @@ -268,6 +273,9 @@ message EntityType { // Optional. The collection of entity entries associated with the entity type. repeated Entity entities = 6; + + // Optional. Enables fuzzy entity extraction during classification. + bool enable_fuzzy_extraction = 7; } // The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes]. diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto new file mode 100644 index 000000000..fa5c9f1f6 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto @@ -0,0 +1,37 @@ +// 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.v2beta1; + +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "GcsProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Google Cloud Storage location for single input. +message GcsSource { + // Required. The Google Cloud Storage URIs for the inputs. A URI is of the + // form: + // gs://bucket/object-prefix-or-name + // Whether a prefix or name is used depends on the use case. + string uri = 1; +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto index 482e3fdc8..9d298677d 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto @@ -18,6 +18,8 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/audio_config.proto"; import "google/cloud/dialogflow/v2beta1/context.proto"; import "google/longrunning/operations.proto"; @@ -160,6 +162,12 @@ 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 { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Intent" + pattern: "projects/{project}/agent/intents/{intent}" + pattern: "projects/{project}/locations/{location}/agent/intents/{intent}" + }; + // Represents an example that the agent is trained on. message TrainingPhrase { // Represents a part of a training phrase. @@ -744,6 +752,189 @@ message Intent { } } + // The media content card for Actions on Google. + message MediaContent { + // Response media object for media content card. + message ResponseMediaObject { + // Required. Name of media card. + string name = 1; + + // Optional. Description of media card. + string description = 2; + + // Image to show with the media card. + oneof image { + // Optional. Image to display above media content. + Image large_image = 3; + + // Optional. Icon to display above media content. + Image icon = 4; + } + + // Required. Url where the media is stored. + string content_url = 5; + } + + // Format of response media type. + enum ResponseMediaType { + // Unspecified. + RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0; + + // Response media type is audio. + AUDIO = 1; + } + + // Optional. What type of media is the content (ie "audio"). + ResponseMediaType media_type = 1; + + // Required. List of media objects. + repeated ResponseMediaObject media_objects = 2; + } + + // Browse Carousel Card for Actions on Google. + // https://developers.google.com/actions/assistant/responses#browsing_carousel + message BrowseCarouselCard { + // Browsing carousel tile + message BrowseCarouselCardItem { + // Actions on Google action to open a given url. + message OpenUrlAction { + // Type of the URI. + enum UrlTypeHint { + // Unspecified + URL_TYPE_HINT_UNSPECIFIED = 0; + + // Url would be an amp action + AMP_ACTION = 1; + + // URL that points directly to AMP content, or to a canonical URL + // which refers to AMP content via . + AMP_CONTENT = 2; + } + + // Required. URL + string url = 1; + + // Optional. Specifies the type of viewer that is used when opening + // the URL. Defaults to opening via web browser. + UrlTypeHint url_type_hint = 3; + } + + // Required. Action to present to the user. + OpenUrlAction open_uri_action = 1; + + // Required. Title of the carousel item. Maximum of two lines of text. + string title = 2; + + // Optional. Description of the carousel item. Maximum of four lines of + // text. + string description = 3; + + // Optional. Hero image for the carousel item. + Image image = 4; + + // Optional. Text that appears at the bottom of the Browse Carousel + // Card. Maximum of one line of text. + string footer = 5; + } + + // Image display options for Actions on Google. This should be used for + // when the image's aspect ratio does not match the image container's + // aspect ratio. + enum ImageDisplayOptions { + // Fill the gaps between the image and the image container with gray + // bars. + IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0; + + // Fill the gaps between the image and the image container with gray + // bars. + GRAY = 1; + + // Fill the gaps between the image and the image container with white + // bars. + WHITE = 2; + + // Image is scaled such that the image width and height match or exceed + // the container dimensions. This may crop the top and bottom of the + // image if the scaled image height is greater than the container + // height, or crop the left and right of the image if the scaled image + // width is greater than the container width. This is similar to "Zoom + // Mode" on a widescreen TV when playing a 4:3 video. + CROPPED = 3; + + // Pad the gaps between image and image frame with a blurred copy of the + // same image. + BLURRED_BACKGROUND = 4; + } + + // Required. List of items in the Browse Carousel Card. Minimum of two + // items, maximum of ten. + repeated BrowseCarouselCardItem items = 1; + + // Optional. Settings for displaying the image. Applies to every image in + // [items][google.cloud.dialogflow.v2beta1.Intent.Message.BrowseCarouselCard.items]. + ImageDisplayOptions image_display_options = 2; + } + + // Table card for Actions on Google. + message TableCard { + // Required. Title of the card. + string title = 1; + + // Optional. Subtitle to the title. + string subtitle = 2; + + // Optional. Image which should be displayed on the card. + Image image = 3; + + // Optional. Display properties for the columns in this table. + repeated ColumnProperties column_properties = 4; + + // Optional. Rows in this table of data. + repeated TableCardRow rows = 5; + + // Optional. List of buttons for the card. + repeated BasicCard.Button buttons = 6; + } + + // Column properties for [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard]. + message ColumnProperties { + // Text alignments within a cell. + enum HorizontalAlignment { + // Text is aligned to the leading edge of the column. + HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; + + // Text is aligned to the leading edge of the column. + LEADING = 1; + + // Text is centered in the column. + CENTER = 2; + + // Text is aligned to the trailing edge of the column. + TRAILING = 3; + } + + // Required. Column heading. + string header = 1; + + // Optional. Defines text alignment for all cells in this column. + HorizontalAlignment horizontal_alignment = 2; + } + + // Row of [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard]. + message TableCardRow { + // Optional. List of cells that make up this row. + repeated TableCardCell cells = 1; + + // Optional. Whether to add a visual divider after this row. + bool divider_after = 2; + } + + // Cell of [TableCardRow][google.cloud.dialogflow.v2beta1.Intent.Message.TableCardRow]. + message TableCardCell { + // Required. Text in this cell. + string text = 1; + } + // Represents different platforms that a rich message can be intended for. enum Platform { // Not specified. @@ -897,6 +1088,15 @@ message Intent { // Rich Business Messaging (RBM) carousel rich card response. RbmCarouselCard rbm_carousel_rich_card = 20; + + // Browse carousel card for Actions on Google. + BrowseCarouselCard browse_carousel_card = 22; + + // Table card for Actions on Google. + TableCard table_card = 23; + + // The media content card for Actions on Google. + MediaContent media_content = 24; } // Optional. The platform that this message is intended for. @@ -1145,6 +1345,11 @@ message BatchUpdateIntentsRequest { string parent = 1; // Required. The source of the intent batch. + // + // For each intent in the batch: + // + // * If `name` is specified, we update an existing intent. + // * If `name` is not specified, we create a new intent. oneof intent_batch { // The URI to a Google Cloud Storage file containing intents to update or // create. The file format can either be a serialized proto (of IntentBatch diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto index ce992dde4..a8adc3961 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -122,6 +122,11 @@ message KnowledgeBase { // Required. The display name of the knowledge base. The name must be 1024 // bytes or less; otherwise, the creation request fails. string display_name = 2; + + // Language which represents the KnowledgeBase. When the KnowledgeBase is + // created/updated, this is populated for all non en-us languages. If not + // populated, the default language en-us applies. + string language_code = 3; } // Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index dbe2631db..3acc26072 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -19,6 +19,7 @@ package google.cloud.dialogflow.v2beta1; import "google/api/annotations.proto"; import "google/api/field_behavior.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"; @@ -89,7 +90,9 @@ message DetectIntentRequest { // `User Id`. They can be a random number or some type of user and session // identifiers (preferably hashed). The length of the `Session ID` and // `User ID` must not exceed 36 characters. - string session = 1; + string session = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Session" + }]; // Optional. The parameters of this query. QueryParameters query_params = 2; @@ -329,7 +332,9 @@ message KnowledgeAnswers { // Indicates which Knowledge Document this answer was extracted from. // Format: `projects//knowledgeBases//documents/`. - string source = 1; + string source = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Document" + }]; // The corresponding FAQ question if the answer was extracted from a FAQ // Document, empty otherwise. diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto new file mode 100644 index 000000000..d28430104 --- /dev/null +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto @@ -0,0 +1,77 @@ +// 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.v2beta1; + +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ValidationResultProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Represents a single validation error. +message ValidationError { + // Represents a level of severity. + enum Severity { + // Not specified. This value should never be used. + SEVERITY_UNSPECIFIED = 0; + + // The agent doesn't follow Dialogflow best practicies. + INFO = 1; + + // The agent may not behave as expected. + WARNING = 2; + + // The agent may experience partial failures. + ERROR = 3; + + // The agent may completely fail. + CRITICAL = 4; + } + + // The severity of the error. + Severity severity = 1; + + // The names of the entries that the error is associated with. + // Format: + // + // - "projects//agent", if the error is associated with the entire + // agent. + // - "projects//agent/intents/", if the error is + // associated with certain intents. + // - "projects//agent/intents//trainingPhrases/", if the + // error is associated with certain intent training phrases. + // - "projects//agent/intents//parameters/", if the error is associated with certain intent parameters. + // - "projects//agent/entities/", if the error is + // associated with certain entities. + repeated string entries = 3; + + // The detailed error messsage. + string error_message = 4; +} + +// Represents the output of agent validation. +message ValidationResult { + // Contains all validation errors. + repeated ValidationError validation_errors = 1; +} diff --git a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto index cdf630102..6e1ffbc7e 100644 --- a/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto +++ b/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto @@ -109,6 +109,13 @@ message WebhookResponse { // (e.g., Actions on Google or Dialogflow phone gateway) use this information // to close interaction with an end user. Default is false. bool end_interaction = 8; + + // 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. Setting the session entity types inside + // webhook overwrites the session entity types that have been set through + // `DetectIntentRequest.query_params.session_entity_types`. + repeated SessionEntityType session_entity_types = 10; } // Represents the contents of the original request that was passed to diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..998104700 --- /dev/null +++ b/renovate.json @@ -0,0 +1,27 @@ +{ + "extends": [ + "config:base" + ], + "ignoreDeps": [], + "packageRules": [ + { + "managers": ["maven"], + "packageNames": ["com.google.guava:guava*"], + "versionScheme": "docker" + }, + { + "packagePatterns": ["^io.grpc:grpc-"], + "groupName": "gRPC packages" + }, + { + "packagePatterns": ["^com.google.protobuf:protobuf-"], + "groupName": "Protobuf packages" + }, + { + "packagePatterns": ["^io.opencensus:opencensus-"], + "groupName": "OpenCensus packages" + } + ], + "semanticCommits": true, + "semanticCommitType": "deps" +} diff --git a/google-cloud-dialogflow/synth.metadata b/synth.metadata similarity index 100% rename from google-cloud-dialogflow/synth.metadata rename to synth.metadata diff --git a/synth.py b/synth.py new file mode 100644 index 000000000..806ba0c9a --- /dev/null +++ b/synth.py @@ -0,0 +1,65 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp +import synthtool.languages.java as java + +gapic = gcp.GAPICGenerator() + +service = 'dialogflow' +versions = ['v2', 'v2beta1'] +config_pattern = '/google/cloud/dialogflow/{version}/artman_dialogflow_{version}.yaml' + +library = gapic.java_library( + service=service, + version='v2', + config_path='/google/cloud/dialogflow/v2/artman_dialogflow_v2.yaml', + artman_output_name='') + +package_name = f'com.google.cloud.{service}.v2' +java.fix_proto_headers(library / f'proto-google-cloud-{service}-v2') +java.fix_grpc_headers(library / f'grpc-google-cloud-{service}-v2', package_name) + +s.copy(library / f'gapic-google-cloud-{service}-v2/src', f'google-cloud-{service}/src') +s.copy(library / f'grpc-google-cloud-{service}-v2/src', f'grpc-google-cloud-{service}-v2/src') +s.copy(library / f'proto-google-cloud-{service}-v2/src', f'proto-google-cloud-{service}-v2/src') + +library = gapic.java_library( + service=service, + version='v2beta1', + config_path='/google/cloud/dialogflow/v2beta1/artman_dialogflow_v2beta1_java.yaml', + artman_output_name='') + +package_name = f'com.google.cloud.{service}.v2beta1' +java.fix_proto_headers(library / f'proto-google-cloud-{service}-v2beta1') +java.fix_grpc_headers(library / f'grpc-google-cloud-{service}-v2beta1', package_name) + +s.copy(library / f'gapic-google-cloud-{service}-v2beta1/src', f'google-cloud-{service}/src') +s.copy(library / f'grpc-google-cloud-{service}-v2beta1/src', f'grpc-google-cloud-{service}-v2beta1/src') +s.copy(library / f'proto-google-cloud-{service}-v2beta1/src', f'proto-google-cloud-{service}-v2beta1/src') + + +for version in versions: + java.format_code(f'google-cloud-{service}/src') + java.format_code(f'grpc-google-cloud-{service}-{version}/src') + java.format_code(f'proto-google-cloud-{service}-{version}/src') + +common_templates = gcp.CommonTemplates() +templates = common_templates.java_library() +s.copy(templates, excludes=[ + 'README.md', +]) \ No newline at end of file diff --git a/versions.txt b/versions.txt new file mode 100644 index 000000000..5c112fa5d --- /dev/null +++ b/versions.txt @@ -0,0 +1,8 @@ +# Format: +# module:released-version:current-version + +proto-google-cloud-dialogflow-v2:0.82.0:0.82.0 +proto-google-cloud-dialogflow-v2beta1:0.82.0:0.82.0 +grpc-google-cloud-dialogflow-v2beta1:0.82.0:0.82.0 +grpc-google-cloud-dialogflow-v2:0.82.0:0.82.0 +google-cloud-dialogflow:0.117.0-alpha:0.117.0-alpha \ No newline at end of file